36 instantiations of BoundDagTemp
Microsoft.CodeAnalysis.CSharp (36)
Binder\DecisionDagBuilder.cs (5)
337var valueAsITuple = new BoundDagTemp(syntax, iTupleType, valueAsITupleEvaluation); 475input = new BoundDagTemp(syntax, type, evaluation); 541var element = new BoundDagTemp(syntax, method.Parameters[i + extensionExtra].Type, evaluation, i); 565var element = new BoundDagTemp(syntax, field.Type, evaluation); 631input = new BoundDagTemp(member.Syntax, member.Type, evaluation);
Binder\DecisionDagBuilder_ListPatterns.cs (2)
67var sliceTemp = new BoundDagTemp(slicePattern.Syntax, slicePattern.InputType, sliceEvaluation); 82var indexTemp = new BoundDagTemp(subpattern.Syntax, subpattern.InputType, indexEvaluation);
Binder\PatternExplainer.cs (9)
344var typedTemp = new BoundDagTemp(te.Syntax, te.Type, te); 359var typedTemp = new BoundDagTemp(te.Syntax, te.Type, te); 403var lengthTemp = new BoundDagTemp(lengthOrCount.Syntax, lengthOrCount.Property.Type, lengthOrCount); 431var indexerTemp = new BoundDagTemp(e.Syntax, e.IndexerType, e); 450var sliceTemp = new BoundDagTemp(slice.Syntax, slice.SliceType, slice); 479var elementTemp = new BoundDagTemp(e.Syntax, e.Field.Type, e); 547var elementTemp = new BoundDagTemp(e.Syntax, method.Parameters[j + extensionExtra].Type, e, j); 566var subInput = new BoundDagTemp(e.Syntax, e.Field.Type, e); 573var subInput = new BoundDagTemp(e.Syntax, e.Property.Type, e);
BoundTree\BoundDagTemp.cs (1)
21public static BoundDagTemp ForOriginalInput(SyntaxNode syntax, TypeSymbol type) => new BoundDagTemp(syntax, type, source: null, 0);
BoundTree\Constructors.cs (1)
708public static BoundDagTemp ForOriginalInput(BoundExpression expr) => new BoundDagTemp(expr.Syntax, expr.Type!, source: null);
FlowAnalysis\NullableWalker_Patterns.cs (7)
452var output = new BoundDagTemp(e.Syntax, parameterType.Type, e, i); 461var output = new BoundDagTemp(e.Syntax, e.Type, e); 490var output = new BoundDagTemp(e.Syntax, type.Type, e); 536var output = new BoundDagTemp(e.Syntax, type.Type, e); 561var output = new BoundDagTemp(e.Syntax, type.Type, e); 573var output = new BoundDagTemp(e.Syntax, type.Type, e); 840var output = new BoundDagTemp(e.Syntax, type.Type, e, index: index);
Generated\BoundNodes.xml.Generated.cs (1)
5219var result = new BoundDagTemp(this.Syntax, type, source, index, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (10)
143var outputTemp = new BoundDagTemp(f.Syntax, field.Type, f); 153var outputTemp = new BoundDagTemp(p.Syntax, property.Type, p); 189var outputTemp = new BoundDagTemp(d.Syntax, parameter.Type, d, i - extensionExtra); 208var outputTemp = new BoundDagTemp(t.Syntax, type, t); 245var outputTemp = new BoundDagTemp(e.Syntax, type, e); 270var outputTemp = new BoundDagTemp(e.Syntax, e.IndexerType, e); 296var outputTemp = new BoundDagTemp(e.Syntax, e.SliceType, e); 474BoundExpression output = _tempAllocator.GetTemp(new BoundDagTemp(evaluation.Syntax, typeEvaluation1.Type, evaluation)); 490BoundExpression output = _tempAllocator.GetTemp(new BoundDagTemp(evaluation.Syntax, baseType, evaluation)); 627var temp = new BoundDagTemp(expr.Syntax, expr.Type, fieldFetchEvaluation);
239 references to BoundDagTemp
Microsoft.CodeAnalysis.CSharp (239)
Binder\DecisionDagBuilder.cs (74)
133var rootIdentifier = BoundDagTemp.ForOriginalInput(inputExpression); 146var rootIdentifier = BoundDagTemp.ForOriginalInput(switchGoverningExpression); 171var rootIdentifier = BoundDagTemp.ForOriginalInput(switchExpressionInput); 186BoundDagTemp input, 196BoundDagTemp input, 217BoundDagTemp temp = binding.TempContainingValue; 269BoundDagTemp input, 282BoundDagTemp input, 284out BoundDagTemp output, 319BoundDagTemp input, 321out BoundDagTemp output, 337var valueAsITuple = new BoundDagTemp(syntax, iTupleType, valueAsITupleEvaluation); 342var lengthTemp = new BoundDagTemp(syntax, this._compilation.GetSpecialType(SpecialType.System_Int32), lengthEvaluation); 345var getItemPropertyInput = OriginalInput(valueAsITuple, getItemProperty); 350var indexTemp = new BoundDagTemp(syntax, objectType, indexEvaluation); 363private BoundDagTemp OriginalInput(BoundDagTemp input, Symbol symbol) 379private static BoundDagTemp OriginalInput(BoundDagTemp input) 392BoundDagTemp input, 394out BoundDagTemp output, 420BoundDagTemp input, 422out BoundDagTemp output) 431BoundDagTemp input, 448private BoundDagTemp MakeConvertToType( 449BoundDagTemp input, 483BoundDagTemp input, 485out BoundDagTemp output) 517BoundDagTemp input, 519out BoundDagTemp output, 541var element = new BoundDagTemp(syntax, method.Parameters[i + extensionExtra].Type, evaluation, i); 565var element = new BoundDagTemp(syntax, field.Type, evaluation); 584BoundDagTemp currentInput = input; 605bool tryMakeTestsForSubpatternMember([NotNullWhen(true)] BoundPropertySubpatternMember? member, ref BoundDagTemp input, bool isLengthOrCount) 636private Tests MakeTestsAndBindingsForNegatedPattern(BoundDagTemp input, BoundNegatedPattern neg, ArrayBuilder<BoundPatternBinding> bindings) 643BoundDagTemp input, 645out BoundDagTemp output, 671static Tests makeTestsAndBindingsForBinaryPattern(DecisionDagBuilder @this, Tests leftTests, BoundDagTemp leftOutput, BoundDagTemp input, BoundBinaryPattern bin, out BoundDagTemp output, ArrayBuilder<BoundPatternBinding> bindings) 695builder.Add(@this.MakeTestsAndBindings(leftOutput, bin.Right, out var rightOutput, bindings)); 704BoundDagTemp input, 706out BoundDagTemp output) 828DagState uniquifyState(FrozenArrayBuilder<StateForCase> cases, ImmutableDictionary<BoundDagTemp, IValueSet> remainingValues) 841var newRemainingValues = ImmutableDictionary.CreateBuilder<BoundDagTemp, IValueSet>(); 887ImmutableDictionary<BoundDagTemp, IValueSet>.Empty); 1088out ImmutableDictionary<BoundDagTemp, IValueSet> whenTrueValues, 1090out ImmutableDictionary<BoundDagTemp, IValueSet> whenFalseValues, 1125ImmutableDictionary<BoundDagTemp, IValueSet> whenTrueValues, 1126ImmutableDictionary<BoundDagTemp, IValueSet> whenFalseValues, 1130ImmutableDictionary<BoundDagTemp, IValueSet> values, 1149ImmutableDictionary<BoundDagTemp, IValueSet> whenTrueValues, 1150ImmutableDictionary<BoundDagTemp, IValueSet> whenFalseValues, 1155var input = test.Input; 1175private static (BoundDagTemp? lengthTemp, int offset) TryGetTopLevelLengthTemp(BoundDagPropertyEvaluation e) 1179BoundDagTemp input = e.Input; 1180BoundDagTemp? lengthTemp = null; 1191private static (BoundDagTemp input, BoundDagTemp lengthTemp, int index) GetCanonicalInput(BoundDagIndexerEvaluation e) 1194BoundDagTemp input = e.Input; 1195BoundDagTemp lengthTemp = e.LengthTemp; 1436BoundDagTemp s1Input = OriginalInput(test.Input); 1437BoundDagTemp s2Input = OriginalInput(other.Input); 1468(s1Input, BoundDagTemp s1LengthTemp, int s1Index) = GetCanonicalInput(s1); 1469(s2Input, BoundDagTemp s2LengthTemp, int s2Index) = GetCanonicalInput(s2); 1670string tempName(BoundDagTemp t) 1852/// A <see cref="BoundDagTemp"/> absent from this dictionary means that all values of the type are possible. 1854public ImmutableDictionary<BoundDagTemp, IValueSet> RemainingValues { get; private set; } = null!; 1883public static DagState GetInstance(FrozenArrayBuilder<StateForCase> cases, ImmutableDictionary<BoundDagTemp, IValueSet> remainingValues) 1927internal void UpdateRemainingValues(ImmutableDictionary<BoundDagTemp, IValueSet> newRemainingValues) 2232if (TryGetTopLevelLengthTemp(e) is (BoundDagTemp lengthTemp, int offset))
Binder\DecisionDagBuilder_ListPatterns.cs (5)
13private Tests MakeTestsAndBindingsForListPattern(BoundDagTemp input, BoundListPattern list, out BoundDagTemp output, ArrayBuilder<BoundPatternBinding> bindings) 43var lengthTemp = new BoundDagTemp(syntax, _compilation.GetSpecialType(SpecialType.System_Int32), lengthEvaluation); 67var sliceTemp = new BoundDagTemp(slicePattern.Syntax, slicePattern.InputType, sliceEvaluation); 82var indexTemp = new BoundDagTemp(subpattern.Syntax, subpattern.InputType, indexEvaluation);
Binder\PatternExplainer.cs (22)
180BoundDagTemp rootIdentifier, 210static string samplePatternFromOtherPaths(BoundDagTemp rootIdentifier, BoundDecisionDagNode rootNode, 245out Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>> constraints, 246out Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>> evaluations) 248constraints = new Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>>(); 249evaluations = new Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>>(); 260BoundDagTemp temp = test.Input; 278BoundDagTemp temp = e.Evaluation.Input; 292BoundDagTemp input, 293Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest test, bool sense)>> constraintMap, 294Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>> evaluationMap, 311static ImmutableArray<T> getArray<T>(Dictionary<BoundDagTemp, ArrayBuilder<T>> map, BoundDagTemp temp) 344var typedTemp = new BoundDagTemp(te.Syntax, te.Type, te); 359var typedTemp = new BoundDagTemp(te.Syntax, te.Type, te); 403var lengthTemp = new BoundDagTemp(lengthOrCount.Syntax, lengthOrCount.Property.Type, lengthOrCount); 431var indexerTemp = new BoundDagTemp(e.Syntax, e.IndexerType, e); 450var sliceTemp = new BoundDagTemp(slice.Syntax, slice.SliceType, slice); 479var elementTemp = new BoundDagTemp(e.Syntax, e.Field.Type, e); 547var elementTemp = new BoundDagTemp(e.Syntax, method.Parameters[j + extensionExtra].Type, e, j); 566var subInput = new BoundDagTemp(e.Syntax, e.Field.Type, e); 573var subInput = new BoundDagTemp(e.Syntax, e.Property.Type, e);
Binder\SwitchExpressionBinder.cs (1)
96BoundDagTemp.ForOriginalInput(boundInputExpression), nodes, n, nullPaths: false, out bool requiresFalseWhenClause, out bool unnamedEnumValue);
BoundTree\BoundDagTemp.cs (4)
21public static BoundDagTemp ForOriginalInput(SyntaxNode syntax, TypeSymbol type) => new BoundDagTemp(syntax, type, source: null, 0); 23public override bool Equals(object? obj) => obj is BoundDagTemp other && this.Equals(other); 25public bool Equals(BoundDagTemp other) 36public bool IsEquivalentTo(BoundDagTemp other)
BoundTree\BoundPatternBinding.cs (2)
15public readonly BoundDagTemp TempContainingValue; 16public BoundPatternBinding(BoundExpression variableAccess, BoundDagTemp tempContainingValue)
BoundTree\Constructors.cs (1)
708public static BoundDagTemp ForOriginalInput(BoundExpression expr) => new BoundDagTemp(expr.Syntax, expr.Type!, source: null);
FlowAnalysis\NullableWalker_Patterns.cs (14)
385var rootTemp = BoundDagTemp.ForOriginalInput(expression); 409var tempMap = PooledDictionary<BoundDagTemp, (int slot, TypeSymbol type)>.GetInstance(); 452var output = new BoundDagTemp(e.Syntax, parameterType.Type, e, i); 461var output = new BoundDagTemp(e.Syntax, e.Type, e); 490var output = new BoundDagTemp(e.Syntax, type.Type, e); 536var output = new BoundDagTemp(e.Syntax, type.Type, e); 561var output = new BoundDagTemp(e.Syntax, type.Type, e); 573var output = new BoundDagTemp(e.Syntax, type.Type, e); 675var tempSource = binding.TempContainingValue; 740void addToTempMap(BoundDagTemp output, int slot, TypeSymbol type) 831int makeDagTempSlot(TypeWithAnnotations type, BoundDagTemp temp) 840var output = new BoundDagTemp(e.Syntax, type.Type, e, index: index); 903BoundDagTemp.ForOriginalInput(node.Expression), nodes, leaf, nullPaths: true, out bool requiresFalseWhenClause, out _);
Generated\BoundNodes.xml.Generated.cs (94)
5183protected BoundDagTest(BoundKind kind, SyntaxNode syntax, BoundDagTemp input, bool hasErrors = false) 5192public BoundDagTemp Input { get; } 5215public BoundDagTemp Update(TypeSymbol type, BoundDagEvaluation? source, int index) 5219var result = new BoundDagTemp(this.Syntax, type, source, index, this.HasErrors); 5229public BoundDagTypeTest(SyntaxNode syntax, TypeSymbol type, BoundDagTemp input, bool hasErrors = false) 5244public BoundDagTypeTest Update(TypeSymbol type, BoundDagTemp input) 5258public BoundDagNonNullTest(SyntaxNode syntax, bool isExplicitTest, BoundDagTemp input, bool hasErrors = false) 5272public BoundDagNonNullTest Update(bool isExplicitTest, BoundDagTemp input) 5286public BoundDagExplicitNullTest(SyntaxNode syntax, BoundDagTemp input, bool hasErrors = false) 5298public BoundDagExplicitNullTest Update(BoundDagTemp input) 5312public BoundDagValueTest(SyntaxNode syntax, ConstantValue value, BoundDagTemp input, bool hasErrors = false) 5327public BoundDagValueTest Update(ConstantValue value, BoundDagTemp input) 5341public BoundDagRelationalTest(SyntaxNode syntax, BinaryOperatorKind operatorKind, ConstantValue value, BoundDagTemp input, bool hasErrors = false) 5358public BoundDagRelationalTest Update(BinaryOperatorKind operatorKind, ConstantValue value, BoundDagTemp input) 5372protected BoundDagEvaluation(BoundKind kind, SyntaxNode syntax, BoundDagTemp input, bool hasErrors = false) 5384public BoundDagDeconstructEvaluation(SyntaxNode syntax, MethodSymbol deconstructMethod, BoundDagTemp input, bool hasErrors = false) 5399public BoundDagDeconstructEvaluation Update(MethodSymbol deconstructMethod, BoundDagTemp input) 5413public BoundDagTypeEvaluation(SyntaxNode syntax, TypeSymbol type, BoundDagTemp input, bool hasErrors = false) 5428public BoundDagTypeEvaluation Update(TypeSymbol type, BoundDagTemp input) 5442public BoundDagFieldEvaluation(SyntaxNode syntax, FieldSymbol field, BoundDagTemp input, bool hasErrors = false) 5457public BoundDagFieldEvaluation Update(FieldSymbol field, BoundDagTemp input) 5471public BoundDagPropertyEvaluation(SyntaxNode syntax, PropertySymbol property, bool isLengthOrCount, BoundDagTemp input, bool hasErrors = false) 5488public BoundDagPropertyEvaluation Update(PropertySymbol property, bool isLengthOrCount, BoundDagTemp input) 5502public BoundDagIndexEvaluation(SyntaxNode syntax, PropertySymbol property, int index, BoundDagTemp input, bool hasErrors = false) 5519public BoundDagIndexEvaluation Update(PropertySymbol property, int index, BoundDagTemp input) 5533public BoundDagIndexerEvaluation(SyntaxNode syntax, TypeSymbol indexerType, BoundDagTemp lengthTemp, int index, BoundExpression indexerAccess, BoundListPatternReceiverPlaceholder receiverPlaceholder, BoundListPatternIndexPlaceholder argumentPlaceholder, BoundDagTemp input, bool hasErrors = false) 5557public BoundDagTemp LengthTemp { get; } 5566public BoundDagIndexerEvaluation Update(TypeSymbol indexerType, BoundDagTemp lengthTemp, int index, BoundExpression indexerAccess, BoundListPatternReceiverPlaceholder receiverPlaceholder, BoundListPatternIndexPlaceholder argumentPlaceholder, BoundDagTemp input) 5580public BoundDagSliceEvaluation(SyntaxNode syntax, TypeSymbol sliceType, BoundDagTemp lengthTemp, int startIndex, int endIndex, BoundExpression indexerAccess, BoundSlicePatternReceiverPlaceholder receiverPlaceholder, BoundSlicePatternRangePlaceholder argumentPlaceholder, BoundDagTemp input, bool hasErrors = false) 5605public BoundDagTemp LengthTemp { get; } 5615public BoundDagSliceEvaluation Update(TypeSymbol sliceType, BoundDagTemp lengthTemp, int startIndex, int endIndex, BoundExpression indexerAccess, BoundSlicePatternReceiverPlaceholder receiverPlaceholder, BoundSlicePatternRangePlaceholder argumentPlaceholder, BoundDagTemp input) 5629public BoundDagAssignmentEvaluation(SyntaxNode syntax, BoundDagTemp target, BoundDagTemp input, bool hasErrors = false) 5639public BoundDagTemp Target { get; } 5644public BoundDagAssignmentEvaluation Update(BoundDagTemp target, BoundDagTemp input) 9103return VisitDagTemp((BoundDagTemp)node, arg); 9439public virtual R VisitDagTemp(BoundDagTemp node, A arg) => this.DefaultVisit(node, arg); 9675public virtual BoundNode? VisitDagTemp(BoundDagTemp node) => this.DefaultVisit(node); 10309public override BoundNode? VisitDagTemp(BoundDagTemp node) 11569public override BoundNode? VisitDagTemp(BoundDagTemp node) 11577BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11583BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11588BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11593BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11598BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11603BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11608BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11614BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11619BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11624BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11629BoundDagTemp lengthTemp = (BoundDagTemp)this.Visit(node.LengthTemp); 11633BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11639BoundDagTemp lengthTemp = (BoundDagTemp)this.Visit(node.LengthTemp); 11643BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11649BoundDagTemp target = (BoundDagTemp)this.Visit(node.Target); 11650BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 13676BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 13683BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 13690BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 13697BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 13704BoundDagTemp lengthTemp = (BoundDagTemp)this.Visit(node.LengthTemp); 13708BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 13715BoundDagTemp lengthTemp = (BoundDagTemp)this.Visit(node.LengthTemp); 13719BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 16138public override TreeDumperNode VisitDagTemp(BoundDagTemp node, object? arg) => new TreeDumperNode("dagTemp", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (4)
360BoundExpression inputTemp = _tempAllocator.GetTemp(BoundDagTemp.ForOriginalInput(loweredSwitchGoverningExpression)); 504var input = ((BoundTestDecisionDagNode)node).Test.Input; 552BoundDagTemp input) 561BoundDagTemp input,
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (17)
56private readonly PooledDictionary<BoundDagTemp, BoundExpression> _map = PooledDictionary<BoundDagTemp, BoundExpression>.GetInstance(); 94public BoundExpression GetTemp(BoundDagTemp dagTemp) 115public bool TrySetTemp(BoundDagTemp dagTemp, BoundExpression translation) 143var outputTemp = new BoundDagTemp(f.Syntax, field.Type, f); 153var outputTemp = new BoundDagTemp(p.Syntax, property.Type, p); 189var outputTemp = new BoundDagTemp(d.Syntax, parameter.Type, d, i - extensionExtra); 208var outputTemp = new BoundDagTemp(t.Syntax, type, t); 245var outputTemp = new BoundDagTemp(e.Syntax, type, e); 270var outputTemp = new BoundDagTemp(e.Syntax, e.IndexerType, e); 296var outputTemp = new BoundDagTemp(e.Syntax, e.SliceType, e); 518var inputDagTemp = BoundDagTemp.ForOriginalInput(loweredInput); 619var originalInput = BoundDagTemp.ForOriginalInput(loweredInput.Syntax, loweredInput.Type); 627var temp = new BoundDagTemp(expr.Syntax, expr.Type, fieldFetchEvaluation); 640void storeToTemp(BoundDagTemp temp, BoundExpression expr)
Utilities\ValueSetFactory.cs (1)
64public static IValueSetFactory? ForInput(BoundDagTemp input)