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