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