47 references to Symbols
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder.CapturedParametersFinder.cs (1)
153foreach (var candidate in lookupResult.Symbols)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
269Debug.Assert(lookupResult.Symbols.Any());
Binder\Binder_Crefs.cs (1)
361builder.AddRange(result.Symbols);
Binder\Binder_Expressions.cs (16)
1485Debug.Assert(!result || lookupResult.Symbols.Count > 0); 2412var symbol = (LabelSymbol)result.Symbols.First(); 7741return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.Error, lookupResult.Symbols.ToImmutable(), lookupResult.Kind); 7769ArrayBuilder<Symbol> symbols = lookupResult.Symbols; 7777return new BoundBadExpression(node, LookupResultKind.Ambiguous, lookupResult.Symbols.AsImmutable(), ImmutableArray.Create(boundLeft), CreateErrorType(rightName), hasErrors: true); 7980lookupResult.Symbols.All(s => s.Kind == SymbolKind.Method) ? lookupResult.Symbols.SelectAsArray(s_toMethodSymbolFunc) : ImmutableArray<MethodSymbol>.Empty, 7994return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.Error, lookupResult.Symbols.ToImmutable(), lookupResult.Kind); 8234Debug.Assert(lookupResult.Symbols.Any()); 8483Debug.Assert(lookupResult.Symbols.Any()); 8856Debug.Assert(!result.Symbols.Any(s => s.IsIndexer())); 8863foreach (var symbol in result.Symbols) 9614foreach (Symbol symbol in lookupResult.Symbols) 10031foreach (var candidate in lookupResult.Symbols) 10086foreach (var candidate in lookupResult.Symbols) 10196lookupResult.Symbols[0] is PropertySymbol property &&
Binder\Binder_Lookup.cs (14)
302Symbol existingDefinition = submissionSymbols.Symbols.First(); 336Symbol firstSymbol = submissionSymbols.Symbols.First(); 349if (submissionSymbols.Symbols.Count > 0 && submissionSymbols.Symbols.First().Kind != lookingForOverloadsOfKind.Value) 358Debug.Assert(result.Symbols.All(IsMethodOrIndexer)); 364if (result.Symbols.Count == 0) 590var symbols = result.Symbols; 828bool tmpHidesMethodOrIndexers = tmp.IsMultiViable && !IsMethodOrIndexer(tmp.Symbols[0]); 831if (result.IsMultiViable && (tmpHidesMethodOrIndexers || !IsMethodOrIndexer(result.Symbols[0]))) 899foreach (var sym in result.Symbols) 924foreach (var sym in tmp.Symbols) 938foreach (var sym in result.Symbols) 1231var hidingSymbols = resultHiding.Symbols; 1233var hiddenSymbols = resultHidden.Symbols;
Binder\Binder_Statements.cs (2)
480var symbol = result.Symbols.Count > 0 && result.IsMultiViable ? 481(LabelSymbol)result.Symbols.First() :
Binder\Binder_Symbols.cs (4)
956foreach (var s in result.Symbols) 977foreach (var s in result.Symbols) 1544foreach (var symbol in lookupResult.Symbols) 1945var symbols = result.Symbols;
Binder\Binder_XmlNameAttribute.cs (1)
43ArrayBuilder<Symbol> lookupSymbols = lookupResult.Symbols;
Binder\ForEachLoopBinder.cs (3)
1380foreach (Symbol member in lookupResult.Symbols) 1860if (lookupResult.Symbols.Any()) 1864ReportEnumerableWarning(collectionSyntax, diagnostics, patternType, lookupResult.Symbols.First());
Compilation\CSharpSemanticModel.cs (4)
1668foreach (MethodSymbol extensionMethod in lookupResult.Symbols) 1748if (lookupResult.Symbols.Any(t => t.Kind == SymbolKind.NamedType || t.Kind == SymbolKind.Namespace || t.Kind == SymbolKind.ErrorType)) 1760foreach (var symbol in lookupResult.Symbols) 1768foreach (var symbol in lookupResult.Symbols)