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