32 references to SyntaxReference
Microsoft.CodeAnalysis.CSharp (32)
Binder\WithExternAndUsingAliasesBinder.cs (2)
180
if (declaration.HasGlobalUsings && compilationUnit.SyntaxTree != declaration.
SyntaxReference
.SyntaxTree)
182
result = result.AddAliasesIfAny(((CompilationUnitSyntax)declaration.
SyntaxReference
.GetSyntax()).Usings, onlyGlobalAliases: true);
Compilation\CSharpCompilation.cs (1)
3101
if (singleDeclaration.
SyntaxReference
.SyntaxTree == tree)
Declarations\DeclarationTable.cs (2)
154
return _compilation.CompareSourceLocations(x!.
SyntaxReference
, y!.
SyntaxReference
);
Declarations\MergedTypeDeclaration.cs (1)
71
var syntaxRef = decl.
SyntaxReference
;
Declarations\SingleNamespaceOrTypeDeclaration.cs (1)
39
return new SourceLocation(this.
SyntaxReference
);
Declarations\SingleTypeDeclaration.cs (2)
255
if ((object)thisDecl.
SyntaxReference
.SyntaxTree != otherDecl.
SyntaxReference
.SyntaxTree
Symbols\Source\SourceMemberContainerSymbol.cs (4)
1023
var syntaxRef = declaration.
SyntaxReference
;
1101
var syntaxRef = declaration.
SyntaxReference
;
1879
var tree = declaration.Declarations[0].
SyntaxReference
.SyntaxTree;
3531
var syntax = decl.
SyntaxReference
.GetSyntax();
Symbols\Source\SourceNamedTypeSymbol.cs (3)
326
var syntaxRef = decl.
SyntaxReference
;
385
if (GetConstraintClauses((CSharpSyntaxNode)decl.
SyntaxReference
.GetSyntax(), out _).Count != 0)
407
var syntaxRef = decl.
SyntaxReference
;
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
430
var typeDeclaration = (BaseTypeDeclarationSyntax)decl.
SyntaxReference
.GetSyntax();
633
(TypeKind != TypeKind.Class || baseType.TypeKind == TypeKind.Interface || ((TypeDeclarationSyntax)decl.
SyntaxReference
.GetSyntax()).ParameterList is null))
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (5)
73
var declarationSyntaxRef = declaration.
SyntaxReference
;
281
var aliases = GetAliasesAndUsings(singleDeclaration).GetGlobalUsingAliasesMap(this, singleDeclaration.
SyntaxReference
, basesBeingResolved);
319
var namespacesOrTypes = GetAliasesAndUsings(singleDeclaration).GetGlobalUsingNamespacesOrTypes(this, singleDeclaration.
SyntaxReference
, basesBeingResolved);
355
var externAliases = GetAliasesAndUsings(singleDeclaration).GetExternAliases(this, singleDeclaration.
SyntaxReference
);
360
globalAliasesMap = GetAliasesAndUsings(singleDeclaration).GetGlobalUsingAliasesMap(this, singleDeclaration.
SyntaxReference
, basesBeingResolved);
Symbols\Source\SourceNamespaceSymbol.cs (2)
122
new NamespaceDeclarationSyntaxReference(d.
SyntaxReference
);
468
var declarationSyntaxRef = declaration.
SyntaxReference
;
Symbols\Source\SourceNamespaceSymbol_Completion.cs (2)
40
if (locationOpt == null || locationOpt.SourceTree == declaration.
SyntaxReference
.SyntaxTree)
45
GetAliasesAndUsings(declaration).Complete(this, declaration.
SyntaxReference
, cancellationToken);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (5)
29
: base(containingType, syntaxReferenceOpt: declaration.
SyntaxReference
, declaration.
SyntaxReference
.GetLocation(), isIterator: declaration.IsIterator,
32
Debug.Assert(declaration.
SyntaxReference
.GetSyntax() is CompilationUnitSyntax);
69
var compilationUnit = (CompilationUnitSyntax)declaration.
SyntaxReference
.GetSyntax();
256
if (_declaration.
SyntaxReference
.SyntaxTree == tree)