46 references to GetSpan
Microsoft.CodeAnalysis.Features (46)
EmbeddedLanguages\Json\JsonParser.cs (5)
185
firstToken.
GetSpan
());
197
emptyValue.CommaToken.
GetSpan
());
204
propertyValue.ColonToken.
GetSpan
());
245
((JsonPropertyNode)child).ColonToken.
GetSpan
());
444
nestedProperty.ColonToken.
GetSpan
())),
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (4)
145
? new EmbeddedDiagnostic(FeaturesResources.Invalid_constructor_name, node.NameToken.
GetSpan
())
168
return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_expected, ','), GetFirstToken(nextChild).
GetSpan
());
179
return new EmbeddedDiagnostic(FeaturesResources.Only_properties_allowed_in_an_object, GetFirstToken(child).
GetSpan
());
187
? new EmbeddedDiagnostic(FeaturesResources.Invalid_property_name, node.NameToken.
GetSpan
())
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (7)
114
return new EmbeddedDiagnostic(FeaturesResources.Only_properties_allowed_in_an_object, GetFirstToken(child).
GetSpan
());
118
return new EmbeddedDiagnostic(FeaturesResources.Trailing_comma_not_allowed, node.Sequence.NodesAndTokens[^1].Token.
GetSpan
());
142
return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_expected, ","), GetFirstToken(child).
GetSpan
());
155
return new EmbeddedDiagnostic(FeaturesResources.Property_name_must_be_a_string, node.NameToken.
GetSpan
());
220
? new EmbeddedDiagnostic(FeaturesResources.Invalid_number, literalToken.
GetSpan
())
257
=> new(string.Format(FeaturesResources._0_literal_not_allowed, literalToken.VirtualChars.CreateString()), literalToken.
GetSpan
());
263
=> new(FeaturesResources.Constructors_not_allowed, node.NewKeyword.
GetSpan
());
EmbeddedLanguages\Json\LanguageServices\JsonBraceMatcher.cs (2)
110
: new BraceMatchingResult(open.
GetSpan
(), close.
GetSpan
());
EmbeddedLanguages\Json\LanguageServices\JsonClassifier.cs (2)
98
context.AddClassification(ClassificationTypeNames.JsonPunctuation, token.
GetSpan
());
123
Context.AddClassification(typeName, token.
GetSpan
());
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexClassifier.cs (1)
111
Context.AddClassification(typeName, token.
GetSpan
());
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (2)
247
token.
GetSpan
()));
301
token.
GetSpan
()));
EmbeddedLanguages\RegularExpressions\RegexParser.cs (23)
277
barToken.
GetSpan
()));
548
secondNumberTokenLocal.
GetSpan
()));
611
new EmbeddedDiagnostic(FeaturesResources.Too_many_close_parens, _currentToken.
GetSpan
()));
706
: token.
GetSpan
();
764
openParenToken.
GetSpan
()));
809
capture.
GetSpan
()));
817
capture.
GetSpan
()));
895
openParenToken.
GetSpan
()));
902
openParenToken.
GetSpan
()));
911
openParenToken.
GetSpan
()));
1009
capture.
GetSpan
()));
1049
_currentToken.
GetSpan
()));
1109
captureToken.
GetSpan
()));
1119
captureToken.
GetSpan
()));
1165
new EmbeddedDiagnostic(FeaturesResources.Unrecognized_grouping_construct, openParenToken.
GetSpan
())));
1310
minusToken.
GetSpan
()));
1572
backslashToken.
GetSpan
()));
1618
backslashToken.
GetSpan
()));
1848
typeToken.
GetSpan
()));
1880
typeToken.
GetSpan
()));
1920
_currentToken.
GetSpan
()));
2015
string.Format(FeaturesResources.Quantifier_0_following_nothing, token.VirtualChars.First()), token.
GetSpan
()));
2020
string.Format(FeaturesResources.Nested_quantifier_0, token.VirtualChars.First()), token.
GetSpan
()));