5 instantiations of BoundDagTypeEvaluation
Microsoft.CodeAnalysis.CSharp (5)
Binder\DecisionDagBuilder.cs (4)
807
var typeEvaluation = new
BoundDagTypeEvaluation
(syntax, outParameterTemp.Type.StrippedType(), outParameterTemp);
814
typeEvaluation = new
BoundDagTypeEvaluation
(syntax, type, typeEvaluationTemp);
850
var evaluation = new
BoundDagTypeEvaluation
(syntax, type, input);
1131
var evaluation = new
BoundDagTypeEvaluation
(bin.Syntax, bin.NarrowedType, input);
Generated\BoundNodes.xml.Generated.cs (1)
5494
var result = new
BoundDagTypeEvaluation
(this.Syntax, type, input, this.HasErrors);
52 references to BoundDagTypeEvaluation
Microsoft.CodeAnalysis.CSharp (52)
Binder\DecisionDagBuilder.cs (30)
36
/// reads a property; and <see cref="
BoundDagTypeEvaluation
"/> converts a value from one type to another (which
534
while (input.Source is
BoundDagTypeEvaluation
source && isDerivedType(source.Input.Type, symbol.ContainingType))
559
while (input.Source is
BoundDagTypeEvaluation
source)
807
var
typeEvaluation = new BoundDagTypeEvaluation(syntax, outParameterTemp.Type.StrippedType(), outParameterTemp);
850
var
evaluation = new BoundDagTypeEvaluation(syntax, type, input);
1131
var
evaluation = new BoundDagTypeEvaluation(bin.Syntax, bin.NarrowedType, input);
2419
case (
BoundDagTypeEvaluation
s1,
BoundDagTypeEvaluation
s2):
2441
case (
BoundDagTypeEvaluation
s1, _):
2458
case (_,
BoundDagTypeEvaluation
s2):
2561
Debug.Assert(s1.Input.Source is
BoundDagTypeEvaluation
);
2562
Debug.Assert(s2.Input.Source is
BoundDagTypeEvaluation
);
2569
case (
BoundDagTypeEvaluation
s1,
BoundDagTypeEvaluation
s2):
2596
case (
BoundDagTypeEvaluation
s1, BoundDagIndexerEvaluation or BoundDagFieldEvaluation or BoundDagPropertyEvaluation or BoundDagIndexEvaluation or BoundDagSliceEvaluation): // s2Source can be anything with an output, obtainable via MakeResultTemp().
2608
case (BoundDagIndexerEvaluation or BoundDagFieldEvaluation or BoundDagPropertyEvaluation or BoundDagIndexEvaluation or BoundDagSliceEvaluation,
BoundDagTypeEvaluation
s2):
2639
internal static BoundDagEvaluation? SkipAllTypeEvaluations(
BoundDagTypeEvaluation
typeEval)
2646
while (input.Source is
BoundDagTypeEvaluation
source)
2886
case
BoundDagTypeEvaluation
a:
3622
case
BoundDagTypeEvaluation
typeEval:
3737
private static Tests RemoveTypeEvaluation(One tests, DecisionDagBuilder dagBuilder, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap,
BoundDagTypeEvaluation
e1)
3739
if (tests.Test is
BoundDagTypeEvaluation
typeEval && IsSameEntity(typeEval.MakeResultTemp(), e1.MakeResultTemp()))
3749
else if (typeEval.Input is { Source: not
BoundDagTypeEvaluation
} typeEvalInput)
3779
static Tests? replaceUnionTypeEvaluation(DecisionDagBuilder dagBuilder,
BoundDagTypeEvaluation
e1,
BoundDagTypeEvaluation
typeEval)
3790
var
newTypeEval = typeEval.Update(e1.Input);
3882
Debug.Assert(passThrough.Input.Source is
BoundDagTypeEvaluation
);
3883
return new BoundDagPassThroughEvaluation(passThrough.Syntax, ((
BoundDagTypeEvaluation
)UpdateDagTempReferences((
BoundDagTypeEvaluation
)passThrough.Input.Source, ref tempMap)).MakeResultTemp());
3886
case
BoundDagTypeEvaluation
:
Binder\PatternExplainer.cs (2)
382
if (evaluations is [
BoundDagTypeEvaluation
{ Type: var evaluationType } te])
414
evaluations[0] is
BoundDagTypeEvaluation
{ Type: var evaluationType } te &&
BoundTree\BoundDagEvaluation.cs (5)
23
Debug.Assert(other is BoundDagIndexerEvaluation or
BoundDagTypeEvaluation
or BoundDagPassThroughEvaluation ||
24
this is BoundDagIndexerEvaluation or
BoundDagTypeEvaluation
or BoundDagPassThroughEvaluation ||
55
BoundDagTypeEvaluation
e => e.Type,
139
public new
BoundDagTypeEvaluation
Update(BoundDagTemp input)
382
Debug.Assert(Input.Source is
BoundDagTypeEvaluation
);
BoundTree\BoundDagTest.cs (1)
64
case
BoundDagTypeEvaluation
a:
FlowAnalysis\NullableWalker_Patterns.cs (3)
458
case
BoundDagTypeEvaluation
e:
587
&& t.Input.Source is
BoundDagTypeEvaluation
{ Input: { IsOriginalInput: true } })
706
case
BoundDagTypeEvaluation
e:
Generated\BoundNodes.xml.Generated.cs (8)
5490
public
BoundDagTypeEvaluation
Update(TypeSymbol type, BoundDagTemp input)
5494
var
result = new BoundDagTypeEvaluation(this.Syntax, type, input, this.HasErrors);
9384
return VisitDagTypeEvaluation((
BoundDagTypeEvaluation
)node, arg);
9722
public virtual R VisitDagTypeEvaluation(
BoundDagTypeEvaluation
node, A arg) => this.DefaultVisit(node, arg);
9963
public virtual BoundNode? VisitDagTypeEvaluation(
BoundDagTypeEvaluation
node) => this.DefaultVisit(node);
10631
public override BoundNode? VisitDagTypeEvaluation(
BoundDagTypeEvaluation
node)
12021
public override BoundNode? VisitDagTypeEvaluation(
BoundDagTypeEvaluation
node)
16714
public override TreeDumperNode VisitDagTypeEvaluation(
BoundDagTypeEvaluation
node, object? arg) => new TreeDumperNode("dagTypeEvaluation", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
212
case
BoundDagTypeEvaluation
t:
503
evaluation is
BoundDagTypeEvaluation
typeEvaluation1 &&
518
evaluation is
BoundDagTypeEvaluation
typeEvaluation2 &&