2 implementations of IRangeVariableSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\RangeVariableSymbol.cs (1)
11internal sealed class RangeVariableSymbol : Symbol, IRangeVariableSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\RangeVariableSymbol.vb (1)
19Implements IRangeVariableSymbol
105 references to IRangeVariableSymbol
Microsoft.CodeAnalysis (3)
Symbols\SymbolVisitor.cs (1)
103public virtual void VisitRangeVariable(IRangeVariableSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
106public virtual TResult? VisitRangeVariable(IRangeVariableSymbol symbol)
Symbols\SymbolVisitor`2.cs (1)
111public virtual TResult VisitRangeVariable(IRangeVariableSymbol symbol, TArgument argument)
Microsoft.CodeAnalysis.CodeStyle (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// cref="IRangeVariableSymbol"/> and <see cref="MethodKind.LocalFunction"/> <see cref="IMethodSymbol"/>s can also 319IRangeVariableSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
362public override void VisitRangeVariable(IRangeVariableSymbol rangeVariableSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
464if (symbol is IRangeVariableSymbol && newSymbol is IRangeVariableSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
131SymbolKind.RangeVariable => RangeVariablesAreEquivalent((IRangeVariableSymbol)x, (IRangeVariableSymbol)y), 655private static bool RangeVariablesAreEquivalent(IRangeVariableSymbol x, IRangeVariableSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
72SymbolKind.RangeVariable => CombineHashCodes((IRangeVariableSymbol)x, currentHash), 291private static int CombineHashCodes(IRangeVariableSymbol x, int currentHash)
Microsoft.CodeAnalysis.CSharp (19)
Compilation\CSharpSemanticModel.cs (3)
3326public abstract IRangeVariableSymbol GetDeclaredSymbol(QueryClauseSyntax queryClause, CancellationToken cancellationToken = default(CancellationToken)); 3331public abstract IRangeVariableSymbol GetDeclaredSymbol(JoinIntoClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken)); 3336public abstract IRangeVariableSymbol GetDeclaredSymbol(QueryContinuationSyntax node, CancellationToken cancellationToken = default(CancellationToken));
Compilation\MemberSemanticModel.cs (3)
897public override IRangeVariableSymbol GetDeclaredSymbol(JoinIntoClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken)) 903public override IRangeVariableSymbol GetDeclaredSymbol(QueryClauseSyntax queryClause, CancellationToken cancellationToken = default(CancellationToken)) 909public override IRangeVariableSymbol GetDeclaredSymbol(QueryContinuationSyntax node, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SpeculativeSemanticModelWithMemberModel.cs (3)
380public override IRangeVariableSymbol GetDeclaredSymbol(JoinIntoClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken)) 385public override IRangeVariableSymbol GetDeclaredSymbol(QueryClauseSyntax queryClause, CancellationToken cancellationToken = default(CancellationToken)) 390public override IRangeVariableSymbol GetDeclaredSymbol(QueryContinuationSyntax node, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SyntaxTreeSemanticModel.cs (3)
473public override IRangeVariableSymbol GetDeclaredSymbol(QueryClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken)) 480public override IRangeVariableSymbol GetDeclaredSymbol(JoinIntoClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken)) 487public override IRangeVariableSymbol GetDeclaredSymbol(QueryContinuationSyntax node, CancellationToken cancellationToken = default(CancellationToken))
CSharpExtensions.cs (3)
1599public static IRangeVariableSymbol? GetDeclaredSymbol(this SemanticModel? semanticModel, QueryClauseSyntax queryClause, CancellationToken cancellationToken = default(CancellationToken)) 1608public static IRangeVariableSymbol? GetDeclaredSymbol(this SemanticModel? semanticModel, JoinIntoClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken)) 1617public static IRangeVariableSymbol? GetDeclaredSymbol(this SemanticModel? semanticModel, QueryContinuationSyntax node, CancellationToken cancellationToken = default(CancellationToken))
SymbolDisplay\SymbolDisplayVisitor.cs (1)
306public override void VisitRangeVariable(IRangeVariableSymbol symbol)
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
238private ITypeSymbol? GetRangeVariableType(IRangeVariableSymbol symbol)
Symbols\SymbolExtensions.cs (2)
635internal static IRangeVariableSymbol? GetPublicSymbol(this RangeVariableSymbol? symbol) 637return symbol.GetPublicSymbol<IRangeVariableSymbol>();
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
191Debug.Assert(localOrParameter is IParameterSymbol or ILocalSymbol or IRangeVariableSymbol);
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (1)
27protected override ITypeSymbol? GetRangeVariableType(IRangeVariableSymbol symbol)
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
118case IRangeVariableSymbol:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\QueryTests.cs (12)
1458var x = model.GetDeclaredSymbol(q.FromClause); 1466var y = model.GetDeclaredSymbol(q.Body.Clauses[0]); 1474var z = model.GetDeclaredSymbol(q.Body.Clauses[1]); 1667var x = model.GetDeclaredSymbol(q.FromClause); 1675var y = model.GetDeclaredSymbol(q.Body.Clauses[0]); 1683var z = model.GetDeclaredSymbol(q.Body.Clauses[1]); 1768var i = model.GetDeclaredSymbol(q.FromClause); 2901var x = model.GetDeclaredSymbol(q.FromClause); 2934var x = model.GetDeclaredSymbol(q.FromClause); 3472var x = speculativeModel.GetDeclaredSymbol(q.FromClause); 3519var symbol = speculativeModel.GetDeclaredSymbol(joinInto); 3559var symbol = speculativeModel.GetDeclaredSymbol(queryContinuation);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Compilation\SemanticModelAPITests.cs (4)
296var symbol1 = model1.GetDeclaredSymbol(vardecl); 297var symbol2 = model2.GetDeclaredSymbol(vardecl); 316var symbol1 = model1.GetDeclaredSymbol(vardecl); 317var symbol2 = model2.GetDeclaredSymbol(vardecl);
Compilation\SymbolVisitorTests.cs (3)
169public override void VisitRangeVariable(IRangeVariableSymbol symbol) 355public override string VisitRangeVariable(IRangeVariableSymbol symbol) 506public override int VisitRangeVariable(IRangeVariableSymbol symbol, StringBuilder argument)
DocumentationComments\DocumentationCommentIDTests.cs (1)
310var symbol = model.GetDeclaredSymbol(syntax);
SymbolDisplay\SymbolDisplayTests.cs (3)
6749var fromClauseRangeVariableSymbol = (IRangeVariableSymbol)semanticModel.GetDeclaredSymbol(queryExpression.FromClause); 8097var symbol = model.GetDeclaredSymbol(continuation);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AbstractTypeParameterChecker.cs (1)
156public sealed override void VisitRangeVariable(IRangeVariableSymbol symbol)
Microsoft.CodeAnalysis.Features (10)
ExtractMethod\MethodExtractor.Analyzer.cs (4)
58protected abstract ITypeSymbol? GetRangeVariableType(IRangeVariableSymbol symbol); 536IRangeVariableSymbol rangeVariable => GetRangeVariableType(rangeVariable), 575IRangeVariableSymbol rangeVariable => new VariableInfo(new QueryVariableSymbol(rangeVariable, type), style, useAsReturnValue: false), 754case IRangeVariableSymbol rangeVariable:
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
208if (symbol is IRangeVariableSymbol or ILocalSymbol)
IntroduceVariable\AbstractIntroduceVariableService.State_Block.cs (1)
26if (bindingMap.AllReferencedSymbols.Any(s => s is IRangeVariableSymbol))
IntroduceVariable\AbstractIntroduceVariableService.State_Query.cs (1)
26if (!semanticMap.AllReferencedSymbols.Any(s => s is IRangeVariableSymbol))
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
136public override void VisitRangeVariable(IRangeVariableSymbol symbol)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (2)
355else if (symbol is IRangeVariableSymbol rangeVariable) 618private void AddDescriptionForRangeVariable(IRangeVariableSymbol symbol)
Microsoft.CodeAnalysis.VisualBasic (18)
Binding\MemberSemanticModel.vb (3)
653Public Overrides Function GetDeclaredSymbol(rangeVariableSyntax As CollectionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 674Public Overrides Function GetDeclaredSymbol(rangeVariableSyntax As ExpressionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 691Public Overrides Function GetDeclaredSymbol(rangeVariableSyntax As AggregationRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol
Compilation\SemanticModel.vb (3)
2474Public Overridable Overloads Function GetDeclaredSymbol(rangeVariableSyntax As ExpressionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 2490Public Overridable Overloads Function GetDeclaredSymbol(rangeVariableSyntax As CollectionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 2506Public Overridable Overloads Function GetDeclaredSymbol(rangeVariableSyntax As AggregationRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol
Compilation\SpeculativeSemanticModelWithMemberModel.vb (3)
197Public Overrides Function GetDeclaredSymbol(rangeVariableSyntax As CollectionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 201Public Overrides Function GetDeclaredSymbol(rangeVariableSyntax As ExpressionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 205Public Overrides Function GetDeclaredSymbol(rangeVariableSyntax As AggregationRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol
Compilation\SyntaxTreeSemanticModel.vb (3)
1260Public Overrides Function GetDeclaredSymbol(rangeVariableSyntax As ExpressionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 1275Public Overrides Function GetDeclaredSymbol(rangeVariableSyntax As CollectionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 1290Public Overrides Function GetDeclaredSymbol(rangeVariableSyntax As AggregationRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol
SymbolDisplay\SymbolDisplayVisitor.vb (1)
304Public Overrides Sub VisitRangeVariable(symbol As IRangeVariableSymbol)
Symbols\Source\RangeVariableSymbol.vb (2)
104visitor.VisitRangeVariable(DirectCast(Me, IRangeVariableSymbol)) 108Return visitor.VisitRangeVariable(DirectCast(Me, IRangeVariableSymbol))
VisualBasicExtensions.vb (3)
902Public Function GetDeclaredSymbol(semanticModel As SemanticModel, rangeVariableSyntax As ExpressionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 915Public Function GetDeclaredSymbol(semanticModel As SemanticModel, rangeVariableSyntax As CollectionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol 928Public Function GetDeclaredSymbol(semanticModel As SemanticModel, rangeVariableSyntax As AggregationRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol
Microsoft.CodeAnalysis.VisualBasic.Features (2)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
115Debug.Assert(TypeOf localOrParameter Is IParameterSymbol OrElse TypeOf localOrParameter Is ILocalSymbol OrElse TypeOf localOrParameter Is IRangeVariableSymbol)
ExtractMethod\VisualBasicMethodExtractor.Analyzer.vb (1)
28Protected Overrides Function GetRangeVariableType(symbol As IRangeVariableSymbol) As ITypeSymbol
Microsoft.CodeAnalysis.Workspaces (12)
FindSymbols\FindReferences\Finders\RangeVariableSymbolReferenceFinder.cs (1)
7internal sealed class RangeVariableSymbolReferenceFinder : AbstractMemberScopedReferenceFinder<IRangeVariableSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
75/// cref="IRangeVariableSymbol"/> and <see cref="MethodKind.LocalFunction"/> <see cref="IMethodSymbol"/>s can also 319IRangeVariableSymbol => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
362public override void VisitRangeVariable(IRangeVariableSymbol rangeVariableSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
464if (symbol is IRangeVariableSymbol && newSymbol is IRangeVariableSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
131SymbolKind.RangeVariable => RangeVariablesAreEquivalent((IRangeVariableSymbol)x, (IRangeVariableSymbol)y), 655private static bool RangeVariablesAreEquivalent(IRangeVariableSymbol x, IRangeVariableSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
72SymbolKind.RangeVariable => CombineHashCodes((IRangeVariableSymbol)x, currentHash), 291private static int CombineHashCodes(IRangeVariableSymbol x, int currentHash)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SymbolKeyTests.cs (2)
591var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<IRangeVariableSymbol>()).ToList(); 1410Assert.True(symbols.Any(s => s is IRangeVariableSymbol));
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
188if (symbol is IRangeVariableSymbol)