2 instantiations of RangeVariableSymbol
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.QueryTranslationState.cs (2)
75var result = new RangeVariableSymbol(name, binder.ContainingMemberOrLambda, identifier.GetLocation()); 119return new RangeVariableSymbol(transparentIdentifier, binder.ContainingMemberOrLambda, null, true);
65 references to RangeVariableSymbol
Microsoft.CodeAnalysis.CSharp (65)
Binder\Binder.IdentifierUsedAsValueFinder.cs (7)
367var x = state.rangeVariable; 380var x = state.rangeVariable; 440var x2 = state.AddRangeVariable(enclosingBinder, join.Identifier, BindingDiagnosticBag.Discarded); 493var x1 = state.rangeVariable; 515var x = state.rangeVariable; 521var y = state.AddRangeVariable(enclosingBinder, let.Identifier, BindingDiagnosticBag.Discarded); 529private bool MakeQueryUnboundLambda(Binder enclosingBinder, RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression)
Binder\Binder.QueryTranslationState.cs (10)
34public RangeVariableSymbol rangeVariable; 50public readonly Dictionary<RangeVariableSymbol, ArrayBuilder<string>> allRangeVariables = new Dictionary<RangeVariableSymbol, ArrayBuilder<string>>(); 52public static RangeVariableMap RangeVariableMap(params RangeVariableSymbol[] parameters) 55foreach (var vars in parameters) 65foreach (var vars in allRangeVariables.Keys) 72internal RangeVariableSymbol AddRangeVariable(Binder binder, SyntaxToken identifier, BindingDiagnosticBag diagnostics) 75var result = new RangeVariableSymbol(name, binder.ContainingMemberOrLambda, identifier.GetLocation()); 80foreach (var existingRangeVariable in allRangeVariables.Keys) 116internal RangeVariableSymbol TransparentRangeVariable(Binder binder)
Binder\Binder.QueryUnboundLambdaState.cs (2)
21private readonly ImmutableArray<RangeVariableSymbol> _parameters; 25public QueryUnboundLambdaState(Binder binder, RangeVariableMap rangeVariableMap, ImmutableArray<RangeVariableSymbol> parameters, LambdaBodyFactory bodyFactory, bool includeCache = true)
Binder\Binder.RangeVariableMap.cs (1)
26private class RangeVariableMap : Dictionary<RangeVariableSymbol, ImmutableArray<string>>
Binder\Binder.WithQueryLambdaParametersBinder.cs (4)
24private readonly MultiDictionary<string, RangeVariableSymbol> _parameterMap; 30_parameterMap = new MultiDictionary<string, RangeVariableSymbol>(); 31foreach (var qv in rangeVariableMap.Keys) 37protected override BoundExpression BindRangeVariable(SimpleNameSyntax node, RangeVariableSymbol qv, BindingDiagnosticBag diagnostics)
Binder\Binder_Expressions.cs (2)
2195return BindRangeVariable(node, (RangeVariableSymbol)symbol, diagnostics); 2237protected virtual BoundExpression BindRangeVariable(SimpleNameSyntax node, RangeVariableSymbol qv, BindingDiagnosticBag diagnostics)
Binder\Binder_Query.cs (22)
43(QueryTranslationState state, RangeVariableSymbol x) = MakeInitialQueryTranslationState(node, diagnostics); 88private (QueryTranslationState, RangeVariableSymbol) MakeInitialQueryTranslationState(QueryExpressionSyntax node, BindingDiagnosticBag diagnostics) 93RangeVariableSymbol x = state.rangeVariable = state.AddRangeVariable(this, fromClause.Identifier, diagnostics); 104private RangeVariableSymbol PrepareQueryTranslationStateForContinuation(QueryTranslationState state, QueryContinuationSyntax continuation, BindingDiagnosticBag diagnostics) 106RangeVariableSymbol x; 229var x = state.rangeVariable; 252var x = state.rangeVariable; 408var x1 = state.rangeVariable; 409var x2 = state.AddRangeVariable(this, join.Identifier, diagnostics); 450var g = state.AddRangeVariable(this, join.Into.Identifier, diagnostics); 521var g = state.AddRangeVariable(this, join.Into.Identifier, diagnostics); 585var x1 = state.rangeVariable; 597var x2 = state.AddRangeVariable(this, from.Identifier, diagnostics); 687private UnboundLambda MakePairLambda(CSharpSyntaxNode node, QueryTranslationState state, RangeVariableSymbol x1, RangeVariableSymbol x2, bool withDependencies) 716var x = state.rangeVariable; 755var y = state.AddRangeVariable(this, let.Identifier, diagnostics); 782RangeVariableSymbol? definedSymbol = null, 826private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, bool withDependencies) 831private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, ExpressionSyntax expression, bool withDependencies) 842private UnboundLambda MakeQueryUnboundLambdaWithCast(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, TypeSyntax castTypeSyntax, TypeWithAnnotations castType, bool withDependencies) 860private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, CSharpSyntaxNode node, LambdaBodyFactory bodyFactory, bool withDependencies)
FlowAnalysis\ReadWriteWalker.cs (1)
242var symbol = ((BoundQueryClause)node).DefinedSymbol;
Generated\BoundNodes.xml.Generated.cs (8)
4599public BoundRangeVariable(SyntaxNode syntax, RangeVariableSymbol rangeVariableSymbol, BoundExpression value, TypeSymbol type, bool hasErrors = false) 4612public RangeVariableSymbol RangeVariableSymbol { get; } 4618public BoundRangeVariable Update(RangeVariableSymbol rangeVariableSymbol, BoundExpression value, TypeSymbol type) 7676public BoundQueryClause(SyntaxNode syntax, BoundExpression value, RangeVariableSymbol? definedSymbol, BoundExpression? operation, BoundExpression? cast, Binder binder, BoundExpression? unoptimizedForm, TypeSymbol type, bool hasErrors = false) 7694public RangeVariableSymbol? DefinedSymbol { get; } 7703public BoundQueryClause Update(BoundExpression value, RangeVariableSymbol? definedSymbol, BoundExpression? operation, BoundExpression? cast, Binder binder, BoundExpression? unoptimizedForm, TypeSymbol type) 13580RangeVariableSymbol rangeVariableSymbol = GetUpdatedSymbol(node, node.RangeVariableSymbol); 14578RangeVariableSymbol? definedSymbol = GetUpdatedSymbol(node, node.DefinedSymbol);
Symbols\PublicModel\RangeVariableSymbol.cs (2)
13private readonly Symbols.RangeVariableSymbol _underlying; 15public RangeVariableSymbol(Symbols.RangeVariableSymbol underlying)
Symbols\RangeVariableSymbol.cs (1)
172return obj is RangeVariableSymbol symbol
Symbols\SymbolExtensions.cs (1)
635internal static IRangeVariableSymbol? GetPublicSymbol(this RangeVariableSymbol? symbol)
Symbols\SymbolVisitor.cs (1)
110public virtual void VisitRangeVariable(RangeVariableSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
110public virtual TResult VisitRangeVariable(RangeVariableSymbol symbol)
Symbols\SymbolVisitor`2.cs (2)
281/// Called when visiting a <see cref="RangeVariableSymbol" />; Override this with specific 287public virtual TResult VisitRangeVariable(RangeVariableSymbol symbol, TArgument argument)