1 write to DeclaringSyntaxReference
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
96
DeclaringSyntaxReference
= declaringSyntaxReference;
25 references to DeclaringSyntaxReference
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
16
/// cref="ImportedNamespaceOrType.
DeclaringSyntaxReference
"/> or <see
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
1193
Assert.Null(import.
DeclaringSyntaxReference
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Compilation\GetImportScopesTests.cs (15)
56
Assert.True(scopes.Single().Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax);
72
Assert.True(scopes.Single().Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax);
103
Assert.True(scopes.Single().Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax);
131
Assert.True(scopes.Single().Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax);
149
Assert.True(scopes.Single().Imports.Any(i => i.
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: IdentifierNameSyntax { Identifier.Text: nameof(System) } }));
150
Assert.True(scopes.Single().Imports.Any(i => i.
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: IdentifierNameSyntax { Identifier.Text: nameof(Microsoft) } }));
176
Assert.True(scopes.Single().Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: IdentifierNameSyntax { Identifier.Text: nameof(System) } });
199
Assert.True(scopes[0].Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: IdentifierNameSyntax { Identifier.Text: nameof(Microsoft) } });
201
Assert.True(scopes[1].Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: IdentifierNameSyntax { Identifier.Text: nameof(System) } });
227
Assert.True(scopes[0].Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: IdentifierNameSyntax { Identifier.Text: nameof(Microsoft) } });
229
Assert.True(scopes[1].Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: IdentifierNameSyntax { Identifier.Text: nameof(System) } });
626
Assert.True(scopes.Single().Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: IdentifierNameSyntax { Identifier.Text: nameof(System) } });
649
Assert.True(scopes.Single().Imports.Single().
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax);
683
Assert.True(scopes.Single().Imports.Any(i => i.
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: IdentifierNameSyntax { Identifier.Text: nameof(System) } }));
685
Assert.True(scopes.Single().Imports.Any(i => i.
DeclaringSyntaxReference
!.GetSyntax() is UsingDirectiveSyntax { Name: QualifiedNameSyntax { Right: IdentifierNameSyntax { Identifier.Text: nameof(System.IO) } } }));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Compilation\GetImportScopesTests.vb (8)
74
Assert.True(IsSimpleImportsClauseWithName(scopes.Single().Imports.Single().
DeclaringSyntaxReference
, NameOf(System)))
91
Assert.True(IsSimpleImportsClauseWithName(scopes.Single().Imports.Single().
DeclaringSyntaxReference
, NameOf(System)))
109
Assert.True(IsSimpleImportsClauseWithName(scopes.Single().Imports.Single().
DeclaringSyntaxReference
, NameOf(System)))
126
Assert.True(scopes.Single().Imports.Any(Function(i) IsSimpleImportsClauseWithName(i.
DeclaringSyntaxReference
, NameOf(System))))
127
Assert.True(scopes.Single().Imports.Any(Function(i) IsSimpleImportsClauseWithName(i.
DeclaringSyntaxReference
, NameOf(Microsoft))))
153
Assert.True(IsSimpleImportsClauseWithName(scopes.Single().Imports.Single().
DeclaringSyntaxReference
, NameOf(System)))
176
Assert.True(IsSimpleImportsClauseWithName(scopes.Single().Imports.Single().
DeclaringSyntaxReference
, NameOf(System)))
201
Assert.True(IsSimpleImportsClauseWithName(scopes.Single().Imports.Single().
DeclaringSyntaxReference
, NameOf(System)))