45 references to new
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (27)
Classification\SyntacticClassifierTests.cs (27)
5791new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(0, 3)), 5792new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentText, new TextSpan(3, 1)), 5793new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(4, 1)), 5794new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentName, new TextSpan(5, 5)), 5795new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeName, new TextSpan(11, 4)), 5796new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(15, 1)), 5797new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(16, 1)), 5798new ClassifiedSpan(ClassificationTypeNames.Identifier, new TextSpan(17, 5)), 5799new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(22, 1)), 5800new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(23, 1)), 5801new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(24, 2)), 5802new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentName, new TextSpan(26, 5)), 5803new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(31, 1)) 5821new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(2, 3)), 5822new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentText, new TextSpan(5, 1)), 5823new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(6, 1)), 5824new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentName, new TextSpan(7, 5)), 5825new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(14, 3)), 5826new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeName, new TextSpan(18, 4)), 5827new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(22, 1)), 5828new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(23, 1)), 5829new ClassifiedSpan(ClassificationTypeNames.Identifier, new TextSpan(24, 5)), 5830new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(29, 1)), 5831new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(30, 1)), 5832new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(31, 2)), 5833new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentName, new TextSpan(33, 5)), 5834new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(38, 1))
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\ClassificationHelpers.cs (1)
555return new ClassifiedSpan(
Classification\SyntaxClassification\FunctionPointerUnmanagedCallingConventionClassifier.cs (1)
33result.Add(new(ClassificationTypeNames.ClassName, callingConvention.Name.Span));
Classification\Worker.cs (1)
56_result.Add(new ClassifiedSpan(type, span));
Microsoft.CodeAnalysis.EditorFeatures (1)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
429var currentClassifiedSpan = new ClassifiedSpan(lastClassifiedSpan.ClassificationType, currentSnapshotSpan.Span.ToTextSpan());
Microsoft.CodeAnalysis.Features (6)
ClassifiedSpansAndHighlightSpanFactory.cs (3)
83new ClassifiedSpan(ClassificationTypeNames.Text, TextSpan.FromBounds(widenedSpan.Start, narrowSpan.Start)), 84new ClassifiedSpan(ClassificationTypeNames.Text, narrowSpan), 85new ClassifiedSpan(ClassificationTypeNames.Text, TextSpan.FromBounds(narrowSpan.End, widenedSpan.End)),
EmbeddedLanguages\Classification\EmbeddedLanguageClassifierContext.cs (1)
68_result.Add(new ClassifiedSpan(classificationType, span));
QuickInfo\IndentationHelper.cs (2)
64adjustedClassifiedSpans.Add(new(spanClassificationType, spanBeforeDeletion)); 76adjustedClassifiedSpans.Add(new(spanClassificationType, span));
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
331classifiedSpans.Add(new ClassifiedSpan(classificationTypes[typeIndex], new TextSpan(start, length)));
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Classification\SyntaxClassification\IdentifierNameSyntaxClassifier.vb (1)
33result.Add(New ClassifiedSpan(ClassificationTypeNames.Keyword, identifier.Span))
Classification\Worker.vb (1)
43_list.Add(New ClassifiedSpan(classificationType, textSpan))
Microsoft.CodeAnalysis.Workspaces (5)
Classification\ClassifierHelper.cs (3)
181var newSpan = new ClassifiedSpan(span.ClassificationType, intersection.GetValueOrDefault()); 202result.Add(new ClassifiedSpan(ClassificationTypeNames.Text, 225static (original, final) => new ClassifiedSpan(original.ClassificationType, final));
Classification\IRemoteSemanticClassificationService.cs (1)
117=> new(
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
89var tuple = new ClassifiedSpan(type, textSpan);