36 references to GetDeclaredSymbols
Microsoft.CodeAnalysis.Workspaces.UnitTests (36)
SymbolKeyTests.cs (36)
59foreach (var symbol in GetDeclaredSymbols(compilation)) 114TestRoundTrip(GetDeclaredSymbols(compilation), compilation); 133TestRoundTrip(GetDeclaredSymbols(compilation1), compilation1, useSymbolEquivalence: false); 134TestRoundTrip(GetDeclaredSymbols(compilation1), compilation2, useSymbolEquivalence: true); 135TestRoundTrip(GetDeclaredSymbols(compilation2), compilation1, useSymbolEquivalence: true); 136TestRoundTrip(GetDeclaredSymbols(compilation2), compilation2, useSymbolEquivalence: false); 150var symbols = GetDeclaredSymbols(compilation); 166var symbols = GetDeclaredSymbols(compilation); 182var symbols = GetDeclaredSymbols(compilation); 197var symbols = GetDeclaredSymbols(compilation); 212var symbols = GetDeclaredSymbols(compilation); 227var symbols = GetDeclaredSymbols(compilation); 242var symbols = GetDeclaredSymbols(compilation); 257var symbols = GetDeclaredSymbols(compilation); 272var symbols = GetDeclaredSymbols(compilation); 288var symbols = GetDeclaredSymbols(compilation); 304var symbols = GetDeclaredSymbols(compilation); 332var symbols = GetDeclaredSymbols(compilation); 359TestRoundTrip(GetDeclaredSymbols(compilation).OfType<IFieldSymbol>().Select(fs => fs.Type), compilation); 377TestRoundTrip(GetDeclaredSymbols(compilation).OfType<IFieldSymbol>().Select(fs => fs.Type), compilation, s => s.ToDisplayString()); 398TestRoundTrip(GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => ms.Parameters), compilation); 508TestRoundTrip(GetDeclaredSymbols(compilation), compilation); 542var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<ILocalSymbol>()).ToList(); 564var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<ILabelSymbol>()).ToList(); 591var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<IRangeVariableSymbol>()).ToList(); 685var refSymbols = GetDeclaredSymbols(compilation).OfType<IFieldSymbol>().Select(f => f.Type).ToList(); 704var symbols = GetDeclaredSymbols(compilation).OfType<IFieldSymbol>().Select(f => f.Type).ToList(); 722var method = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().First(); 740var type = GetDeclaredSymbols(compilation).OfType<INamedTypeSymbol>().First(); 760var outer = GetDeclaredSymbols(compilation).OfType<INamedTypeSymbol>().First(s => s.Name == "A"); 783var a = GetDeclaredSymbols(compilation).OfType<INamedTypeSymbol>().Single(s => s.Name == "A"); 826var typeParameter = GetDeclaredSymbols(compilation).OfType<INamedTypeSymbol>().Where(n => !n.IsImplicitlyDeclared).Single().TypeParameters.Single(); 839var typeParameter = GetDeclaredSymbols(compilation).OfType<INamedTypeSymbol>() 955var methods = GetDeclaredSymbols(compilation1).OfType<IMethodSymbol>(); 1257var fields = GetDeclaredSymbols(comp).OfType<IFieldSymbol>().Select(f => f.Type); 1403var methods = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>();