88 references to Create
Microsoft.AspNetCore.App.Analyzers (3)
Microsoft.CodeAnalysis.CodeStyle (7)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (7)
133Location.Create(tree, ifStatement.Span),
134Location.Create(tree, expressionStatement.Span));
182var fadeLocation = Location.Create(tree, TextSpan.FromBounds(firstStatement.SpanStart, previousToken.Span.End));
203fadeLocation = Location.Create(tree, TextSpan.FromBounds(nextToken.Span.Start, ifStatement.Span.End));
321Location.Create(tree, localDeclarationStatement.Span),
322Location.Create(tree, ifStatement.Span),
323Location.Create(tree, expressionStatement.Span));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenTupleTest.cs (6)
5799var loc1 = Location.Create(tree, new TextSpan(0, 1));
5910var loc1 = Location.Create(tree, new TextSpan(0, 1));
5911var loc2 = Location.Create(tree, new TextSpan(1, 1));
6351var loc1 = Location.Create(syntaxTree, new TextSpan(0, 1));
6387var loc1 = Location.Create(syntaxTree, new TextSpan(0, 1));
6388var loc2 = Location.Create(syntaxTree, new TextSpan(1, 1));
Microsoft.CodeAnalysis.CSharp.Features (10)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (7)
133Location.Create(tree, ifStatement.Span),
134Location.Create(tree, expressionStatement.Span));
182var fadeLocation = Location.Create(tree, TextSpan.FromBounds(firstStatement.SpanStart, previousToken.Span.End));
203fadeLocation = Location.Create(tree, TextSpan.FromBounds(nextToken.Span.Start, ifStatement.Span.End));
321Location.Create(tree, localDeclarationStatement.Span),
322Location.Create(tree, ifStatement.Span),
323Location.Create(tree, expressionStatement.Span));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
SourceGeneration\GeneratorDriverTests.cs (16)
1271c.ReportDiagnostic(d.WithLocation(Location.Create(c.Compilation.SyntaxTrees.First(), l)));
1360return x.Diagnostic.WithLocation(Location.Create(syntaxTree, TextSpan.FromBounds(start, end)));
3626location: Location.Create(syntaxTree, TextSpan.FromBounds(0, 2))));
3659location: Location.Create(validSyntaxTree, TextSpan.FromBounds(0, 2)),
3660additionalLocations: new[] { Location.Create(invalidSyntaxTree, TextSpan.FromBounds(0, 2)) }));
3690location: Location.Create(syntaxTree, TextSpan.FromBounds(0, 2))));
3720location: Location.Create(validSyntaxTree, TextSpan.FromBounds(0, 2)),
3721additionalLocations: new[] { Location.Create(invalidSyntaxTree, TextSpan.FromBounds(0, 2)) }));
3752location: Location.Create(syntaxTree, TextSpan.FromBounds(0, 100))));
3784location: Location.Create(syntaxTree, TextSpan.FromBounds(0, 2)),
3785additionalLocations: new[] { Location.Create(syntaxTree, TextSpan.FromBounds(0, 100)) }));
3815location: Location.Create(syntaxTree, TextSpan.FromBounds(0, 100))));
3844location: Location.Create(syntaxTree, TextSpan.FromBounds(0, 2)),
3845additionalLocations: new[] { Location.Create(syntaxTree, TextSpan.FromBounds(0, 100)) }));
3876location: Location.Create(syntaxTree, TextSpan.FromBounds(0, 2))));
3906location: Location.Create(syntaxTree, TextSpan.FromBounds(0, 2))));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.Features (11)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
CodeGen\CodeGenTuples.vb (5)
6872Dim loc1 = Location.Create(tree, New TextSpan(0, 1))
6921Dim loc1 = Location.Create(tree, New TextSpan(0, 1))
6922Dim loc2 = Location.Create(tree, New TextSpan(1, 1))
7270Dim loc1 = Location.Create(tree, New TextSpan(0, 1))
7271Dim loc2 = Location.Create(tree, New TextSpan(1, 1))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces (1)