29 references to GetCollectionInitializerSymbolInfo
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpSemanticFacts.cs (1)
186=> semanticModel.GetCollectionInitializerSymbolInfo((ExpressionSyntax)node, cancellationToken);
SpeculationAnalyzer.cs (2)
562var originalSymbol = this.OriginalSemanticModel.GetCollectionInitializerSymbolInfo(originalInitializer, CancellationToken).Symbol; 563var newSymbol = this.SpeculativeSemanticModel.GetCollectionInitializerSymbolInfo(newInitializer, CancellationToken).Symbol;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpTypeInferenceService.TypeInferrer.cs (3)
1337var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(initializerExpression).GetAllSymbols(); 1355var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols(); 1446var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\ImplicitObjectCreationTests.cs (2)
4537symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(nodes[0]); 4544symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(nodes[1]);
Semantics\ObjectAndCollectionInitializerTests.cs (9)
3458symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(nodes[0]); 3465symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(nodes[1]); 3506symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(nodes[0]); 3563symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(nodes[0]); 3599symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(nodes[0]); 3638symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(((InitializerExpressionSyntax)nodes[0]).Expressions[i]); 3684symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(expression); 3734symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(expression); 3778symbolInfo = semanticModel.GetCollectionInitializerSymbolInfo(expression);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\Source\NullablePublicAPITests.cs (6)
2967var symbolInfo = model.GetCollectionInitializerSymbolInfo(expr); 3009var symbolInfo = model.GetCollectionInitializerSymbolInfo(expr); 3051var symbolInfo = model.GetCollectionInitializerSymbolInfo(expr); 3111var symbolInfo = model.GetCollectionInitializerSymbolInfo(expr); 3157var symbolInfo = model.GetCollectionInitializerSymbolInfo(expr); 3202var symbolInfo = model.GetCollectionInitializerSymbolInfo(expr);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CSharpSemanticFacts.cs (1)
186=> semanticModel.GetCollectionInitializerSymbolInfo((ExpressionSyntax)node, cancellationToken);
CSharpTypeInferenceService.TypeInferrer.cs (3)
1337var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(initializerExpression).GetAllSymbols(); 1355var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols(); 1446var addMethodSymbols = SemanticModel.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols();
SpeculationAnalyzer.cs (2)
562var originalSymbol = this.OriginalSemanticModel.GetCollectionInitializerSymbolInfo(originalInitializer, CancellationToken).Symbol; 563var newSymbol = this.SpeculativeSemanticModel.GetCollectionInitializerSymbolInfo(newInitializer, CancellationToken).Symbol;