46 references to new
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (27)
Classification\SyntacticClassifierTests.cs (27)
5806
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(0, 3)),
5807
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentText, new TextSpan(3, 1)),
5808
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(4, 1)),
5809
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentName, new TextSpan(5, 5)),
5810
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentAttributeName, new TextSpan(11, 4)),
5811
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(15, 1)),
5812
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(16, 1)),
5813
new
ClassifiedSpan
(ClassificationTypeNames.Identifier, new TextSpan(17, 5)),
5814
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(22, 1)),
5815
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(23, 1)),
5816
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(24, 2)),
5817
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentName, new TextSpan(26, 5)),
5818
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(31, 1))
5836
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(2, 3)),
5837
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentText, new TextSpan(5, 1)),
5838
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(6, 1)),
5839
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentName, new TextSpan(7, 5)),
5840
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(14, 3)),
5841
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentAttributeName, new TextSpan(18, 4)),
5842
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(22, 1)),
5843
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(23, 1)),
5844
new
ClassifiedSpan
(ClassificationTypeNames.Identifier, new TextSpan(24, 5)),
5845
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(29, 1)),
5846
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(30, 1)),
5847
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(31, 2)),
5848
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentName, new TextSpan(33, 5)),
5849
new
ClassifiedSpan
(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(38, 1))
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Classification\ClassificationHelpers.cs (1)
561
return new
ClassifiedSpan
(
Classification\SyntaxClassification\DocCommentCodeBlockClassifier.cs (3)
122
result.Add(
new
(ClassificationTypeNames.TestCodeMarkdown, span));
134
static (result, classificationType, span) => result.Add(
new
(classificationType, span)),
165
result.Add(
new
(
Classification\SyntaxClassification\FunctionPointerUnmanagedCallingConventionClassifier.cs (1)
33
result.Add(
new
(ClassificationTypeNames.ClassName, callingConvention.Name.Span));
Classification\Worker.cs (1)
55
_result.Add(new
ClassifiedSpan
(type, span));
Microsoft.CodeAnalysis.EditorFeatures (1)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
429
var currentClassifiedSpan = new
ClassifiedSpan
(lastClassifiedSpan.ClassificationType, currentSnapshotSpan.Span.ToTextSpan());
Microsoft.CodeAnalysis.Features (6)
ClassifiedSpansAndHighlightSpanFactory.cs (3)
83
new
ClassifiedSpan
(ClassificationTypeNames.Text, TextSpan.FromBounds(widenedSpan.Start, narrowSpan.Start)),
84
new
ClassifiedSpan
(ClassificationTypeNames.Text, narrowSpan),
85
new
ClassifiedSpan
(ClassificationTypeNames.Text, TextSpan.FromBounds(narrowSpan.End, widenedSpan.End)),
EmbeddedLanguages\Classification\EmbeddedLanguageClassifierContext.cs (1)
78
_result.Add(new
ClassifiedSpan
(classificationType, span));
QuickInfo\IndentationHelper.cs (2)
64
adjustedClassifiedSpans.Add(
new
(spanClassificationType, spanBeforeDeletion));
76
adjustedClassifiedSpans.Add(
new
(spanClassificationType, span));
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
331
classifiedSpans.Add(new
ClassifiedSpan
(classificationTypes[typeIndex], new TextSpan(start, length)));
Microsoft.CodeAnalysis.Workspaces (5)
Classification\ClassifierHelper.cs (3)
184
var newSpan = new
ClassifiedSpan
(span.ClassificationType, intersection.GetValueOrDefault());
205
result.Add(new
ClassifiedSpan
(ClassificationTypeNames.Text,
228
static (original, final) => new
ClassifiedSpan
(original.ClassificationType, final));
Classification\IRemoteSemanticClassificationService.cs (1)
117
=>
new
(
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
89
var tuple = new
ClassifiedSpan
(type, textSpan);