diff --git a/src/GraphQLParser/LexerContext.cs b/src/GraphQLParser/LexerContext.cs index f3a2ba15..c17ea9eb 100644 --- a/src/GraphQLParser/LexerContext.cs +++ b/src/GraphQLParser/LexerContext.cs @@ -4,8 +4,8 @@ namespace GraphQLParser; -// WARNING: mutable struct, pass it by reference to those methods that will change it -internal struct LexerContext +// WARNING: mutable ref struct, pass it by reference to those methods that will change it +internal ref struct LexerContext { private int _currentIndex; private readonly ROM _source;