6 instantiations of StateResult
Microsoft.CodeAnalysis.Razor.Compiler (6)
Language\Legacy\Tokenizer.cs (6)
143return new StateResult(state, result: null); 152return new StateResult(state, result); 157return new StateResult((int)state, result: null); 162return new StateResult((int)state, result); 174return new StateResult(CurrentState, result: null); 183return new StateResult(CurrentState, result);
58 references to StateResult
Microsoft.AspNetCore.Razor.Language.UnitTests (1)
Legacy\TokenizerLookaheadTest.cs (1)
199protected override StateResult Dispatch()
Microsoft.CodeAnalysis.Razor.Compiler (57)
Language\Legacy\DirectiveCSharpTokenizer.cs (2)
16protected override StateResult Dispatch() 18var result = base.Dispatch();
Language\Legacy\DirectiveHtmlTokenizer.cs (2)
16protected override StateResult Dispatch() 19var result = base.Dispatch();
Language\Legacy\HtmlTokenizer.cs (6)
59protected override StateResult Dispatch() 148private StateResult Data() 187private StateResult EscapedRazorCommentTransition() 193private StateResult Text() 293private StateResult Transition(HtmlTokenizerState state) 296private StateResult Transition(HtmlTokenizerState state, SyntaxToken? result)
Language\Legacy\NativeCSharpTokenizer.cs (19)
151protected override StateResult Dispatch() 177return default(StateResult); 361private StateResult Data() 430private StateResult AtToken() 455private StateResult EscapedRazorCommentTransition() 544private StateResult VerbatimStringLiteral() 566private StateResult QuotedCharacterLiteral() => QuotedLiteral('\'', IsEndQuotedCharacterLiteral, SyntaxKind.CharacterLiteral); 568private StateResult QuotedStringLiteral() => QuotedLiteral('\"', IsEndQuotedStringLiteral, SyntaxKind.StringLiteral); 573private StateResult QuotedLiteral(char quote, Func<char, bool> isEndQuotedLiteral, SyntaxKind literalType) 601private StateResult BlockComment() 625private StateResult SingleLineComment() 632private StateResult NumericLiteral() 644private StateResult HexLiteral() 651private StateResult DecimalLiteral() 670private StateResult RealLiteralExponentPart() 689private StateResult RealLiteral() 719private StateResult Identifier() 743private StateResult Transition(CSharpTokenizerState state) 748private StateResult Transition(CSharpTokenizerState state, SyntaxToken result)
Language\Legacy\RoslynCSharpTokenizer.cs (14)
117protected override StateResult Dispatch() 141return default(StateResult); 217private StateResult Start() 234private StateResult Token() 273return Assumed.Unreachable<StateResult>(); 279private StateResult AtToken() 289return Assumed.Unreachable<StateResult>(); 320private StateResult Operator() 359private StateResult TokenizedExpectedStringOrCharacterLiteral(StringOrCharacterKind expectedStringKind) 463private StateResult Trivia() 646private StateResult OnRazorCommentStar() 657private StateResult NumericLiteral() 668private StateResult Identifier() 703private StateResult Transition(RoslynCSharpTokenizerState state, SyntaxToken? result)
Language\Legacy\Tokenizer.cs (14)
68protected abstract StateResult Dispatch(); 103var next = Dispatch(); 129protected StateResult Stop() 131return default(StateResult); 141protected StateResult Transition(int state) 150protected StateResult Transition(int state, SyntaxToken? result) 155protected StateResult Transition(RazorCommentTokenizerState state) 160protected StateResult Transition(RazorCommentTokenizerState state, SyntaxToken? result) 172protected StateResult Stay() 181protected StateResult Stay(SyntaxToken? result) 281protected StateResult AfterRazorCommentTransition() 294protected StateResult RazorCommentBody() 322protected StateResult StarAfterRazorCommentBody() 331protected StateResult AtTokenAfterRazorCommentBody(int nextState)