BoundNodes.xml.Generated.cs 634.8 KB
Newer Older
S
Sam Harwell 已提交
1
// <auto-generated />
D
DotNet Bot 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Text;
using Microsoft.CodeAnalysis.Collections;
using Roslyn.Utilities;

using Microsoft.CodeAnalysis.Text;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;

namespace Microsoft.CodeAnalysis.CSharp
{
    internal enum BoundKind: byte
    {
        FieldEqualsValue,
        PropertyEqualsValue,
        ParameterEqualsValue,
        GlobalStatementInitializer,
        DeconstructValuePlaceholder,
28
        TupleOperandPlaceholder,
29
        AwaitableValuePlaceholder,
30
        DisposableValuePlaceholder,
D
DotNet Bot 已提交
31
        Dup,
32
        PassByCopy,
D
DotNet Bot 已提交
33 34
        BadExpression,
        BadStatement,
35
        ExtractedFinallyBlock,
D
DotNet Bot 已提交
36 37 38 39 40 41 42 43 44 45 46
        TypeExpression,
        TypeOrValueExpression,
        NamespaceExpression,
        UnaryOperator,
        IncrementOperator,
        AddressOfOperator,
        PointerIndirectionOperator,
        PointerElementAccess,
        RefTypeOperator,
        MakeRefOperator,
        RefValueOperator,
47
        FromEndIndexExpression,
O
Omar Tawfik 已提交
48
        RangeExpression,
D
DotNet Bot 已提交
49
        BinaryOperator,
50
        TupleBinaryOperator,
D
DotNet Bot 已提交
51 52 53 54 55
        UserDefinedConditionalLogicalOperator,
        CompoundAssignmentOperator,
        AssignmentOperator,
        DeconstructionAssignmentOperator,
        NullCoalescingOperator,
F
Fredric Silberberg 已提交
56
        NullCoalescingAssignmentOperator,
D
DotNet Bot 已提交
57 58 59 60 61 62 63 64 65 66 67 68 69
        ConditionalOperator,
        ArrayAccess,
        ArrayLength,
        AwaitExpression,
        TypeOfOperator,
        MethodDefIndex,
        MaximumMethodDefIndex,
        InstrumentationPayloadRoot,
        ModuleVersionId,
        ModuleVersionIdString,
        SourceDocumentIndex,
        MethodInfo,
        FieldInfo,
70
        DefaultExpression,
D
DotNet Bot 已提交
71 72 73 74 75 76 77 78 79 80 81 82 83 84
        IsOperator,
        AsOperator,
        SizeOfOperator,
        Conversion,
        ArgList,
        ArgListOperator,
        FixedLocalCollectionInitializer,
        SequencePoint,
        SequencePointWithSpan,
        Block,
        Scope,
        StateMachineScope,
        LocalDeclaration,
        MultipleLocalDeclarations,
85
        UsingLocalDeclarations,
D
DotNet Bot 已提交
86 87 88 89 90 91 92 93 94
        LocalFunctionStatement,
        NoOpStatement,
        ReturnStatement,
        YieldReturnStatement,
        YieldBreakStatement,
        ThrowStatement,
        ExpressionStatement,
        BreakStatement,
        ContinueStatement,
95
        SwitchStatement,
96
        SwitchDispatch,
D
DotNet Bot 已提交
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
        IfStatement,
        DoStatement,
        WhileStatement,
        ForStatement,
        ForEachStatement,
        ForEachDeconstructStep,
        UsingStatement,
        FixedStatement,
        LockStatement,
        TryStatement,
        CatchBlock,
        Literal,
        ThisReference,
        PreviousSubmissionReference,
        HostObjectMemberReference,
        BaseReference,
        Local,
        PseudoVariable,
        RangeVariable,
        Parameter,
        LabelStatement,
        GotoStatement,
        LabeledStatement,
        Label,
        StatementList,
        ConditionalGoto,
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
        SwitchExpression,
        SwitchExpressionArm,
        DecisionDag,
        EvaluationDecisionDagNode,
        TestDecisionDagNode,
        WhenDecisionDagNode,
        LeafDecisionDagNode,
        DagTemp,
        DagTypeTest,
        DagNonNullTest,
        DagNullTest,
        DagValueTest,
        DagDeconstructEvaluation,
        DagTypeEvaluation,
        DagFieldEvaluation,
        DagPropertyEvaluation,
139
        DagIndexEvaluation,
140
        SwitchSection,
141
        SwitchLabel,
142 143 144
        SequencePointExpression,
        Sequence,
        SpillSequence,
D
DotNet Bot 已提交
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
        DynamicMemberAccess,
        DynamicInvocation,
        ConditionalAccess,
        LoweredConditionalAccess,
        ConditionalReceiver,
        ComplexConditionalReceiver,
        MethodGroup,
        PropertyGroup,
        Call,
        EventAssignmentOperator,
        Attribute,
        ObjectCreationExpression,
        TupleLiteral,
        ConvertedTupleLiteral,
        DynamicObjectCreationExpression,
        NoPiaObjectCreationExpression,
        ObjectInitializerExpression,
        ObjectInitializerMember,
        DynamicObjectInitializerMember,
        CollectionInitializerExpression,
        CollectionElementInitializer,
        DynamicCollectionElementInitializer,
        ImplicitReceiver,
        AnonymousObjectCreationExpression,
        AnonymousPropertyDeclaration,
        NewT,
        DelegateCreationExpression,
        ArrayCreation,
        ArrayInitialization,
        StackAllocArrayCreation,
175
        ConvertedStackAllocExpression,
D
DotNet Bot 已提交
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
        FieldAccess,
        HoistedFieldAccess,
        PropertyAccess,
        EventAccess,
        IndexerAccess,
        DynamicIndexerAccess,
        Lambda,
        UnboundLambda,
        QueryClause,
        TypeOrInstanceInitializers,
        NameOfOperator,
        InterpolatedString,
        StringInsert,
        IsPatternExpression,
        ConstantPattern,
191 192 193
        DiscardPattern,
        DeclarationPattern,
        RecursivePattern,
194
        ITuplePattern,
195
        Subpattern,
D
DotNet Bot 已提交
196 197 198 199 200
        DiscardExpression,
        ThrowExpression,
        OutVariablePendingInference,
        DeconstructionVariablePendingInference,
        OutDeconstructVarPendingInference,
201 202
        NonConstructorMethodBody,
        ConstructorMethodBody,
203
        ExpressionWithNullability,
D
DotNet Bot 已提交
204 205 206 207 208 209 210 211 212 213 214
    }










215

216

D
DotNet Bot 已提交
217 218 219 220 221 222 223 224 225 226 227 228 229 230
    internal abstract partial class BoundInitializer : BoundNode
    {
        protected BoundInitializer(BoundKind kind, SyntaxNode syntax, bool hasErrors)
            : base(kind, syntax, hasErrors)
        {
        }

        protected BoundInitializer(BoundKind kind, SyntaxNode syntax)
            : base(kind, syntax)
        {
        }

    }

231
    internal abstract partial class BoundEqualsValue : BoundInitializer
D
DotNet Bot 已提交
232
    {
233
        protected BoundEqualsValue(BoundKind kind, SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false)
D
DotNet Bot 已提交
234 235 236
            : base(kind, syntax, hasErrors)
        {

237
            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
238
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
239

240
            this.Locals = locals;
D
DotNet Bot 已提交
241 242 243 244
            this.Value = value;
        }


245 246
        public ImmutableArray<LocalSymbol> Locals { get; }

D
DotNet Bot 已提交
247 248 249 250 251
        public BoundExpression Value { get; }
    }

    internal sealed partial class BoundFieldEqualsValue : BoundEqualsValue
    {
252 253
        public BoundFieldEqualsValue(SyntaxNode syntax, FieldSymbol field, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false)
            : base(BoundKind.FieldEqualsValue, syntax, locals, value, hasErrors || value.HasErrors())
D
DotNet Bot 已提交
254 255
        {

256
            Debug.Assert((object)field != null, "Field 'field' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
257
            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
258
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
259 260 261 262 263 264 265 266 267 268 269 270

            this.Field = field;
        }


        public FieldSymbol Field { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitFieldEqualsValue(this);
        }

271
        public BoundFieldEqualsValue Update(FieldSymbol field, ImmutableArray<LocalSymbol> locals, BoundExpression value)
D
DotNet Bot 已提交
272
        {
273
            if (field != this.Field || locals != this.Locals || value != this.Value)
D
DotNet Bot 已提交
274
            {
275
                var result = new BoundFieldEqualsValue(this.Syntax, field, locals, value, this.HasErrors);
276
                result.CopyAttributes(this);
D
DotNet Bot 已提交
277 278 279 280 281 282 283 284
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundPropertyEqualsValue : BoundEqualsValue
    {
285 286
        public BoundPropertyEqualsValue(SyntaxNode syntax, PropertySymbol property, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false)
            : base(BoundKind.PropertyEqualsValue, syntax, locals, value, hasErrors || value.HasErrors())
D
DotNet Bot 已提交
287 288
        {

289
            Debug.Assert((object)property != null, "Field 'property' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
290
            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
291
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
292 293 294 295 296 297 298 299 300 301 302 303

            this.Property = property;
        }


        public PropertySymbol Property { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitPropertyEqualsValue(this);
        }

304
        public BoundPropertyEqualsValue Update(PropertySymbol property, ImmutableArray<LocalSymbol> locals, BoundExpression value)
D
DotNet Bot 已提交
305
        {
306
            if (property != this.Property || locals != this.Locals || value != this.Value)
D
DotNet Bot 已提交
307
            {
308
                var result = new BoundPropertyEqualsValue(this.Syntax, property, locals, value, this.HasErrors);
309
                result.CopyAttributes(this);
D
DotNet Bot 已提交
310 311 312 313 314 315 316 317
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundParameterEqualsValue : BoundEqualsValue
    {
318 319
        public BoundParameterEqualsValue(SyntaxNode syntax, ParameterSymbol parameter, ImmutableArray<LocalSymbol> locals, BoundExpression value, bool hasErrors = false)
            : base(BoundKind.ParameterEqualsValue, syntax, locals, value, hasErrors || value.HasErrors())
D
DotNet Bot 已提交
320 321
        {

322
            Debug.Assert((object)parameter != null, "Field 'parameter' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
323
            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
324
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
325 326 327 328 329 330 331 332 333 334 335 336

            this.Parameter = parameter;
        }


        public ParameterSymbol Parameter { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitParameterEqualsValue(this);
        }

337
        public BoundParameterEqualsValue Update(ParameterSymbol parameter, ImmutableArray<LocalSymbol> locals, BoundExpression value)
D
DotNet Bot 已提交
338
        {
339
            if (parameter != this.Parameter || locals != this.Locals || value != this.Value)
D
DotNet Bot 已提交
340
            {
341
                var result = new BoundParameterEqualsValue(this.Syntax, parameter, locals, value, this.HasErrors);
342
                result.CopyAttributes(this);
D
DotNet Bot 已提交
343 344 345 346 347 348 349 350 351 352 353 354
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundGlobalStatementInitializer : BoundInitializer
    {
        public BoundGlobalStatementInitializer(SyntaxNode syntax, BoundStatement statement, bool hasErrors = false)
            : base(BoundKind.GlobalStatementInitializer, syntax, hasErrors || statement.HasErrors())
        {

355
            Debug.Assert((object)statement != null, "Field 'statement' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372

            this.Statement = statement;
        }


        public BoundStatement Statement { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitGlobalStatementInitializer(this);
        }

        public BoundGlobalStatementInitializer Update(BoundStatement statement)
        {
            if (statement != this.Statement)
            {
                var result = new BoundGlobalStatementInitializer(this.Syntax, statement, this.HasErrors);
373
                result.CopyAttributes(this);
D
DotNet Bot 已提交
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
                return result;
            }
            return this;
        }
    }

    internal abstract partial class BoundExpression : BoundNode
    {
        protected BoundExpression(BoundKind kind, SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(kind, syntax, hasErrors)
        {
            this.Type = type;
        }

        protected BoundExpression(BoundKind kind, SyntaxNode syntax, TypeSymbol type)
            : base(kind, syntax)
        {
            this.Type = type;
        }


        public TypeSymbol Type { get; }
    }

    internal abstract partial class BoundValuePlaceholderBase : BoundExpression
    {
        protected BoundValuePlaceholderBase(BoundKind kind, SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(kind, syntax, type, hasErrors)
        {

404
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
405 406 407 408 409 410 411

        }

        protected BoundValuePlaceholderBase(BoundKind kind, SyntaxNode syntax, TypeSymbol type)
            : base(kind, syntax, type)
        {

412
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
413 414 415 416 417 418 419

        }

    }

    internal sealed partial class BoundDeconstructValuePlaceholder : BoundValuePlaceholderBase
    {
420
        public BoundDeconstructValuePlaceholder(SyntaxNode syntax, uint valEscape, TypeSymbol type, bool hasErrors)
D
DotNet Bot 已提交
421 422 423
            : base(BoundKind.DeconstructValuePlaceholder, syntax, type, hasErrors)
        {

424
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
425

426
            this.ValEscape = valEscape;
D
DotNet Bot 已提交
427 428
        }

429
        public BoundDeconstructValuePlaceholder(SyntaxNode syntax, uint valEscape, TypeSymbol type)
D
DotNet Bot 已提交
430 431 432
            : base(BoundKind.DeconstructValuePlaceholder, syntax, type)
        {

433
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
434

435
            this.ValEscape = valEscape;
D
DotNet Bot 已提交
436 437 438
        }


439 440
        public uint ValEscape { get; }

D
DotNet Bot 已提交
441 442 443 444 445
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDeconstructValuePlaceholder(this);
        }

446
        public BoundDeconstructValuePlaceholder Update(uint valEscape, TypeSymbol type)
D
DotNet Bot 已提交
447
        {
448
            if (valEscape != this.ValEscape || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
449
            {
450
                var result = new BoundDeconstructValuePlaceholder(this.Syntax, valEscape, type, this.HasErrors);
451
                result.CopyAttributes(this);
D
DotNet Bot 已提交
452 453 454 455
                return result;
            }
            return this;
        }
456 457 458 459 460 461 462

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDeconstructValuePlaceholder(this.Syntax, this.ValEscape, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
463 464
    }

465 466 467 468 469 470
    internal sealed partial class BoundTupleOperandPlaceholder : BoundValuePlaceholderBase
    {
        public BoundTupleOperandPlaceholder(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.TupleOperandPlaceholder, syntax, type, hasErrors)
        {

471
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
472 473 474 475 476 477 478

        }

        public BoundTupleOperandPlaceholder(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.TupleOperandPlaceholder, syntax, type)
        {

479
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
480 481 482 483 484 485 486 487 488 489 490

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitTupleOperandPlaceholder(this);
        }

        public BoundTupleOperandPlaceholder Update(TypeSymbol type)
        {
491
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
492 493
            {
                var result = new BoundTupleOperandPlaceholder(this.Syntax, type, this.HasErrors);
494
                result.CopyAttributes(this);
495 496 497 498
                return result;
            }
            return this;
        }
499 500 501 502 503 504 505

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundTupleOperandPlaceholder(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
506 507
    }

508 509 510 511 512 513
    internal sealed partial class BoundAwaitableValuePlaceholder : BoundValuePlaceholderBase
    {
        public BoundAwaitableValuePlaceholder(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.AwaitableValuePlaceholder, syntax, type, hasErrors)
        {

514
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
515 516 517 518 519 520 521

        }

        public BoundAwaitableValuePlaceholder(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.AwaitableValuePlaceholder, syntax, type)
        {

522
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
523 524 525 526 527 528 529 530 531 532 533

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitAwaitableValuePlaceholder(this);
        }

        public BoundAwaitableValuePlaceholder Update(TypeSymbol type)
        {
534
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
535 536
            {
                var result = new BoundAwaitableValuePlaceholder(this.Syntax, type, this.HasErrors);
537
                result.CopyAttributes(this);
538 539 540 541
                return result;
            }
            return this;
        }
542 543 544 545 546 547 548

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundAwaitableValuePlaceholder(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
549 550
    }

551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579
    internal sealed partial class BoundDisposableValuePlaceholder : BoundValuePlaceholderBase
    {
        public BoundDisposableValuePlaceholder(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.DisposableValuePlaceholder, syntax, type, hasErrors)
        {

            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

        }

        public BoundDisposableValuePlaceholder(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.DisposableValuePlaceholder, syntax, type)
        {

            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDisposableValuePlaceholder(this);
        }

        public BoundDisposableValuePlaceholder Update(TypeSymbol type)
        {
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
            {
                var result = new BoundDisposableValuePlaceholder(this.Syntax, type, this.HasErrors);
580
                result.CopyAttributes(this);
581 582 583 584
                return result;
            }
            return this;
        }
585 586 587 588 589 590 591

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDisposableValuePlaceholder(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
592 593
    }

D
DotNet Bot 已提交
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617
    internal sealed partial class BoundDup : BoundExpression
    {
        public BoundDup(SyntaxNode syntax, RefKind refKind, TypeSymbol type, bool hasErrors)
            : base(BoundKind.Dup, syntax, type, hasErrors)
        {
            this.RefKind = refKind;
        }

        public BoundDup(SyntaxNode syntax, RefKind refKind, TypeSymbol type)
            : base(BoundKind.Dup, syntax, type)
        {
            this.RefKind = refKind;
        }


        public RefKind RefKind { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDup(this);
        }

        public BoundDup Update(RefKind refKind, TypeSymbol type)
        {
618
            if (refKind != this.RefKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
619 620
            {
                var result = new BoundDup(this.Syntax, refKind, type, this.HasErrors);
621
                result.CopyAttributes(this);
D
DotNet Bot 已提交
622 623 624 625
                return result;
            }
            return this;
        }
626 627 628 629 630 631 632

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDup(this.Syntax, this.RefKind, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
633 634
    }

635 636 637 638 639 640
    internal sealed partial class BoundPassByCopy : BoundExpression
    {
        public BoundPassByCopy(SyntaxNode syntax, BoundExpression expression, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.PassByCopy, syntax, type, hasErrors || expression.HasErrors())
        {

641
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
642 643 644 645 646 647 648 649 650 651 652 653 654 655

            this.Expression = expression;
        }


        public BoundExpression Expression { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitPassByCopy(this);
        }

        public BoundPassByCopy Update(BoundExpression expression, TypeSymbol type)
        {
656
            if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
657 658
            {
                var result = new BoundPassByCopy(this.Syntax, expression, type, this.HasErrors);
659
                result.CopyAttributes(this);
660 661 662 663
                return result;
            }
            return this;
        }
664 665 666 667 668 669 670

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundPassByCopy(this.Syntax, this.Expression, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
671 672
    }

D
DotNet Bot 已提交
673 674
    internal sealed partial class BoundBadExpression : BoundExpression
    {
675
        public BoundBadExpression(SyntaxNode syntax, LookupResultKind resultKind, ImmutableArray<Symbol> symbols, ImmutableArray<BoundExpression> childBoundNodes, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692
            : base(BoundKind.BadExpression, syntax, type, hasErrors || childBoundNodes.HasErrors())
        {

            Debug.Assert(!symbols.IsDefault, "Field 'symbols' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!childBoundNodes.IsDefault, "Field 'childBoundNodes' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this._ResultKind = resultKind;
            this.Symbols = symbols;
            this.ChildBoundNodes = childBoundNodes;
        }


        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public ImmutableArray<Symbol> Symbols { get; }

693
        public ImmutableArray<BoundExpression> ChildBoundNodes { get; }
D
DotNet Bot 已提交
694 695 696 697 698 699

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitBadExpression(this);
        }

700
        public BoundBadExpression Update(LookupResultKind resultKind, ImmutableArray<Symbol> symbols, ImmutableArray<BoundExpression> childBoundNodes, TypeSymbol type)
D
DotNet Bot 已提交
701
        {
702
            if (resultKind != this.ResultKind || symbols != this.Symbols || childBoundNodes != this.ChildBoundNodes || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
703 704
            {
                var result = new BoundBadExpression(this.Syntax, resultKind, symbols, childBoundNodes, type, this.HasErrors);
705
                result.CopyAttributes(this);
D
DotNet Bot 已提交
706 707 708 709
                return result;
            }
            return this;
        }
710 711 712 713 714 715 716

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundBadExpression(this.Syntax, this.ResultKind, this.Symbols, this.ChildBoundNodes, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742
    }

    internal sealed partial class BoundBadStatement : BoundStatement
    {
        public BoundBadStatement(SyntaxNode syntax, ImmutableArray<BoundNode> childBoundNodes, bool hasErrors = false)
            : base(BoundKind.BadStatement, syntax, hasErrors || childBoundNodes.HasErrors())
        {

            Debug.Assert(!childBoundNodes.IsDefault, "Field 'childBoundNodes' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.ChildBoundNodes = childBoundNodes;
        }


        public ImmutableArray<BoundNode> ChildBoundNodes { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitBadStatement(this);
        }

        public BoundBadStatement Update(ImmutableArray<BoundNode> childBoundNodes)
        {
            if (childBoundNodes != this.ChildBoundNodes)
            {
                var result = new BoundBadStatement(this.Syntax, childBoundNodes, this.HasErrors);
743
                result.CopyAttributes(this);
D
DotNet Bot 已提交
744 745 746 747 748 749
                return result;
            }
            return this;
        }
    }

750 751 752 753 754 755
    internal sealed partial class BoundExtractedFinallyBlock : BoundStatement
    {
        public BoundExtractedFinallyBlock(SyntaxNode syntax, BoundBlock finallyBlock, bool hasErrors = false)
            : base(BoundKind.ExtractedFinallyBlock, syntax, hasErrors || finallyBlock.HasErrors())
        {

756
            Debug.Assert((object)finallyBlock != null, "Field 'finallyBlock' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773

            this.FinallyBlock = finallyBlock;
        }


        public BoundBlock FinallyBlock { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitExtractedFinallyBlock(this);
        }

        public BoundExtractedFinallyBlock Update(BoundBlock finallyBlock)
        {
            if (finallyBlock != this.FinallyBlock)
            {
                var result = new BoundExtractedFinallyBlock(this.Syntax, finallyBlock, this.HasErrors);
774
                result.CopyAttributes(this);
775 776 777 778 779 780
                return result;
            }
            return this;
        }
    }

D
DotNet Bot 已提交
781 782 783 784 785 786
    internal sealed partial class BoundTypeExpression : BoundExpression
    {
        public BoundTypeExpression(SyntaxNode syntax, AliasSymbol aliasOpt, bool inferredType, BoundTypeExpression boundContainingTypeOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.TypeExpression, syntax, type, hasErrors || boundContainingTypeOpt.HasErrors())
        {

787
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807

            this.AliasOpt = aliasOpt;
            this.InferredType = inferredType;
            this.BoundContainingTypeOpt = boundContainingTypeOpt;
        }


        public AliasSymbol AliasOpt { get; }

        public bool InferredType { get; }

        public BoundTypeExpression BoundContainingTypeOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitTypeExpression(this);
        }

        public BoundTypeExpression Update(AliasSymbol aliasOpt, bool inferredType, BoundTypeExpression boundContainingTypeOpt, TypeSymbol type)
        {
808
            if (aliasOpt != this.AliasOpt || inferredType != this.InferredType || boundContainingTypeOpt != this.BoundContainingTypeOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
809 810
            {
                var result = new BoundTypeExpression(this.Syntax, aliasOpt, inferredType, boundContainingTypeOpt, type, this.HasErrors);
811
                result.CopyAttributes(this);
D
DotNet Bot 已提交
812 813 814 815
                return result;
            }
            return this;
        }
816 817 818 819 820 821 822

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundTypeExpression(this.Syntax, this.AliasOpt, this.InferredType, this.BoundContainingTypeOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
823 824 825 826 827 828 829 830
    }

    internal sealed partial class BoundTypeOrValueExpression : BoundExpression
    {
        public BoundTypeOrValueExpression(SyntaxNode syntax, BoundTypeOrValueData data, TypeSymbol type, bool hasErrors)
            : base(BoundKind.TypeOrValueExpression, syntax, type, hasErrors)
        {

831
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
832 833 834 835 836 837 838 839

            this.Data = data;
        }

        public BoundTypeOrValueExpression(SyntaxNode syntax, BoundTypeOrValueData data, TypeSymbol type)
            : base(BoundKind.TypeOrValueExpression, syntax, type)
        {

840
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
841 842 843 844 845 846 847 848 849 850 851 852 853 854

            this.Data = data;
        }


        public BoundTypeOrValueData Data { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitTypeOrValueExpression(this);
        }

        public BoundTypeOrValueExpression Update(BoundTypeOrValueData data, TypeSymbol type)
        {
855
            if (data != this.Data || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
856 857
            {
                var result = new BoundTypeOrValueExpression(this.Syntax, data, type, this.HasErrors);
858
                result.CopyAttributes(this);
D
DotNet Bot 已提交
859 860 861 862
                return result;
            }
            return this;
        }
863 864 865 866 867 868 869

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundTypeOrValueExpression(this.Syntax, this.Data, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
870 871 872 873 874 875 876 877
    }

    internal sealed partial class BoundNamespaceExpression : BoundExpression
    {
        public BoundNamespaceExpression(SyntaxNode syntax, NamespaceSymbol namespaceSymbol, AliasSymbol aliasOpt, bool hasErrors)
            : base(BoundKind.NamespaceExpression, syntax, null, hasErrors)
        {

878
            Debug.Assert((object)namespaceSymbol != null, "Field 'namespaceSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
879 880 881 882 883 884 885 886 887

            this.NamespaceSymbol = namespaceSymbol;
            this.AliasOpt = aliasOpt;
        }

        public BoundNamespaceExpression(SyntaxNode syntax, NamespaceSymbol namespaceSymbol, AliasSymbol aliasOpt)
            : base(BoundKind.NamespaceExpression, syntax, null)
        {

888
            Debug.Assert((object)namespaceSymbol != null, "Field 'namespaceSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908

            this.NamespaceSymbol = namespaceSymbol;
            this.AliasOpt = aliasOpt;
        }


        public NamespaceSymbol NamespaceSymbol { get; }

        public AliasSymbol AliasOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitNamespaceExpression(this);
        }

        public BoundNamespaceExpression Update(NamespaceSymbol namespaceSymbol, AliasSymbol aliasOpt)
        {
            if (namespaceSymbol != this.NamespaceSymbol || aliasOpt != this.AliasOpt)
            {
                var result = new BoundNamespaceExpression(this.Syntax, namespaceSymbol, aliasOpt, this.HasErrors);
909
                result.CopyAttributes(this);
D
DotNet Bot 已提交
910 911 912 913
                return result;
            }
            return this;
        }
914 915 916 917 918 919 920

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundNamespaceExpression(this.Syntax, this.NamespaceSymbol, this.AliasOpt, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
921 922 923 924 925 926 927 928
    }

    internal sealed partial class BoundUnaryOperator : BoundExpression
    {
        public BoundUnaryOperator(SyntaxNode syntax, UnaryOperatorKind operatorKind, BoundExpression operand, ConstantValue constantValueOpt, MethodSymbol methodOpt, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.UnaryOperator, syntax, type, hasErrors || operand.HasErrors())
        {

929 930
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957

            this.OperatorKind = operatorKind;
            this.Operand = operand;
            this.ConstantValueOpt = constantValueOpt;
            this.MethodOpt = methodOpt;
            this._ResultKind = resultKind;
        }


        public UnaryOperatorKind OperatorKind { get; }

        public BoundExpression Operand { get; }

        public ConstantValue ConstantValueOpt { get; }

        public MethodSymbol MethodOpt { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitUnaryOperator(this);
        }

        public BoundUnaryOperator Update(UnaryOperatorKind operatorKind, BoundExpression operand, ConstantValue constantValueOpt, MethodSymbol methodOpt, LookupResultKind resultKind, TypeSymbol type)
        {
958
            if (operatorKind != this.OperatorKind || operand != this.Operand || constantValueOpt != this.ConstantValueOpt || methodOpt != this.MethodOpt || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
959 960
            {
                var result = new BoundUnaryOperator(this.Syntax, operatorKind, operand, constantValueOpt, methodOpt, resultKind, type, this.HasErrors);
961
                result.CopyAttributes(this);
D
DotNet Bot 已提交
962 963 964 965 966
                return result;
            }
            return this;
        }

967
        protected override BoundExpression ShallowClone()
C
Charles Stoner 已提交
968
        {
969 970 971
            var result = new BoundUnaryOperator(this.Syntax, this.OperatorKind, this.Operand, this.ConstantValueOpt, this.MethodOpt, this.ResultKind, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
C
Charles Stoner 已提交
972 973 974
        }
    }

D
DotNet Bot 已提交
975 976 977 978 979 980
    internal sealed partial class BoundIncrementOperator : BoundExpression
    {
        public BoundIncrementOperator(SyntaxNode syntax, UnaryOperatorKind operatorKind, BoundExpression operand, MethodSymbol methodOpt, Conversion operandConversion, Conversion resultConversion, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.IncrementOperator, syntax, type, hasErrors || operand.HasErrors())
        {

981 982
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012

            this.OperatorKind = operatorKind;
            this.Operand = operand;
            this.MethodOpt = methodOpt;
            this.OperandConversion = operandConversion;
            this.ResultConversion = resultConversion;
            this._ResultKind = resultKind;
        }


        public UnaryOperatorKind OperatorKind { get; }

        public BoundExpression Operand { get; }

        public MethodSymbol MethodOpt { get; }

        public Conversion OperandConversion { get; }

        public Conversion ResultConversion { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitIncrementOperator(this);
        }

        public BoundIncrementOperator Update(UnaryOperatorKind operatorKind, BoundExpression operand, MethodSymbol methodOpt, Conversion operandConversion, Conversion resultConversion, LookupResultKind resultKind, TypeSymbol type)
        {
1013
            if (operatorKind != this.OperatorKind || operand != this.Operand || methodOpt != this.MethodOpt || operandConversion != this.OperandConversion || resultConversion != this.ResultConversion || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1014 1015
            {
                var result = new BoundIncrementOperator(this.Syntax, operatorKind, operand, methodOpt, operandConversion, resultConversion, resultKind, type, this.HasErrors);
1016
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1017 1018 1019 1020
                return result;
            }
            return this;
        }
1021 1022 1023 1024 1025 1026 1027

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundIncrementOperator(this.Syntax, this.OperatorKind, this.Operand, this.MethodOpt, this.OperandConversion, this.ResultConversion, this.ResultKind, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1028 1029 1030 1031
    }

    internal sealed partial class BoundAddressOfOperator : BoundExpression
    {
1032
        public BoundAddressOfOperator(SyntaxNode syntax, BoundExpression operand, bool isManaged, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
1033 1034 1035
            : base(BoundKind.AddressOfOperator, syntax, type, hasErrors || operand.HasErrors())
        {

1036 1037
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1038 1039

            this.Operand = operand;
1040
            this.IsManaged = isManaged;
D
DotNet Bot 已提交
1041 1042 1043 1044 1045
        }


        public BoundExpression Operand { get; }

1046 1047
        public bool IsManaged { get; }

D
DotNet Bot 已提交
1048 1049 1050 1051 1052
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitAddressOfOperator(this);
        }

1053
        public BoundAddressOfOperator Update(BoundExpression operand, bool isManaged, TypeSymbol type)
D
DotNet Bot 已提交
1054
        {
1055
            if (operand != this.Operand || isManaged != this.IsManaged || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1056
            {
1057
                var result = new BoundAddressOfOperator(this.Syntax, operand, isManaged, type, this.HasErrors);
1058
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1059 1060 1061 1062
                return result;
            }
            return this;
        }
1063 1064 1065 1066 1067 1068 1069

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundAddressOfOperator(this.Syntax, this.Operand, this.IsManaged, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1070 1071 1072 1073 1074 1075 1076 1077
    }

    internal sealed partial class BoundPointerIndirectionOperator : BoundExpression
    {
        public BoundPointerIndirectionOperator(SyntaxNode syntax, BoundExpression operand, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.PointerIndirectionOperator, syntax, type, hasErrors || operand.HasErrors())
        {

1078 1079
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093

            this.Operand = operand;
        }


        public BoundExpression Operand { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitPointerIndirectionOperator(this);
        }

        public BoundPointerIndirectionOperator Update(BoundExpression operand, TypeSymbol type)
        {
1094
            if (operand != this.Operand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1095 1096
            {
                var result = new BoundPointerIndirectionOperator(this.Syntax, operand, type, this.HasErrors);
1097
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1098 1099 1100 1101
                return result;
            }
            return this;
        }
1102 1103 1104 1105 1106 1107 1108

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundPointerIndirectionOperator(this.Syntax, this.Operand, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1109 1110 1111 1112
    }

    internal sealed partial class BoundPointerElementAccess : BoundExpression
    {
1113
        public BoundPointerElementAccess(SyntaxNode syntax, BoundExpression expression, BoundExpression index, bool @checked, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
1114 1115 1116
            : base(BoundKind.PointerElementAccess, syntax, type, hasErrors || expression.HasErrors() || index.HasErrors())
        {

1117 1118 1119
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)index != null, "Field 'index' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130

            this.Expression = expression;
            this.Index = index;
            this.Checked = @checked;
        }


        public BoundExpression Expression { get; }

        public BoundExpression Index { get; }

1131
        public bool Checked { get; }
D
DotNet Bot 已提交
1132 1133 1134 1135 1136 1137

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitPointerElementAccess(this);
        }

1138
        public BoundPointerElementAccess Update(BoundExpression expression, BoundExpression index, bool @checked, TypeSymbol type)
D
DotNet Bot 已提交
1139
        {
1140
            if (expression != this.Expression || index != this.Index || @checked != this.Checked || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1141 1142
            {
                var result = new BoundPointerElementAccess(this.Syntax, expression, index, @checked, type, this.HasErrors);
1143
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1144 1145 1146 1147
                return result;
            }
            return this;
        }
1148 1149 1150 1151 1152 1153 1154

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundPointerElementAccess(this.Syntax, this.Expression, this.Index, this.Checked, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1155 1156 1157 1158 1159 1160 1161 1162
    }

    internal sealed partial class BoundRefTypeOperator : BoundExpression
    {
        public BoundRefTypeOperator(SyntaxNode syntax, BoundExpression operand, MethodSymbol getTypeFromHandle, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.RefTypeOperator, syntax, type, hasErrors || operand.HasErrors())
        {

1163 1164
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181

            this.Operand = operand;
            this.GetTypeFromHandle = getTypeFromHandle;
        }


        public BoundExpression Operand { get; }

        public MethodSymbol GetTypeFromHandle { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitRefTypeOperator(this);
        }

        public BoundRefTypeOperator Update(BoundExpression operand, MethodSymbol getTypeFromHandle, TypeSymbol type)
        {
1182
            if (operand != this.Operand || getTypeFromHandle != this.GetTypeFromHandle || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1183 1184
            {
                var result = new BoundRefTypeOperator(this.Syntax, operand, getTypeFromHandle, type, this.HasErrors);
1185
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1186 1187 1188 1189
                return result;
            }
            return this;
        }
1190 1191 1192 1193 1194 1195 1196

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundRefTypeOperator(this.Syntax, this.Operand, this.GetTypeFromHandle, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1197 1198 1199 1200 1201 1202 1203 1204
    }

    internal sealed partial class BoundMakeRefOperator : BoundExpression
    {
        public BoundMakeRefOperator(SyntaxNode syntax, BoundExpression operand, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.MakeRefOperator, syntax, type, hasErrors || operand.HasErrors())
        {

1205 1206
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220

            this.Operand = operand;
        }


        public BoundExpression Operand { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitMakeRefOperator(this);
        }

        public BoundMakeRefOperator Update(BoundExpression operand, TypeSymbol type)
        {
1221
            if (operand != this.Operand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1222 1223
            {
                var result = new BoundMakeRefOperator(this.Syntax, operand, type, this.HasErrors);
1224
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1225 1226 1227 1228
                return result;
            }
            return this;
        }
1229 1230 1231 1232 1233 1234 1235

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundMakeRefOperator(this.Syntax, this.Operand, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1236 1237 1238 1239 1240 1241 1242 1243
    }

    internal sealed partial class BoundRefValueOperator : BoundExpression
    {
        public BoundRefValueOperator(SyntaxNode syntax, BoundExpression operand, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.RefValueOperator, syntax, type, hasErrors || operand.HasErrors())
        {

1244 1245
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259

            this.Operand = operand;
        }


        public BoundExpression Operand { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitRefValueOperator(this);
        }

        public BoundRefValueOperator Update(BoundExpression operand, TypeSymbol type)
        {
1260
            if (operand != this.Operand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1261 1262
            {
                var result = new BoundRefValueOperator(this.Syntax, operand, type, this.HasErrors);
1263
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1264 1265 1266 1267
                return result;
            }
            return this;
        }
1268 1269 1270 1271 1272 1273 1274

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundRefValueOperator(this.Syntax, this.Operand, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1275 1276
    }

1277 1278 1279 1280 1281 1282
    internal sealed partial class BoundFromEndIndexExpression : BoundExpression
    {
        public BoundFromEndIndexExpression(SyntaxNode syntax, BoundExpression operand, MethodSymbol methodOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.FromEndIndexExpression, syntax, type, hasErrors || operand.HasErrors())
        {

1283 1284
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301

            this.Operand = operand;
            this.MethodOpt = methodOpt;
        }


        public BoundExpression Operand { get; }

        public MethodSymbol MethodOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitFromEndIndexExpression(this);
        }

        public BoundFromEndIndexExpression Update(BoundExpression operand, MethodSymbol methodOpt, TypeSymbol type)
        {
1302
            if (operand != this.Operand || methodOpt != this.MethodOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
1303 1304
            {
                var result = new BoundFromEndIndexExpression(this.Syntax, operand, methodOpt, type, this.HasErrors);
1305
                result.CopyAttributes(this);
1306 1307 1308 1309
                return result;
            }
            return this;
        }
1310 1311 1312 1313 1314 1315 1316

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundFromEndIndexExpression(this.Syntax, this.Operand, this.MethodOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
1317 1318
    }

O
Omar Tawfik 已提交
1319 1320
    internal sealed partial class BoundRangeExpression : BoundExpression
    {
1321 1322
        public BoundRangeExpression(SyntaxNode syntax, BoundExpression leftOperandOpt, BoundExpression rightOperandOpt, MethodSymbol methodOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.RangeExpression, syntax, type, hasErrors || leftOperandOpt.HasErrors() || rightOperandOpt.HasErrors())
O
Omar Tawfik 已提交
1323 1324
        {

1325
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
O
Omar Tawfik 已提交
1326

1327 1328
            this.LeftOperandOpt = leftOperandOpt;
            this.RightOperandOpt = rightOperandOpt;
1329
            this.MethodOpt = methodOpt;
O
Omar Tawfik 已提交
1330 1331 1332
        }


1333
        public BoundExpression LeftOperandOpt { get; }
O
Omar Tawfik 已提交
1334

1335
        public BoundExpression RightOperandOpt { get; }
O
Omar Tawfik 已提交
1336

1337 1338
        public MethodSymbol MethodOpt { get; }

O
Omar Tawfik 已提交
1339 1340 1341 1342 1343
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitRangeExpression(this);
        }

1344
        public BoundRangeExpression Update(BoundExpression leftOperandOpt, BoundExpression rightOperandOpt, MethodSymbol methodOpt, TypeSymbol type)
O
Omar Tawfik 已提交
1345
        {
1346
            if (leftOperandOpt != this.LeftOperandOpt || rightOperandOpt != this.RightOperandOpt || methodOpt != this.MethodOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
O
Omar Tawfik 已提交
1347
            {
1348
                var result = new BoundRangeExpression(this.Syntax, leftOperandOpt, rightOperandOpt, methodOpt, type, this.HasErrors);
1349
                result.CopyAttributes(this);
O
Omar Tawfik 已提交
1350 1351 1352 1353
                return result;
            }
            return this;
        }
1354 1355 1356

        protected override BoundExpression ShallowClone()
        {
1357
            var result = new BoundRangeExpression(this.Syntax, this.LeftOperandOpt, this.RightOperandOpt, this.MethodOpt, this.Type, this.HasErrors);
1358 1359 1360
            result.CopyAttributes(this);
            return result;
        }
O
Omar Tawfik 已提交
1361 1362
    }

1363
    internal abstract partial class BoundBinaryOperatorBase : BoundExpression
D
DotNet Bot 已提交
1364
    {
1365 1366
        protected BoundBinaryOperatorBase(BoundKind kind, SyntaxNode syntax, BoundExpression left, BoundExpression right, TypeSymbol type, bool hasErrors = false)
            : base(kind, syntax, type, hasErrors)
D
DotNet Bot 已提交
1367 1368
        {

1369 1370 1371
            Debug.Assert((object)left != null, "Field 'left' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)right != null, "Field 'right' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1372 1373 1374

            this.Left = left;
            this.Right = right;
1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388
        }


        public BoundExpression Left { get; }

        public BoundExpression Right { get; }
    }

    internal sealed partial class BoundBinaryOperator : BoundBinaryOperatorBase
    {
        public BoundBinaryOperator(SyntaxNode syntax, BinaryOperatorKind operatorKind, ConstantValue constantValueOpt, MethodSymbol methodOpt, LookupResultKind resultKind, BoundExpression left, BoundExpression right, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.BinaryOperator, syntax, left, right, type, hasErrors || left.HasErrors() || right.HasErrors())
        {

1389 1390 1391
            Debug.Assert((object)left != null, "Field 'left' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)right != null, "Field 'right' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
1392 1393

            this.OperatorKind = operatorKind;
D
DotNet Bot 已提交
1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413
            this.ConstantValueOpt = constantValueOpt;
            this.MethodOpt = methodOpt;
            this._ResultKind = resultKind;
        }


        public BinaryOperatorKind OperatorKind { get; }

        public ConstantValue ConstantValueOpt { get; }

        public MethodSymbol MethodOpt { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitBinaryOperator(this);
        }

1414
        public BoundBinaryOperator Update(BinaryOperatorKind operatorKind, ConstantValue constantValueOpt, MethodSymbol methodOpt, LookupResultKind resultKind, BoundExpression left, BoundExpression right, TypeSymbol type)
D
DotNet Bot 已提交
1415
        {
1416
            if (operatorKind != this.OperatorKind || constantValueOpt != this.ConstantValueOpt || methodOpt != this.MethodOpt || resultKind != this.ResultKind || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1417
            {
1418
                var result = new BoundBinaryOperator(this.Syntax, operatorKind, constantValueOpt, methodOpt, resultKind, left, right, type, this.HasErrors);
1419
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1420 1421 1422 1423
                return result;
            }
            return this;
        }
1424 1425 1426 1427 1428 1429 1430

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundBinaryOperator(this.Syntax, this.OperatorKind, this.ConstantValueOpt, this.MethodOpt, this.ResultKind, this.Left, this.Right, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1431 1432
    }

1433 1434
    internal sealed partial class BoundTupleBinaryOperator : BoundExpression
    {
1435 1436
        public BoundTupleBinaryOperator(SyntaxNode syntax, BoundExpression left, BoundExpression right, BoundExpression convertedLeft, BoundExpression convertedRight, BinaryOperatorKind operatorKind, TupleBinaryOperatorInfo.Multiple operators, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.TupleBinaryOperator, syntax, type, hasErrors || left.HasErrors() || right.HasErrors() || convertedLeft.HasErrors() || convertedRight.HasErrors())
1437 1438
        {

1439 1440 1441 1442 1443 1444
            Debug.Assert((object)left != null, "Field 'left' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)right != null, "Field 'right' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)convertedLeft != null, "Field 'convertedLeft' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)convertedRight != null, "Field 'convertedRight' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)operators != null, "Field 'operators' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
1445 1446 1447

            this.Left = left;
            this.Right = right;
1448 1449
            this.ConvertedLeft = convertedLeft;
            this.ConvertedRight = convertedRight;
1450 1451 1452 1453 1454 1455 1456 1457 1458
            this.OperatorKind = operatorKind;
            this.Operators = operators;
        }


        public BoundExpression Left { get; }

        public BoundExpression Right { get; }

1459 1460 1461 1462
        public BoundExpression ConvertedLeft { get; }

        public BoundExpression ConvertedRight { get; }

1463 1464 1465 1466 1467 1468 1469 1470 1471
        public BinaryOperatorKind OperatorKind { get; }

        public TupleBinaryOperatorInfo.Multiple Operators { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitTupleBinaryOperator(this);
        }

1472
        public BoundTupleBinaryOperator Update(BoundExpression left, BoundExpression right, BoundExpression convertedLeft, BoundExpression convertedRight, BinaryOperatorKind operatorKind, TupleBinaryOperatorInfo.Multiple operators, TypeSymbol type)
1473
        {
1474
            if (left != this.Left || right != this.Right || convertedLeft != this.ConvertedLeft || convertedRight != this.ConvertedRight || operatorKind != this.OperatorKind || operators != this.Operators || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
1475
            {
1476
                var result = new BoundTupleBinaryOperator(this.Syntax, left, right, convertedLeft, convertedRight, operatorKind, operators, type, this.HasErrors);
1477
                result.CopyAttributes(this);
1478 1479 1480 1481
                return result;
            }
            return this;
        }
1482 1483 1484 1485 1486 1487 1488

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundTupleBinaryOperator(this.Syntax, this.Left, this.Right, this.ConvertedLeft, this.ConvertedRight, this.OperatorKind, this.Operators, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
1489 1490
    }

1491
    internal sealed partial class BoundUserDefinedConditionalLogicalOperator : BoundBinaryOperatorBase
D
DotNet Bot 已提交
1492
    {
1493 1494
        public BoundUserDefinedConditionalLogicalOperator(SyntaxNode syntax, BinaryOperatorKind operatorKind, MethodSymbol logicalOperator, MethodSymbol trueOperator, MethodSymbol falseOperator, LookupResultKind resultKind, BoundExpression left, BoundExpression right, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.UserDefinedConditionalLogicalOperator, syntax, left, right, type, hasErrors || left.HasErrors() || right.HasErrors())
D
DotNet Bot 已提交
1495 1496
        {

1497 1498 1499 1500 1501 1502
            Debug.Assert((object)logicalOperator != null, "Field 'logicalOperator' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)trueOperator != null, "Field 'trueOperator' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)falseOperator != null, "Field 'falseOperator' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)left != null, "Field 'left' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)right != null, "Field 'right' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527

            this.OperatorKind = operatorKind;
            this.LogicalOperator = logicalOperator;
            this.TrueOperator = trueOperator;
            this.FalseOperator = falseOperator;
            this._ResultKind = resultKind;
        }


        public BinaryOperatorKind OperatorKind { get; }

        public MethodSymbol LogicalOperator { get; }

        public MethodSymbol TrueOperator { get; }

        public MethodSymbol FalseOperator { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitUserDefinedConditionalLogicalOperator(this);
        }

1528
        public BoundUserDefinedConditionalLogicalOperator Update(BinaryOperatorKind operatorKind, MethodSymbol logicalOperator, MethodSymbol trueOperator, MethodSymbol falseOperator, LookupResultKind resultKind, BoundExpression left, BoundExpression right, TypeSymbol type)
D
DotNet Bot 已提交
1529
        {
1530
            if (operatorKind != this.OperatorKind || logicalOperator != this.LogicalOperator || trueOperator != this.TrueOperator || falseOperator != this.FalseOperator || resultKind != this.ResultKind || left != this.Left || right != this.Right || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1531
            {
1532
                var result = new BoundUserDefinedConditionalLogicalOperator(this.Syntax, operatorKind, logicalOperator, trueOperator, falseOperator, resultKind, left, right, type, this.HasErrors);
1533
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1534 1535 1536 1537
                return result;
            }
            return this;
        }
1538 1539 1540 1541 1542 1543 1544

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundUserDefinedConditionalLogicalOperator(this.Syntax, this.OperatorKind, this.LogicalOperator, this.TrueOperator, this.FalseOperator, this.ResultKind, this.Left, this.Right, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1545 1546 1547 1548 1549 1550 1551 1552
    }

    internal sealed partial class BoundCompoundAssignmentOperator : BoundExpression
    {
        public BoundCompoundAssignmentOperator(SyntaxNode syntax, BinaryOperatorSignature @operator, BoundExpression left, BoundExpression right, Conversion leftConversion, Conversion finalConversion, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.CompoundAssignmentOperator, syntax, type, hasErrors || left.HasErrors() || right.HasErrors())
        {

1553 1554 1555
            Debug.Assert((object)left != null, "Field 'left' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)right != null, "Field 'right' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585

            this.Operator = @operator;
            this.Left = left;
            this.Right = right;
            this.LeftConversion = leftConversion;
            this.FinalConversion = finalConversion;
            this._ResultKind = resultKind;
        }


        public BinaryOperatorSignature Operator { get; }

        public BoundExpression Left { get; }

        public BoundExpression Right { get; }

        public Conversion LeftConversion { get; }

        public Conversion FinalConversion { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitCompoundAssignmentOperator(this);
        }

        public BoundCompoundAssignmentOperator Update(BinaryOperatorSignature @operator, BoundExpression left, BoundExpression right, Conversion leftConversion, Conversion finalConversion, LookupResultKind resultKind, TypeSymbol type)
        {
1586
            if (@operator != this.Operator || left != this.Left || right != this.Right || leftConversion != this.LeftConversion || finalConversion != this.FinalConversion || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1587 1588
            {
                var result = new BoundCompoundAssignmentOperator(this.Syntax, @operator, left, right, leftConversion, finalConversion, resultKind, type, this.HasErrors);
1589
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1590 1591 1592 1593
                return result;
            }
            return this;
        }
1594 1595 1596 1597 1598 1599 1600

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundCompoundAssignmentOperator(this.Syntax, this.Operator, this.Left, this.Right, this.LeftConversion, this.FinalConversion, this.ResultKind, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1601 1602 1603 1604
    }

    internal sealed partial class BoundAssignmentOperator : BoundExpression
    {
1605
        public BoundAssignmentOperator(SyntaxNode syntax, BoundExpression left, BoundExpression right, bool isRef, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
1606 1607 1608
            : base(BoundKind.AssignmentOperator, syntax, type, hasErrors || left.HasErrors() || right.HasErrors())
        {

1609
            Debug.Assert((object)left != null, "Field 'left' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1610 1611 1612

            this.Left = left;
            this.Right = right;
1613
            this.IsRef = isRef;
D
DotNet Bot 已提交
1614 1615 1616 1617 1618 1619 1620
        }


        public BoundExpression Left { get; }

        public BoundExpression Right { get; }

1621
        public bool IsRef { get; }
D
DotNet Bot 已提交
1622 1623 1624 1625 1626 1627

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitAssignmentOperator(this);
        }

1628
        public BoundAssignmentOperator Update(BoundExpression left, BoundExpression right, bool isRef, TypeSymbol type)
D
DotNet Bot 已提交
1629
        {
1630
            if (left != this.Left || right != this.Right || isRef != this.IsRef || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1631
            {
1632
                var result = new BoundAssignmentOperator(this.Syntax, left, right, isRef, type, this.HasErrors);
1633
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1634 1635 1636 1637
                return result;
            }
            return this;
        }
1638 1639 1640 1641 1642 1643 1644

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundAssignmentOperator(this.Syntax, this.Left, this.Right, this.IsRef, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1645 1646 1647 1648
    }

    internal sealed partial class BoundDeconstructionAssignmentOperator : BoundExpression
    {
1649
        public BoundDeconstructionAssignmentOperator(SyntaxNode syntax, BoundTupleExpression left, BoundConversion right, bool isUsed, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
1650 1651 1652
            : base(BoundKind.DeconstructionAssignmentOperator, syntax, type, hasErrors || left.HasErrors() || right.HasErrors())
        {

1653 1654 1655
            Debug.Assert((object)left != null, "Field 'left' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)right != null, "Field 'right' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1656 1657 1658

            this.Left = left;
            this.Right = right;
1659
            this.IsUsed = isUsed;
D
DotNet Bot 已提交
1660 1661 1662 1663 1664 1665 1666
        }


        public BoundTupleExpression Left { get; }

        public BoundConversion Right { get; }

1667
        public bool IsUsed { get; }
1668

D
DotNet Bot 已提交
1669 1670 1671 1672 1673
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDeconstructionAssignmentOperator(this);
        }

1674
        public BoundDeconstructionAssignmentOperator Update(BoundTupleExpression left, BoundConversion right, bool isUsed, TypeSymbol type)
D
DotNet Bot 已提交
1675
        {
1676
            if (left != this.Left || right != this.Right || isUsed != this.IsUsed || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1677
            {
1678
                var result = new BoundDeconstructionAssignmentOperator(this.Syntax, left, right, isUsed, type, this.HasErrors);
1679
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1680 1681 1682 1683
                return result;
            }
            return this;
        }
1684 1685 1686 1687 1688 1689 1690

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDeconstructionAssignmentOperator(this.Syntax, this.Left, this.Right, this.IsUsed, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1691 1692 1693 1694
    }

    internal sealed partial class BoundNullCoalescingOperator : BoundExpression
    {
1695
        public BoundNullCoalescingOperator(SyntaxNode syntax, BoundExpression leftOperand, BoundExpression rightOperand, Conversion leftConversion, BoundNullCoalescingOperatorResultKind operatorResultKind, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
1696 1697 1698
            : base(BoundKind.NullCoalescingOperator, syntax, type, hasErrors || leftOperand.HasErrors() || rightOperand.HasErrors())
        {

1699 1700
            Debug.Assert((object)leftOperand != null, "Field 'leftOperand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)rightOperand != null, "Field 'rightOperand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1701 1702 1703 1704

            this.LeftOperand = leftOperand;
            this.RightOperand = rightOperand;
            this.LeftConversion = leftConversion;
1705
            this.OperatorResultKind = operatorResultKind;
D
DotNet Bot 已提交
1706 1707 1708 1709 1710 1711 1712 1713 1714
        }


        public BoundExpression LeftOperand { get; }

        public BoundExpression RightOperand { get; }

        public Conversion LeftConversion { get; }

1715 1716
        public BoundNullCoalescingOperatorResultKind OperatorResultKind { get; }

D
DotNet Bot 已提交
1717 1718 1719 1720 1721
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitNullCoalescingOperator(this);
        }

1722
        public BoundNullCoalescingOperator Update(BoundExpression leftOperand, BoundExpression rightOperand, Conversion leftConversion, BoundNullCoalescingOperatorResultKind operatorResultKind, TypeSymbol type)
D
DotNet Bot 已提交
1723
        {
1724
            if (leftOperand != this.LeftOperand || rightOperand != this.RightOperand || leftConversion != this.LeftConversion || operatorResultKind != this.OperatorResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1725
            {
1726
                var result = new BoundNullCoalescingOperator(this.Syntax, leftOperand, rightOperand, leftConversion, operatorResultKind, type, this.HasErrors);
1727
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1728 1729 1730 1731
                return result;
            }
            return this;
        }
1732 1733 1734 1735 1736 1737 1738

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundNullCoalescingOperator(this.Syntax, this.LeftOperand, this.RightOperand, this.LeftConversion, this.OperatorResultKind, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1739 1740
    }

F
Fredric Silberberg 已提交
1741
    internal sealed partial class BoundNullCoalescingAssignmentOperator : BoundExpression
1742
    {
F
Fredric Silberberg 已提交
1743
        public BoundNullCoalescingAssignmentOperator(SyntaxNode syntax, BoundExpression leftOperand, BoundExpression rightOperand, TypeSymbol type, bool hasErrors = false)
F
Fredric Silberberg 已提交
1744
            : base(BoundKind.NullCoalescingAssignmentOperator, syntax, type, hasErrors || leftOperand.HasErrors() || rightOperand.HasErrors())
1745 1746
        {

1747 1748
            Debug.Assert((object)leftOperand != null, "Field 'leftOperand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)rightOperand != null, "Field 'rightOperand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760

            this.LeftOperand = leftOperand;
            this.RightOperand = rightOperand;
        }


        public BoundExpression LeftOperand { get; }

        public BoundExpression RightOperand { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
F
Fredric Silberberg 已提交
1761
            return visitor.VisitNullCoalescingAssignmentOperator(this);
1762 1763
        }

F
Fredric Silberberg 已提交
1764
        public BoundNullCoalescingAssignmentOperator Update(BoundExpression leftOperand, BoundExpression rightOperand, TypeSymbol type)
1765
        {
1766
            if (leftOperand != this.LeftOperand || rightOperand != this.RightOperand || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
1767
            {
F
Fredric Silberberg 已提交
1768
                var result = new BoundNullCoalescingAssignmentOperator(this.Syntax, leftOperand, rightOperand, type, this.HasErrors);
1769
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1770 1771 1772 1773
                return result;
            }
            return this;
        }
1774 1775 1776 1777 1778 1779 1780

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundNullCoalescingAssignmentOperator(this.Syntax, this.LeftOperand, this.RightOperand, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1781 1782 1783 1784
    }

    internal sealed partial class BoundConditionalOperator : BoundExpression
    {
1785
        public BoundConditionalOperator(SyntaxNode syntax, bool isRef, BoundExpression condition, BoundExpression consequence, BoundExpression alternative, ConstantValue constantValueOpt, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
1786 1787 1788
            : base(BoundKind.ConditionalOperator, syntax, type, hasErrors || condition.HasErrors() || consequence.HasErrors() || alternative.HasErrors())
        {

1789 1790 1791 1792
            Debug.Assert((object)condition != null, "Field 'condition' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)consequence != null, "Field 'consequence' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)alternative != null, "Field 'alternative' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1793

1794
            this.IsRef = isRef;
D
DotNet Bot 已提交
1795 1796 1797 1798 1799 1800 1801
            this.Condition = condition;
            this.Consequence = consequence;
            this.Alternative = alternative;
            this.ConstantValueOpt = constantValueOpt;
        }


1802
        public bool IsRef { get; }
V
vsadov 已提交
1803

D
DotNet Bot 已提交
1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816
        public BoundExpression Condition { get; }

        public BoundExpression Consequence { get; }

        public BoundExpression Alternative { get; }

        public ConstantValue ConstantValueOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitConditionalOperator(this);
        }

1817
        public BoundConditionalOperator Update(bool isRef, BoundExpression condition, BoundExpression consequence, BoundExpression alternative, ConstantValue constantValueOpt, TypeSymbol type)
D
DotNet Bot 已提交
1818
        {
1819
            if (isRef != this.IsRef || condition != this.Condition || consequence != this.Consequence || alternative != this.Alternative || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1820
            {
1821
                var result = new BoundConditionalOperator(this.Syntax, isRef, condition, consequence, alternative, constantValueOpt, type, this.HasErrors);
1822
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1823 1824 1825 1826
                return result;
            }
            return this;
        }
1827 1828 1829 1830 1831 1832 1833

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundConditionalOperator(this.Syntax, this.IsRef, this.Condition, this.Consequence, this.Alternative, this.ConstantValueOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1834 1835 1836 1837 1838 1839 1840 1841
    }

    internal sealed partial class BoundArrayAccess : BoundExpression
    {
        public BoundArrayAccess(SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundExpression> indices, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ArrayAccess, syntax, type, hasErrors || expression.HasErrors() || indices.HasErrors())
        {

1842
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1843
            Debug.Assert(!indices.IsDefault, "Field 'indices' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
1844
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861

            this.Expression = expression;
            this.Indices = indices;
        }


        public BoundExpression Expression { get; }

        public ImmutableArray<BoundExpression> Indices { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitArrayAccess(this);
        }

        public BoundArrayAccess Update(BoundExpression expression, ImmutableArray<BoundExpression> indices, TypeSymbol type)
        {
1862
            if (expression != this.Expression || indices != this.Indices || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1863 1864
            {
                var result = new BoundArrayAccess(this.Syntax, expression, indices, type, this.HasErrors);
1865
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1866 1867 1868 1869
                return result;
            }
            return this;
        }
1870 1871 1872 1873 1874 1875 1876

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundArrayAccess(this.Syntax, this.Expression, this.Indices, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1877 1878 1879 1880 1881 1882 1883 1884
    }

    internal sealed partial class BoundArrayLength : BoundExpression
    {
        public BoundArrayLength(SyntaxNode syntax, BoundExpression expression, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ArrayLength, syntax, type, hasErrors || expression.HasErrors())
        {

1885 1886
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900

            this.Expression = expression;
        }


        public BoundExpression Expression { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitArrayLength(this);
        }

        public BoundArrayLength Update(BoundExpression expression, TypeSymbol type)
        {
1901
            if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1902 1903
            {
                var result = new BoundArrayLength(this.Syntax, expression, type, this.HasErrors);
1904
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1905 1906 1907 1908
                return result;
            }
            return this;
        }
1909 1910 1911 1912 1913 1914 1915

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundArrayLength(this.Syntax, this.Expression, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1916 1917 1918 1919
    }

    internal sealed partial class BoundAwaitExpression : BoundExpression
    {
1920
        public BoundAwaitExpression(SyntaxNode syntax, BoundExpression expression, AwaitableInfo awaitableInfo, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
1921 1922 1923
            : base(BoundKind.AwaitExpression, syntax, type, hasErrors || expression.HasErrors())
        {

1924 1925 1926
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)awaitableInfo != null, "Field 'awaitableInfo' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1927 1928

            this.Expression = expression;
1929
            this.AwaitableInfo = awaitableInfo;
D
DotNet Bot 已提交
1930 1931 1932 1933 1934
        }


        public BoundExpression Expression { get; }

1935
        public AwaitableInfo AwaitableInfo { get; }
D
DotNet Bot 已提交
1936 1937 1938 1939 1940 1941

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitAwaitExpression(this);
        }

1942
        public BoundAwaitExpression Update(BoundExpression expression, AwaitableInfo awaitableInfo, TypeSymbol type)
D
DotNet Bot 已提交
1943
        {
1944
            if (expression != this.Expression || awaitableInfo != this.AwaitableInfo || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
1945
            {
1946
                var result = new BoundAwaitExpression(this.Syntax, expression, awaitableInfo, type, this.HasErrors);
1947
                result.CopyAttributes(this);
D
DotNet Bot 已提交
1948 1949 1950 1951
                return result;
            }
            return this;
        }
1952 1953 1954 1955 1956 1957 1958

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundAwaitExpression(this.Syntax, this.Expression, this.AwaitableInfo, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
1959 1960 1961 1962 1963 1964 1965 1966
    }

    internal abstract partial class BoundTypeOf : BoundExpression
    {
        protected BoundTypeOf(BoundKind kind, SyntaxNode syntax, MethodSymbol getTypeFromHandle, TypeSymbol type, bool hasErrors)
            : base(kind, syntax, type, hasErrors)
        {

1967
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1968 1969 1970 1971 1972 1973 1974 1975

            this.GetTypeFromHandle = getTypeFromHandle;
        }

        protected BoundTypeOf(BoundKind kind, SyntaxNode syntax, MethodSymbol getTypeFromHandle, TypeSymbol type)
            : base(kind, syntax, type)
        {

1976
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990

            this.GetTypeFromHandle = getTypeFromHandle;
        }


        public MethodSymbol GetTypeFromHandle { get; }
    }

    internal sealed partial class BoundTypeOfOperator : BoundTypeOf
    {
        public BoundTypeOfOperator(SyntaxNode syntax, BoundTypeExpression sourceType, MethodSymbol getTypeFromHandle, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.TypeOfOperator, syntax, getTypeFromHandle, type, hasErrors || sourceType.HasErrors())
        {

1991 1992
            Debug.Assert((object)sourceType != null, "Field 'sourceType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006

            this.SourceType = sourceType;
        }


        public BoundTypeExpression SourceType { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitTypeOfOperator(this);
        }

        public BoundTypeOfOperator Update(BoundTypeExpression sourceType, MethodSymbol getTypeFromHandle, TypeSymbol type)
        {
2007
            if (sourceType != this.SourceType || getTypeFromHandle != this.GetTypeFromHandle || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2008 2009
            {
                var result = new BoundTypeOfOperator(this.Syntax, sourceType, getTypeFromHandle, type, this.HasErrors);
2010
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2011 2012 2013 2014
                return result;
            }
            return this;
        }
2015 2016 2017 2018 2019 2020 2021

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundTypeOfOperator(this.Syntax, this.SourceType, this.GetTypeFromHandle, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2022 2023 2024 2025 2026 2027 2028 2029
    }

    internal sealed partial class BoundMethodDefIndex : BoundExpression
    {
        public BoundMethodDefIndex(SyntaxNode syntax, MethodSymbol method, TypeSymbol type, bool hasErrors)
            : base(BoundKind.MethodDefIndex, syntax, type, hasErrors)
        {

2030 2031
            Debug.Assert((object)method != null, "Field 'method' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2032 2033 2034 2035 2036 2037 2038 2039

            this.Method = method;
        }

        public BoundMethodDefIndex(SyntaxNode syntax, MethodSymbol method, TypeSymbol type)
            : base(BoundKind.MethodDefIndex, syntax, type)
        {

2040 2041
            Debug.Assert((object)method != null, "Field 'method' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055

            this.Method = method;
        }


        public MethodSymbol Method { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitMethodDefIndex(this);
        }

        public BoundMethodDefIndex Update(MethodSymbol method, TypeSymbol type)
        {
2056
            if (method != this.Method || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2057 2058
            {
                var result = new BoundMethodDefIndex(this.Syntax, method, type, this.HasErrors);
2059
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2060 2061 2062 2063
                return result;
            }
            return this;
        }
2064 2065 2066 2067 2068 2069 2070

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundMethodDefIndex(this.Syntax, this.Method, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2071 2072 2073 2074 2075 2076 2077 2078
    }

    internal sealed partial class BoundMaximumMethodDefIndex : BoundExpression
    {
        public BoundMaximumMethodDefIndex(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.MaximumMethodDefIndex, syntax, type, hasErrors)
        {

2079
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2080 2081 2082 2083 2084 2085 2086

        }

        public BoundMaximumMethodDefIndex(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.MaximumMethodDefIndex, syntax, type)
        {

2087
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitMaximumMethodDefIndex(this);
        }

        public BoundMaximumMethodDefIndex Update(TypeSymbol type)
        {
2099
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2100 2101
            {
                var result = new BoundMaximumMethodDefIndex(this.Syntax, type, this.HasErrors);
2102
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2103 2104 2105 2106
                return result;
            }
            return this;
        }
2107 2108 2109 2110 2111 2112 2113

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundMaximumMethodDefIndex(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2114 2115 2116 2117 2118 2119 2120 2121
    }

    internal sealed partial class BoundInstrumentationPayloadRoot : BoundExpression
    {
        public BoundInstrumentationPayloadRoot(SyntaxNode syntax, int analysisKind, TypeSymbol type, bool hasErrors)
            : base(BoundKind.InstrumentationPayloadRoot, syntax, type, hasErrors)
        {

2122
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2123 2124 2125 2126 2127 2128 2129 2130

            this.AnalysisKind = analysisKind;
        }

        public BoundInstrumentationPayloadRoot(SyntaxNode syntax, int analysisKind, TypeSymbol type)
            : base(BoundKind.InstrumentationPayloadRoot, syntax, type)
        {

2131
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145

            this.AnalysisKind = analysisKind;
        }


        public int AnalysisKind { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitInstrumentationPayloadRoot(this);
        }

        public BoundInstrumentationPayloadRoot Update(int analysisKind, TypeSymbol type)
        {
2146
            if (analysisKind != this.AnalysisKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2147 2148
            {
                var result = new BoundInstrumentationPayloadRoot(this.Syntax, analysisKind, type, this.HasErrors);
2149
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2150 2151 2152 2153
                return result;
            }
            return this;
        }
2154 2155 2156 2157 2158 2159 2160

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundInstrumentationPayloadRoot(this.Syntax, this.AnalysisKind, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2161 2162 2163 2164 2165 2166 2167 2168
    }

    internal sealed partial class BoundModuleVersionId : BoundExpression
    {
        public BoundModuleVersionId(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.ModuleVersionId, syntax, type, hasErrors)
        {

2169
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2170 2171 2172 2173 2174 2175 2176

        }

        public BoundModuleVersionId(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.ModuleVersionId, syntax, type)
        {

2177
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitModuleVersionId(this);
        }

        public BoundModuleVersionId Update(TypeSymbol type)
        {
2189
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2190 2191
            {
                var result = new BoundModuleVersionId(this.Syntax, type, this.HasErrors);
2192
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2193 2194 2195 2196
                return result;
            }
            return this;
        }
2197 2198 2199 2200 2201 2202 2203

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundModuleVersionId(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2204 2205 2206 2207 2208 2209 2210 2211
    }

    internal sealed partial class BoundModuleVersionIdString : BoundExpression
    {
        public BoundModuleVersionIdString(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.ModuleVersionIdString, syntax, type, hasErrors)
        {

2212
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2213 2214 2215 2216 2217 2218 2219

        }

        public BoundModuleVersionIdString(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.ModuleVersionIdString, syntax, type)
        {

2220
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitModuleVersionIdString(this);
        }

        public BoundModuleVersionIdString Update(TypeSymbol type)
        {
2232
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2233 2234
            {
                var result = new BoundModuleVersionIdString(this.Syntax, type, this.HasErrors);
2235
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2236 2237 2238 2239
                return result;
            }
            return this;
        }
2240 2241 2242 2243 2244 2245 2246

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundModuleVersionIdString(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2247 2248 2249 2250 2251 2252 2253 2254
    }

    internal sealed partial class BoundSourceDocumentIndex : BoundExpression
    {
        public BoundSourceDocumentIndex(SyntaxNode syntax, Cci.DebugSourceDocument document, TypeSymbol type, bool hasErrors)
            : base(BoundKind.SourceDocumentIndex, syntax, type, hasErrors)
        {

2255 2256
            Debug.Assert((object)document != null, "Field 'document' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2257 2258 2259 2260 2261 2262 2263 2264

            this.Document = document;
        }

        public BoundSourceDocumentIndex(SyntaxNode syntax, Cci.DebugSourceDocument document, TypeSymbol type)
            : base(BoundKind.SourceDocumentIndex, syntax, type)
        {

2265 2266
            Debug.Assert((object)document != null, "Field 'document' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280

            this.Document = document;
        }


        public Cci.DebugSourceDocument Document { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitSourceDocumentIndex(this);
        }

        public BoundSourceDocumentIndex Update(Cci.DebugSourceDocument document, TypeSymbol type)
        {
2281
            if (document != this.Document || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2282 2283
            {
                var result = new BoundSourceDocumentIndex(this.Syntax, document, type, this.HasErrors);
2284
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2285 2286 2287 2288
                return result;
            }
            return this;
        }
2289 2290 2291 2292 2293 2294 2295

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundSourceDocumentIndex(this.Syntax, this.Document, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2296 2297 2298 2299 2300 2301 2302 2303
    }

    internal sealed partial class BoundMethodInfo : BoundExpression
    {
        public BoundMethodInfo(SyntaxNode syntax, MethodSymbol method, MethodSymbol getMethodFromHandle, TypeSymbol type, bool hasErrors)
            : base(BoundKind.MethodInfo, syntax, type, hasErrors)
        {

2304 2305
            Debug.Assert((object)method != null, "Field 'method' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2306 2307 2308 2309 2310 2311 2312 2313 2314

            this.Method = method;
            this.GetMethodFromHandle = getMethodFromHandle;
        }

        public BoundMethodInfo(SyntaxNode syntax, MethodSymbol method, MethodSymbol getMethodFromHandle, TypeSymbol type)
            : base(BoundKind.MethodInfo, syntax, type)
        {

2315 2316
            Debug.Assert((object)method != null, "Field 'method' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333

            this.Method = method;
            this.GetMethodFromHandle = getMethodFromHandle;
        }


        public MethodSymbol Method { get; }

        public MethodSymbol GetMethodFromHandle { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitMethodInfo(this);
        }

        public BoundMethodInfo Update(MethodSymbol method, MethodSymbol getMethodFromHandle, TypeSymbol type)
        {
2334
            if (method != this.Method || getMethodFromHandle != this.GetMethodFromHandle || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2335 2336
            {
                var result = new BoundMethodInfo(this.Syntax, method, getMethodFromHandle, type, this.HasErrors);
2337
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2338 2339 2340 2341
                return result;
            }
            return this;
        }
2342 2343 2344 2345 2346 2347 2348

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundMethodInfo(this.Syntax, this.Method, this.GetMethodFromHandle, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2349 2350 2351 2352 2353 2354 2355 2356
    }

    internal sealed partial class BoundFieldInfo : BoundExpression
    {
        public BoundFieldInfo(SyntaxNode syntax, FieldSymbol field, MethodSymbol getFieldFromHandle, TypeSymbol type, bool hasErrors)
            : base(BoundKind.FieldInfo, syntax, type, hasErrors)
        {

2357 2358
            Debug.Assert((object)field != null, "Field 'field' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2359 2360 2361 2362 2363 2364 2365 2366 2367

            this.Field = field;
            this.GetFieldFromHandle = getFieldFromHandle;
        }

        public BoundFieldInfo(SyntaxNode syntax, FieldSymbol field, MethodSymbol getFieldFromHandle, TypeSymbol type)
            : base(BoundKind.FieldInfo, syntax, type)
        {

2368 2369
            Debug.Assert((object)field != null, "Field 'field' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386

            this.Field = field;
            this.GetFieldFromHandle = getFieldFromHandle;
        }


        public FieldSymbol Field { get; }

        public MethodSymbol GetFieldFromHandle { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitFieldInfo(this);
        }

        public BoundFieldInfo Update(FieldSymbol field, MethodSymbol getFieldFromHandle, TypeSymbol type)
        {
2387
            if (field != this.Field || getFieldFromHandle != this.GetFieldFromHandle || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2388 2389
            {
                var result = new BoundFieldInfo(this.Syntax, field, getFieldFromHandle, type, this.HasErrors);
2390
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2391 2392 2393 2394
                return result;
            }
            return this;
        }
2395 2396 2397 2398 2399 2400 2401

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundFieldInfo(this.Syntax, this.Field, this.GetFieldFromHandle, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2402 2403
    }

2404
    internal sealed partial class BoundDefaultExpression : BoundExpression
D
DotNet Bot 已提交
2405
    {
2406 2407
        public BoundDefaultExpression(SyntaxNode syntax, ConstantValue constantValueOpt, TypeSymbol type, bool hasErrors)
            : base(BoundKind.DefaultExpression, syntax, type, hasErrors)
D
DotNet Bot 已提交
2408 2409 2410 2411
        {
            this.ConstantValueOpt = constantValueOpt;
        }

2412 2413
        public BoundDefaultExpression(SyntaxNode syntax, ConstantValue constantValueOpt, TypeSymbol type)
            : base(BoundKind.DefaultExpression, syntax, type)
D
DotNet Bot 已提交
2414 2415 2416 2417 2418 2419 2420 2421 2422
        {
            this.ConstantValueOpt = constantValueOpt;
        }


        public ConstantValue ConstantValueOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
2423
            return visitor.VisitDefaultExpression(this);
D
DotNet Bot 已提交
2424 2425
        }

2426
        public BoundDefaultExpression Update(ConstantValue constantValueOpt, TypeSymbol type)
D
DotNet Bot 已提交
2427
        {
2428
            if (constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2429
            {
2430
                var result = new BoundDefaultExpression(this.Syntax, constantValueOpt, type, this.HasErrors);
2431
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2432 2433 2434 2435
                return result;
            }
            return this;
        }
2436 2437 2438 2439 2440 2441 2442

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDefaultExpression(this.Syntax, this.ConstantValueOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2443 2444 2445 2446 2447 2448 2449 2450
    }

    internal sealed partial class BoundIsOperator : BoundExpression
    {
        public BoundIsOperator(SyntaxNode syntax, BoundExpression operand, BoundTypeExpression targetType, Conversion conversion, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.IsOperator, syntax, type, hasErrors || operand.HasErrors() || targetType.HasErrors())
        {

2451 2452 2453
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)targetType != null, "Field 'targetType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473

            this.Operand = operand;
            this.TargetType = targetType;
            this.Conversion = conversion;
        }


        public BoundExpression Operand { get; }

        public BoundTypeExpression TargetType { get; }

        public Conversion Conversion { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitIsOperator(this);
        }

        public BoundIsOperator Update(BoundExpression operand, BoundTypeExpression targetType, Conversion conversion, TypeSymbol type)
        {
2474
            if (operand != this.Operand || targetType != this.TargetType || conversion != this.Conversion || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2475 2476
            {
                var result = new BoundIsOperator(this.Syntax, operand, targetType, conversion, type, this.HasErrors);
2477
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2478 2479 2480 2481
                return result;
            }
            return this;
        }
2482 2483 2484 2485 2486 2487 2488

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundIsOperator(this.Syntax, this.Operand, this.TargetType, this.Conversion, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2489 2490 2491 2492 2493 2494 2495 2496
    }

    internal sealed partial class BoundAsOperator : BoundExpression
    {
        public BoundAsOperator(SyntaxNode syntax, BoundExpression operand, BoundTypeExpression targetType, Conversion conversion, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.AsOperator, syntax, type, hasErrors || operand.HasErrors() || targetType.HasErrors())
        {

2497 2498 2499
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)targetType != null, "Field 'targetType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519

            this.Operand = operand;
            this.TargetType = targetType;
            this.Conversion = conversion;
        }


        public BoundExpression Operand { get; }

        public BoundTypeExpression TargetType { get; }

        public Conversion Conversion { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitAsOperator(this);
        }

        public BoundAsOperator Update(BoundExpression operand, BoundTypeExpression targetType, Conversion conversion, TypeSymbol type)
        {
2520
            if (operand != this.Operand || targetType != this.TargetType || conversion != this.Conversion || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2521 2522
            {
                var result = new BoundAsOperator(this.Syntax, operand, targetType, conversion, type, this.HasErrors);
2523
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2524 2525 2526 2527
                return result;
            }
            return this;
        }
2528 2529 2530 2531 2532 2533 2534

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundAsOperator(this.Syntax, this.Operand, this.TargetType, this.Conversion, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2535 2536 2537 2538 2539 2540 2541 2542
    }

    internal sealed partial class BoundSizeOfOperator : BoundExpression
    {
        public BoundSizeOfOperator(SyntaxNode syntax, BoundTypeExpression sourceType, ConstantValue constantValueOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.SizeOfOperator, syntax, type, hasErrors || sourceType.HasErrors())
        {

2543 2544
            Debug.Assert((object)sourceType != null, "Field 'sourceType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561

            this.SourceType = sourceType;
            this.ConstantValueOpt = constantValueOpt;
        }


        public BoundTypeExpression SourceType { get; }

        public ConstantValue ConstantValueOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitSizeOfOperator(this);
        }

        public BoundSizeOfOperator Update(BoundTypeExpression sourceType, ConstantValue constantValueOpt, TypeSymbol type)
        {
2562
            if (sourceType != this.SourceType || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2563 2564
            {
                var result = new BoundSizeOfOperator(this.Syntax, sourceType, constantValueOpt, type, this.HasErrors);
2565
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2566 2567 2568 2569
                return result;
            }
            return this;
        }
2570 2571 2572 2573 2574 2575 2576

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundSizeOfOperator(this.Syntax, this.SourceType, this.ConstantValueOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2577 2578 2579 2580
    }

    internal sealed partial class BoundConversion : BoundExpression
    {
2581
        public BoundConversion(SyntaxNode syntax, BoundExpression operand, Conversion conversion, bool isBaseConversion, bool @checked, bool explicitCastInCode, ConstantValue constantValueOpt, ConversionGroup conversionGroupOpt, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
2582 2583 2584
            : base(BoundKind.Conversion, syntax, type, hasErrors || operand.HasErrors())
        {

2585 2586
            Debug.Assert((object)operand != null, "Field 'operand' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2587 2588 2589 2590 2591 2592 2593

            this.Operand = operand;
            this.Conversion = conversion;
            this.IsBaseConversion = isBaseConversion;
            this.Checked = @checked;
            this.ExplicitCastInCode = explicitCastInCode;
            this.ConstantValueOpt = constantValueOpt;
2594
            this.ConversionGroupOpt = conversionGroupOpt;
D
DotNet Bot 已提交
2595 2596 2597 2598 2599 2600 2601
        }


        public BoundExpression Operand { get; }

        public Conversion Conversion { get; }

2602
        public bool IsBaseConversion { get; }
D
DotNet Bot 已提交
2603

2604
        public bool Checked { get; }
D
DotNet Bot 已提交
2605

2606
        public bool ExplicitCastInCode { get; }
D
DotNet Bot 已提交
2607 2608 2609

        public ConstantValue ConstantValueOpt { get; }

2610
        public ConversionGroup ConversionGroupOpt { get; }
2611

D
DotNet Bot 已提交
2612 2613 2614 2615 2616
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitConversion(this);
        }

2617
        public BoundConversion Update(BoundExpression operand, Conversion conversion, bool isBaseConversion, bool @checked, bool explicitCastInCode, ConstantValue constantValueOpt, ConversionGroup conversionGroupOpt, TypeSymbol type)
D
DotNet Bot 已提交
2618
        {
2619
            if (operand != this.Operand || conversion != this.Conversion || isBaseConversion != this.IsBaseConversion || @checked != this.Checked || explicitCastInCode != this.ExplicitCastInCode || constantValueOpt != this.ConstantValueOpt || conversionGroupOpt != this.ConversionGroupOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2620
            {
2621
                var result = new BoundConversion(this.Syntax, operand, conversion, isBaseConversion, @checked, explicitCastInCode, constantValueOpt, conversionGroupOpt, type, this.HasErrors);
2622
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2623 2624 2625 2626
                return result;
            }
            return this;
        }
2627 2628 2629 2630 2631 2632 2633

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundConversion(this.Syntax, this.Operand, this.Conversion, this.IsBaseConversion, this.Checked, this.ExplicitCastInCode, this.ConstantValueOpt, this.ConversionGroupOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2634 2635 2636 2637 2638 2639 2640 2641
    }

    internal sealed partial class BoundArgList : BoundExpression
    {
        public BoundArgList(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.ArgList, syntax, type, hasErrors)
        {

2642
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2643 2644 2645 2646 2647 2648 2649

        }

        public BoundArgList(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.ArgList, syntax, type)
        {

2650
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitArgList(this);
        }

        public BoundArgList Update(TypeSymbol type)
        {
2662
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2663 2664
            {
                var result = new BoundArgList(this.Syntax, type, this.HasErrors);
2665
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2666 2667 2668 2669
                return result;
            }
            return this;
        }
2670 2671 2672 2673 2674 2675 2676

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundArgList(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702
    }

    internal sealed partial class BoundArgListOperator : BoundExpression
    {
        public BoundArgListOperator(SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ArgListOperator, syntax, type, hasErrors || arguments.HasErrors())
        {

            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.Arguments = arguments;
            this.ArgumentRefKindsOpt = argumentRefKindsOpt;
        }


        public ImmutableArray<BoundExpression> Arguments { get; }

        public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitArgListOperator(this);
        }

        public BoundArgListOperator Update(ImmutableArray<BoundExpression> arguments, ImmutableArray<RefKind> argumentRefKindsOpt, TypeSymbol type)
        {
2703
            if (arguments != this.Arguments || argumentRefKindsOpt != this.ArgumentRefKindsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2704 2705
            {
                var result = new BoundArgListOperator(this.Syntax, arguments, argumentRefKindsOpt, type, this.HasErrors);
2706
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2707 2708 2709 2710
                return result;
            }
            return this;
        }
2711 2712 2713 2714 2715 2716 2717

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundArgListOperator(this.Syntax, this.Arguments, this.ArgumentRefKindsOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2718 2719 2720 2721
    }

    internal sealed partial class BoundFixedLocalCollectionInitializer : BoundExpression
    {
V
vsadov 已提交
2722
        public BoundFixedLocalCollectionInitializer(SyntaxNode syntax, TypeSymbol elementPointerType, Conversion elementPointerTypeConversion, BoundExpression expression, MethodSymbol getPinnableOpt, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
2723 2724 2725
            : base(BoundKind.FixedLocalCollectionInitializer, syntax, type, hasErrors || expression.HasErrors())
        {

2726 2727 2728
            Debug.Assert((object)elementPointerType != null, "Field 'elementPointerType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2729 2730 2731 2732

            this.ElementPointerType = elementPointerType;
            this.ElementPointerTypeConversion = elementPointerTypeConversion;
            this.Expression = expression;
V
vsadov 已提交
2733
            this.GetPinnableOpt = getPinnableOpt;
D
DotNet Bot 已提交
2734 2735 2736 2737 2738 2739 2740 2741 2742
        }


        public TypeSymbol ElementPointerType { get; }

        public Conversion ElementPointerTypeConversion { get; }

        public BoundExpression Expression { get; }

V
vsadov 已提交
2743 2744
        public MethodSymbol GetPinnableOpt { get; }

D
DotNet Bot 已提交
2745 2746 2747 2748 2749
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitFixedLocalCollectionInitializer(this);
        }

V
vsadov 已提交
2750
        public BoundFixedLocalCollectionInitializer Update(TypeSymbol elementPointerType, Conversion elementPointerTypeConversion, BoundExpression expression, MethodSymbol getPinnableOpt, TypeSymbol type)
D
DotNet Bot 已提交
2751
        {
2752
            if (!TypeSymbol.Equals(elementPointerType, this.ElementPointerType, TypeCompareKind.ConsiderEverything) || elementPointerTypeConversion != this.ElementPointerTypeConversion || expression != this.Expression || getPinnableOpt != this.GetPinnableOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
2753
            {
V
vsadov 已提交
2754
                var result = new BoundFixedLocalCollectionInitializer(this.Syntax, elementPointerType, elementPointerTypeConversion, expression, getPinnableOpt, type, this.HasErrors);
2755
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2756 2757 2758 2759
                return result;
            }
            return this;
        }
2760 2761 2762 2763 2764 2765 2766

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundFixedLocalCollectionInitializer(this.Syntax, this.ElementPointerType, this.ElementPointerTypeConversion, this.Expression, this.GetPinnableOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803
    }

    internal abstract partial class BoundStatement : BoundNode
    {
        protected BoundStatement(BoundKind kind, SyntaxNode syntax, bool hasErrors)
            : base(kind, syntax, hasErrors)
        {
        }

        protected BoundStatement(BoundKind kind, SyntaxNode syntax)
            : base(kind, syntax)
        {
        }

    }

    internal sealed partial class BoundSequencePoint : BoundStatement
    {
        public BoundSequencePoint(SyntaxNode syntax, BoundStatement statementOpt, bool hasErrors = false)
            : base(BoundKind.SequencePoint, syntax, hasErrors || statementOpt.HasErrors())
        {
            this.StatementOpt = statementOpt;
        }


        public BoundStatement StatementOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitSequencePoint(this);
        }

        public BoundSequencePoint Update(BoundStatement statementOpt)
        {
            if (statementOpt != this.StatementOpt)
            {
                var result = new BoundSequencePoint(this.Syntax, statementOpt, this.HasErrors);
2804
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundSequencePointWithSpan : BoundStatement
    {
        public BoundSequencePointWithSpan(SyntaxNode syntax, BoundStatement statementOpt, TextSpan span, bool hasErrors = false)
            : base(BoundKind.SequencePointWithSpan, syntax, hasErrors || statementOpt.HasErrors())
        {
            this.StatementOpt = statementOpt;
            this.Span = span;
        }


        public BoundStatement StatementOpt { get; }

        public TextSpan Span { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitSequencePointWithSpan(this);
        }

        public BoundSequencePointWithSpan Update(BoundStatement statementOpt, TextSpan span)
        {
            if (statementOpt != this.StatementOpt || span != this.Span)
            {
                var result = new BoundSequencePointWithSpan(this.Syntax, statementOpt, span, this.HasErrors);
2835
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundBlock : BoundStatementList
    {
        public BoundBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<LocalFunctionSymbol> localFunctions, ImmutableArray<BoundStatement> statements, bool hasErrors = false)
            : base(BoundKind.Block, syntax, statements, hasErrors || statements.HasErrors())
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!localFunctions.IsDefault, "Field 'localFunctions' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.Locals = locals;
            this.LocalFunctions = localFunctions;
        }


        public ImmutableArray<LocalSymbol> Locals { get; }

        public ImmutableArray<LocalFunctionSymbol> LocalFunctions { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitBlock(this);
        }

        public BoundBlock Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<LocalFunctionSymbol> localFunctions, ImmutableArray<BoundStatement> statements)
        {
            if (locals != this.Locals || localFunctions != this.LocalFunctions || statements != this.Statements)
            {
                var result = new BoundBlock(this.Syntax, locals, localFunctions, statements, this.HasErrors);
2871
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundScope : BoundStatementList
    {
        public BoundScope(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements, bool hasErrors = false)
            : base(BoundKind.Scope, syntax, statements, hasErrors || statements.HasErrors())
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.Locals = locals;
        }


        public ImmutableArray<LocalSymbol> Locals { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitScope(this);
        }

        public BoundScope Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> statements)
        {
            if (locals != this.Locals || statements != this.Statements)
            {
                var result = new BoundScope(this.Syntax, locals, statements, this.HasErrors);
2903
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundStateMachineScope : BoundStatement
    {
        public BoundStateMachineScope(SyntaxNode syntax, ImmutableArray<StateMachineFieldSymbol> fields, BoundStatement statement, bool hasErrors = false)
            : base(BoundKind.StateMachineScope, syntax, hasErrors || statement.HasErrors())
        {

            Debug.Assert(!fields.IsDefault, "Field 'fields' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
2917
            Debug.Assert((object)statement != null, "Field 'statement' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937

            this.Fields = fields;
            this.Statement = statement;
        }


        public ImmutableArray<StateMachineFieldSymbol> Fields { get; }

        public BoundStatement Statement { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitStateMachineScope(this);
        }

        public BoundStateMachineScope Update(ImmutableArray<StateMachineFieldSymbol> fields, BoundStatement statement)
        {
            if (fields != this.Fields || statement != this.Statement)
            {
                var result = new BoundStateMachineScope(this.Syntax, fields, statement, this.HasErrors);
2938
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundLocalDeclaration : BoundStatement
    {
        public BoundLocalDeclaration(SyntaxNode syntax, LocalSymbol localSymbol, BoundTypeExpression declaredType, BoundExpression initializerOpt, ImmutableArray<BoundExpression> argumentsOpt, bool hasErrors = false)
            : base(BoundKind.LocalDeclaration, syntax, hasErrors || declaredType.HasErrors() || initializerOpt.HasErrors() || argumentsOpt.HasErrors())
        {

2951 2952
            Debug.Assert((object)localSymbol != null, "Field 'localSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)declaredType != null, "Field 'declaredType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978

            this.LocalSymbol = localSymbol;
            this.DeclaredType = declaredType;
            this.InitializerOpt = initializerOpt;
            this.ArgumentsOpt = argumentsOpt;
        }


        public LocalSymbol LocalSymbol { get; }

        public BoundTypeExpression DeclaredType { get; }

        public BoundExpression InitializerOpt { get; }

        public ImmutableArray<BoundExpression> ArgumentsOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitLocalDeclaration(this);
        }

        public BoundLocalDeclaration Update(LocalSymbol localSymbol, BoundTypeExpression declaredType, BoundExpression initializerOpt, ImmutableArray<BoundExpression> argumentsOpt)
        {
            if (localSymbol != this.LocalSymbol || declaredType != this.DeclaredType || initializerOpt != this.InitializerOpt || argumentsOpt != this.ArgumentsOpt)
            {
                var result = new BoundLocalDeclaration(this.Syntax, localSymbol, declaredType, initializerOpt, argumentsOpt, this.HasErrors);
2979
                result.CopyAttributes(this);
D
DotNet Bot 已提交
2980 2981 2982 2983 2984 2985
                return result;
            }
            return this;
        }
    }

2986
    internal partial class BoundMultipleLocalDeclarations : BoundStatement
D
DotNet Bot 已提交
2987
    {
2988 2989 2990 2991 2992 2993 2994 2995 2996
        protected BoundMultipleLocalDeclarations(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false)
            : base(kind, syntax, hasErrors)
        {

            Debug.Assert(!localDeclarations.IsDefault, "Field 'localDeclarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.LocalDeclarations = localDeclarations;
        }

D
DotNet Bot 已提交
2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018
        public BoundMultipleLocalDeclarations(SyntaxNode syntax, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false)
            : base(BoundKind.MultipleLocalDeclarations, syntax, hasErrors || localDeclarations.HasErrors())
        {

            Debug.Assert(!localDeclarations.IsDefault, "Field 'localDeclarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.LocalDeclarations = localDeclarations;
        }


        public ImmutableArray<BoundLocalDeclaration> LocalDeclarations { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitMultipleLocalDeclarations(this);
        }

        public BoundMultipleLocalDeclarations Update(ImmutableArray<BoundLocalDeclaration> localDeclarations)
        {
            if (localDeclarations != this.LocalDeclarations)
            {
                var result = new BoundMultipleLocalDeclarations(this.Syntax, localDeclarations, this.HasErrors);
3019
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3020 3021 3022 3023 3024 3025
                return result;
            }
            return this;
        }
    }

3026 3027
    internal sealed partial class BoundUsingLocalDeclarations : BoundMultipleLocalDeclarations
    {
3028
        public BoundUsingLocalDeclarations(SyntaxNode syntax, MethodSymbol disposeMethodOpt, Conversion iDisposableConversion, AwaitableInfo awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations, bool hasErrors = false)
3029 3030 3031 3032 3033 3034 3035
            : base(BoundKind.UsingLocalDeclarations, syntax, localDeclarations, hasErrors || localDeclarations.HasErrors())
        {

            Debug.Assert(!localDeclarations.IsDefault, "Field 'localDeclarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.DisposeMethodOpt = disposeMethodOpt;
            this.IDisposableConversion = iDisposableConversion;
3036
            this.AwaitOpt = awaitOpt;
3037 3038 3039 3040 3041 3042 3043
        }


        public MethodSymbol DisposeMethodOpt { get; }

        public Conversion IDisposableConversion { get; }

3044 3045
        public AwaitableInfo AwaitOpt { get; }

3046 3047 3048 3049 3050
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitUsingLocalDeclarations(this);
        }

3051
        public BoundUsingLocalDeclarations Update(MethodSymbol disposeMethodOpt, Conversion iDisposableConversion, AwaitableInfo awaitOpt, ImmutableArray<BoundLocalDeclaration> localDeclarations)
3052
        {
3053
            if (disposeMethodOpt != this.DisposeMethodOpt || iDisposableConversion != this.IDisposableConversion || awaitOpt != this.AwaitOpt || localDeclarations != this.LocalDeclarations)
3054
            {
3055
                var result = new BoundUsingLocalDeclarations(this.Syntax, disposeMethodOpt, iDisposableConversion, awaitOpt, localDeclarations, this.HasErrors);
3056
                result.CopyAttributes(this);
3057 3058 3059 3060 3061 3062
                return result;
            }
            return this;
        }
    }

D
DotNet Bot 已提交
3063 3064
    internal sealed partial class BoundLocalFunctionStatement : BoundStatement
    {
3065 3066
        public BoundLocalFunctionStatement(SyntaxNode syntax, LocalFunctionSymbol symbol, BoundBlock blockBody, BoundBlock expressionBody, bool hasErrors = false)
            : base(BoundKind.LocalFunctionStatement, syntax, hasErrors || blockBody.HasErrors() || expressionBody.HasErrors())
D
DotNet Bot 已提交
3067 3068
        {

3069
            Debug.Assert((object)symbol != null, "Field 'symbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3070 3071

            this.Symbol = symbol;
3072 3073
            this.BlockBody = blockBody;
            this.ExpressionBody = expressionBody;
D
DotNet Bot 已提交
3074 3075 3076 3077 3078
        }


        public LocalFunctionSymbol Symbol { get; }

3079 3080 3081
        public BoundBlock BlockBody { get; }

        public BoundBlock ExpressionBody { get; }
D
DotNet Bot 已提交
3082 3083 3084 3085 3086 3087

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitLocalFunctionStatement(this);
        }

3088
        public BoundLocalFunctionStatement Update(LocalFunctionSymbol symbol, BoundBlock blockBody, BoundBlock expressionBody)
D
DotNet Bot 已提交
3089
        {
3090
            if (symbol != this.Symbol || blockBody != this.BlockBody || expressionBody != this.ExpressionBody)
D
DotNet Bot 已提交
3091
            {
3092
                var result = new BoundLocalFunctionStatement(this.Syntax, symbol, blockBody, expressionBody, this.HasErrors);
3093
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundNoOpStatement : BoundStatement
    {
        public BoundNoOpStatement(SyntaxNode syntax, NoOpStatementFlavor flavor, bool hasErrors)
            : base(BoundKind.NoOpStatement, syntax, hasErrors)
        {
            this.Flavor = flavor;
        }

        public BoundNoOpStatement(SyntaxNode syntax, NoOpStatementFlavor flavor)
            : base(BoundKind.NoOpStatement, syntax)
        {
            this.Flavor = flavor;
        }


        public NoOpStatementFlavor Flavor { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitNoOpStatement(this);
        }

        public BoundNoOpStatement Update(NoOpStatementFlavor flavor)
        {
            if (flavor != this.Flavor)
            {
                var result = new BoundNoOpStatement(this.Syntax, flavor, this.HasErrors);
3127
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundReturnStatement : BoundStatement
    {
        public BoundReturnStatement(SyntaxNode syntax, RefKind refKind, BoundExpression expressionOpt, bool hasErrors = false)
            : base(BoundKind.ReturnStatement, syntax, hasErrors || expressionOpt.HasErrors())
        {
            this.RefKind = refKind;
            this.ExpressionOpt = expressionOpt;
        }


        public RefKind RefKind { get; }

        public BoundExpression ExpressionOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitReturnStatement(this);
        }

        public BoundReturnStatement Update(RefKind refKind, BoundExpression expressionOpt)
        {
            if (refKind != this.RefKind || expressionOpt != this.ExpressionOpt)
            {
                var result = new BoundReturnStatement(this.Syntax, refKind, expressionOpt, this.HasErrors);
3158
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundYieldReturnStatement : BoundStatement
    {
        public BoundYieldReturnStatement(SyntaxNode syntax, BoundExpression expression, bool hasErrors = false)
            : base(BoundKind.YieldReturnStatement, syntax, hasErrors || expression.HasErrors())
        {

3171
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188

            this.Expression = expression;
        }


        public BoundExpression Expression { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitYieldReturnStatement(this);
        }

        public BoundYieldReturnStatement Update(BoundExpression expression)
        {
            if (expression != this.Expression)
            {
                var result = new BoundYieldReturnStatement(this.Syntax, expression, this.HasErrors);
3189
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundYieldBreakStatement : BoundStatement
    {
        public BoundYieldBreakStatement(SyntaxNode syntax, bool hasErrors)
            : base(BoundKind.YieldBreakStatement, syntax, hasErrors)
        {
        }

        public BoundYieldBreakStatement(SyntaxNode syntax)
            : base(BoundKind.YieldBreakStatement, syntax)
        {
        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitYieldBreakStatement(this);
        }
    }

    internal sealed partial class BoundThrowStatement : BoundStatement
    {
        public BoundThrowStatement(SyntaxNode syntax, BoundExpression expressionOpt, bool hasErrors = false)
            : base(BoundKind.ThrowStatement, syntax, hasErrors || expressionOpt.HasErrors())
        {
            this.ExpressionOpt = expressionOpt;
        }


        public BoundExpression ExpressionOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitThrowStatement(this);
        }

        public BoundThrowStatement Update(BoundExpression expressionOpt)
        {
            if (expressionOpt != this.ExpressionOpt)
            {
                var result = new BoundThrowStatement(this.Syntax, expressionOpt, this.HasErrors);
3236
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundExpressionStatement : BoundStatement
    {
        public BoundExpressionStatement(SyntaxNode syntax, BoundExpression expression, bool hasErrors = false)
            : base(BoundKind.ExpressionStatement, syntax, hasErrors || expression.HasErrors())
        {

3249
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266

            this.Expression = expression;
        }


        public BoundExpression Expression { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitExpressionStatement(this);
        }

        public BoundExpressionStatement Update(BoundExpression expression)
        {
            if (expression != this.Expression)
            {
                var result = new BoundExpressionStatement(this.Syntax, expression, this.HasErrors);
3267
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundBreakStatement : BoundStatement
    {
        public BoundBreakStatement(SyntaxNode syntax, GeneratedLabelSymbol label, bool hasErrors)
            : base(BoundKind.BreakStatement, syntax, hasErrors)
        {

3280
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3281 3282 3283 3284 3285 3286 3287 3288

            this.Label = label;
        }

        public BoundBreakStatement(SyntaxNode syntax, GeneratedLabelSymbol label)
            : base(BoundKind.BreakStatement, syntax)
        {

3289
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306

            this.Label = label;
        }


        public GeneratedLabelSymbol Label { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitBreakStatement(this);
        }

        public BoundBreakStatement Update(GeneratedLabelSymbol label)
        {
            if (label != this.Label)
            {
                var result = new BoundBreakStatement(this.Syntax, label, this.HasErrors);
3307
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundContinueStatement : BoundStatement
    {
        public BoundContinueStatement(SyntaxNode syntax, GeneratedLabelSymbol label, bool hasErrors)
            : base(BoundKind.ContinueStatement, syntax, hasErrors)
        {

3320
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3321 3322 3323 3324 3325 3326 3327 3328

            this.Label = label;
        }

        public BoundContinueStatement(SyntaxNode syntax, GeneratedLabelSymbol label)
            : base(BoundKind.ContinueStatement, syntax)
        {

3329
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346

            this.Label = label;
        }


        public GeneratedLabelSymbol Label { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitContinueStatement(this);
        }

        public BoundContinueStatement Update(GeneratedLabelSymbol label)
        {
            if (label != this.Label)
            {
                var result = new BoundContinueStatement(this.Syntax, label, this.HasErrors);
3347
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3348 3349 3350 3351 3352 3353
                return result;
            }
            return this;
        }
    }

3354
    internal sealed partial class BoundSwitchStatement : BoundStatement
D
DotNet Bot 已提交
3355
    {
3356
        public BoundSwitchStatement(SyntaxNode syntax, BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag decisionDag, BoundSwitchLabel defaultLabel, GeneratedLabelSymbol breakLabel, bool hasErrors = false)
3357
            : base(BoundKind.SwitchStatement, syntax, hasErrors || expression.HasErrors() || switchSections.HasErrors() || decisionDag.HasErrors() || defaultLabel.HasErrors())
D
DotNet Bot 已提交
3358 3359
        {

3360
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3361 3362 3363
            Debug.Assert(!innerLocals.IsDefault, "Field 'innerLocals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!innerLocalFunctions.IsDefault, "Field 'innerLocalFunctions' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!switchSections.IsDefault, "Field 'switchSections' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3364
            Debug.Assert((object)decisionDag != null, "Field 'decisionDag' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3365
            Debug.Assert((object)breakLabel != null, "Field 'breakLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3366 3367 3368 3369 3370

            this.Expression = expression;
            this.InnerLocals = innerLocals;
            this.InnerLocalFunctions = innerLocalFunctions;
            this.SwitchSections = switchSections;
3371
            this.DecisionDag = decisionDag;
D
DotNet Bot 已提交
3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382
            this.DefaultLabel = defaultLabel;
            this.BreakLabel = breakLabel;
        }


        public BoundExpression Expression { get; }

        public ImmutableArray<LocalSymbol> InnerLocals { get; }

        public ImmutableArray<LocalFunctionSymbol> InnerLocalFunctions { get; }

3383
        public ImmutableArray<BoundSwitchSection> SwitchSections { get; }
D
DotNet Bot 已提交
3384

3385
        public BoundDecisionDag DecisionDag { get; }
D
DotNet Bot 已提交
3386

3387
        public BoundSwitchLabel DefaultLabel { get; }
D
DotNet Bot 已提交
3388 3389 3390 3391 3392

        public GeneratedLabelSymbol BreakLabel { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
3393
            return visitor.VisitSwitchStatement(this);
D
DotNet Bot 已提交
3394 3395
        }

3396
        public BoundSwitchStatement Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag decisionDag, BoundSwitchLabel defaultLabel, GeneratedLabelSymbol breakLabel)
D
DotNet Bot 已提交
3397
        {
3398
            if (expression != this.Expression || innerLocals != this.InnerLocals || innerLocalFunctions != this.InnerLocalFunctions || switchSections != this.SwitchSections || decisionDag != this.DecisionDag || defaultLabel != this.DefaultLabel || breakLabel != this.BreakLabel)
D
DotNet Bot 已提交
3399
            {
3400
                var result = new BoundSwitchStatement(this.Syntax, expression, innerLocals, innerLocalFunctions, switchSections, decisionDag, defaultLabel, breakLabel, this.HasErrors);
3401
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3402 3403 3404 3405 3406 3407
                return result;
            }
            return this;
        }
    }

3408
    internal sealed partial class BoundSwitchDispatch : BoundStatement
D
DotNet Bot 已提交
3409
    {
3410 3411
        public BoundSwitchDispatch(SyntaxNode syntax, BoundExpression expression, ImmutableArray<(ConstantValue value, LabelSymbol label)> cases, LabelSymbol defaultLabel, MethodSymbol equalityMethod, bool hasErrors = false)
            : base(BoundKind.SwitchDispatch, syntax, hasErrors || expression.HasErrors())
D
DotNet Bot 已提交
3412 3413
        {

3414
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3415
            Debug.Assert(!cases.IsDefault, "Field 'cases' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3416
            Debug.Assert((object)defaultLabel != null, "Field 'defaultLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3417

3418
            this.Expression = expression;
3419
            this.Cases = cases;
3420 3421
            this.DefaultLabel = defaultLabel;
            this.EqualityMethod = equalityMethod;
D
DotNet Bot 已提交
3422 3423 3424
        }


3425
        public BoundExpression Expression { get; }
D
DotNet Bot 已提交
3426

3427 3428 3429 3430 3431
        public ImmutableArray<(ConstantValue value, LabelSymbol label)> Cases { get; }

        public LabelSymbol DefaultLabel { get; }

        public MethodSymbol EqualityMethod { get; }
D
DotNet Bot 已提交
3432 3433 3434

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
3435
            return visitor.VisitSwitchDispatch(this);
D
DotNet Bot 已提交
3436 3437
        }

3438
        public BoundSwitchDispatch Update(BoundExpression expression, ImmutableArray<(ConstantValue value, LabelSymbol label)> cases, LabelSymbol defaultLabel, MethodSymbol equalityMethod)
D
DotNet Bot 已提交
3439
        {
3440
            if (expression != this.Expression || cases != this.Cases || defaultLabel != this.DefaultLabel || equalityMethod != this.EqualityMethod)
D
DotNet Bot 已提交
3441
            {
3442
                var result = new BoundSwitchDispatch(this.Syntax, expression, cases, defaultLabel, equalityMethod, this.HasErrors);
3443
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3444 3445 3446 3447 3448 3449
                return result;
            }
            return this;
        }
    }

3450
    internal sealed partial class BoundIfStatement : BoundStatement
D
DotNet Bot 已提交
3451 3452 3453 3454 3455
    {
        public BoundIfStatement(SyntaxNode syntax, BoundExpression condition, BoundStatement consequence, BoundStatement alternativeOpt, bool hasErrors = false)
            : base(BoundKind.IfStatement, syntax, hasErrors || condition.HasErrors() || consequence.HasErrors() || alternativeOpt.HasErrors())
        {

3456 3457
            Debug.Assert((object)condition != null, "Field 'condition' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)consequence != null, "Field 'consequence' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480

            this.Condition = condition;
            this.Consequence = consequence;
            this.AlternativeOpt = alternativeOpt;
        }


        public BoundExpression Condition { get; }

        public BoundStatement Consequence { get; }

        public BoundStatement AlternativeOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitIfStatement(this);
        }

        public BoundIfStatement Update(BoundExpression condition, BoundStatement consequence, BoundStatement alternativeOpt)
        {
            if (condition != this.Condition || consequence != this.Consequence || alternativeOpt != this.AlternativeOpt)
            {
                var result = new BoundIfStatement(this.Syntax, condition, consequence, alternativeOpt, this.HasErrors);
3481
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493
                return result;
            }
            return this;
        }
    }

    internal abstract partial class BoundLoopStatement : BoundStatement
    {
        protected BoundLoopStatement(BoundKind kind, SyntaxNode syntax, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors)
            : base(kind, syntax, hasErrors)
        {

3494 3495
            Debug.Assert((object)breakLabel != null, "Field 'breakLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)continueLabel != null, "Field 'continueLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3496 3497 3498 3499 3500 3501 3502 3503 3504

            this.BreakLabel = breakLabel;
            this.ContinueLabel = continueLabel;
        }

        protected BoundLoopStatement(BoundKind kind, SyntaxNode syntax, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel)
            : base(kind, syntax)
        {

3505 3506
            Debug.Assert((object)breakLabel != null, "Field 'breakLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)continueLabel != null, "Field 'continueLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517

            this.BreakLabel = breakLabel;
            this.ContinueLabel = continueLabel;
        }


        public GeneratedLabelSymbol BreakLabel { get; }

        public GeneratedLabelSymbol ContinueLabel { get; }
    }

3518
    internal abstract partial class BoundConditionalLoopStatement : BoundLoopStatement
D
DotNet Bot 已提交
3519
    {
3520 3521
        protected BoundConditionalLoopStatement(BoundKind kind, SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false)
            : base(kind, syntax, breakLabel, continueLabel, hasErrors)
D
DotNet Bot 已提交
3522 3523 3524
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3525 3526 3527 3528
            Debug.Assert((object)condition != null, "Field 'condition' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)breakLabel != null, "Field 'breakLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)continueLabel != null, "Field 'continueLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540

            this.Locals = locals;
            this.Condition = condition;
            this.Body = body;
        }


        public ImmutableArray<LocalSymbol> Locals { get; }

        public BoundExpression Condition { get; }

        public BoundStatement Body { get; }
3541 3542 3543 3544 3545 3546 3547 3548 3549
    }

    internal sealed partial class BoundDoStatement : BoundConditionalLoopStatement
    {
        public BoundDoStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false)
            : base(BoundKind.DoStatement, syntax, locals, condition, body, breakLabel, continueLabel, hasErrors || condition.HasErrors() || body.HasErrors())
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3550 3551 3552 3553
            Debug.Assert((object)condition != null, "Field 'condition' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)breakLabel != null, "Field 'breakLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)continueLabel != null, "Field 'continueLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3554 3555 3556

        }

D
DotNet Bot 已提交
3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDoStatement(this);
        }

        public BoundDoStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel)
        {
            if (locals != this.Locals || condition != this.Condition || body != this.Body || breakLabel != this.BreakLabel || continueLabel != this.ContinueLabel)
            {
                var result = new BoundDoStatement(this.Syntax, locals, condition, body, breakLabel, continueLabel, this.HasErrors);
3568
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3569 3570 3571 3572 3573 3574
                return result;
            }
            return this;
        }
    }

3575
    internal sealed partial class BoundWhileStatement : BoundConditionalLoopStatement
D
DotNet Bot 已提交
3576 3577
    {
        public BoundWhileStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false)
3578
            : base(BoundKind.WhileStatement, syntax, locals, condition, body, breakLabel, continueLabel, hasErrors || condition.HasErrors() || body.HasErrors())
D
DotNet Bot 已提交
3579 3580 3581
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3582 3583 3584 3585
            Debug.Assert((object)condition != null, "Field 'condition' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)breakLabel != null, "Field 'breakLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)continueLabel != null, "Field 'continueLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitWhileStatement(this);
        }

        public BoundWhileStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel)
        {
            if (locals != this.Locals || condition != this.Condition || body != this.Body || breakLabel != this.BreakLabel || continueLabel != this.ContinueLabel)
            {
                var result = new BoundWhileStatement(this.Syntax, locals, condition, body, breakLabel, continueLabel, this.HasErrors);
3600
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundForStatement : BoundLoopStatement
    {
        public BoundForStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> outerLocals, BoundStatement initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression condition, BoundStatement increment, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false)
            : base(BoundKind.ForStatement, syntax, breakLabel, continueLabel, hasErrors || initializer.HasErrors() || condition.HasErrors() || increment.HasErrors() || body.HasErrors())
        {

            Debug.Assert(!outerLocals.IsDefault, "Field 'outerLocals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!innerLocals.IsDefault, "Field 'innerLocals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3615 3616 3617
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)breakLabel != null, "Field 'breakLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)continueLabel != null, "Field 'continueLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649

            this.OuterLocals = outerLocals;
            this.Initializer = initializer;
            this.InnerLocals = innerLocals;
            this.Condition = condition;
            this.Increment = increment;
            this.Body = body;
        }


        public ImmutableArray<LocalSymbol> OuterLocals { get; }

        public BoundStatement Initializer { get; }

        public ImmutableArray<LocalSymbol> InnerLocals { get; }

        public BoundExpression Condition { get; }

        public BoundStatement Increment { get; }

        public BoundStatement Body { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitForStatement(this);
        }

        public BoundForStatement Update(ImmutableArray<LocalSymbol> outerLocals, BoundStatement initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression condition, BoundStatement increment, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel)
        {
            if (outerLocals != this.OuterLocals || initializer != this.Initializer || innerLocals != this.InnerLocals || condition != this.Condition || increment != this.Increment || body != this.Body || breakLabel != this.BreakLabel || continueLabel != this.ContinueLabel)
            {
                var result = new BoundForStatement(this.Syntax, outerLocals, initializer, innerLocals, condition, increment, body, breakLabel, continueLabel, this.HasErrors);
3650
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3651 3652 3653 3654 3655 3656 3657 3658
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundForEachStatement : BoundLoopStatement
    {
3659
        public BoundForEachStatement(SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfoOpt, Conversion elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep deconstructionOpt, AwaitableInfo awaitOpt, BoundStatement body, bool @checked, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false)
3660
            : base(BoundKind.ForEachStatement, syntax, breakLabel, continueLabel, hasErrors || iterationVariableType.HasErrors() || iterationErrorExpressionOpt.HasErrors() || expression.HasErrors() || deconstructionOpt.HasErrors() || body.HasErrors())
D
DotNet Bot 已提交
3661 3662
        {

3663
            Debug.Assert((object)iterationVariableType != null, "Field 'iterationVariableType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3664
            Debug.Assert(!iterationVariables.IsDefault, "Field 'iterationVariables' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3665 3666 3667 3668
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)breakLabel != null, "Field 'breakLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)continueLabel != null, "Field 'continueLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3669 3670 3671 3672 3673

            this.EnumeratorInfoOpt = enumeratorInfoOpt;
            this.ElementConversion = elementConversion;
            this.IterationVariableType = iterationVariableType;
            this.IterationVariables = iterationVariables;
3674
            this.IterationErrorExpressionOpt = iterationErrorExpressionOpt;
D
DotNet Bot 已提交
3675 3676
            this.Expression = expression;
            this.DeconstructionOpt = deconstructionOpt;
3677
            this.AwaitOpt = awaitOpt;
D
DotNet Bot 已提交
3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690
            this.Body = body;
            this.Checked = @checked;
        }


        public ForEachEnumeratorInfo EnumeratorInfoOpt { get; }

        public Conversion ElementConversion { get; }

        public BoundTypeExpression IterationVariableType { get; }

        public ImmutableArray<LocalSymbol> IterationVariables { get; }

3691 3692
        public BoundExpression IterationErrorExpressionOpt { get; }

D
DotNet Bot 已提交
3693 3694 3695 3696
        public BoundExpression Expression { get; }

        public BoundForEachDeconstructStep DeconstructionOpt { get; }

3697 3698
        public AwaitableInfo AwaitOpt { get; }

D
DotNet Bot 已提交
3699 3700
        public BoundStatement Body { get; }

3701
        public bool Checked { get; }
D
DotNet Bot 已提交
3702 3703 3704 3705 3706 3707

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitForEachStatement(this);
        }

3708
        public BoundForEachStatement Update(ForEachEnumeratorInfo enumeratorInfoOpt, Conversion elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep deconstructionOpt, AwaitableInfo awaitOpt, BoundStatement body, bool @checked, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel)
D
DotNet Bot 已提交
3709
        {
3710
            if (enumeratorInfoOpt != this.EnumeratorInfoOpt || elementConversion != this.ElementConversion || iterationVariableType != this.IterationVariableType || iterationVariables != this.IterationVariables || iterationErrorExpressionOpt != this.IterationErrorExpressionOpt || expression != this.Expression || deconstructionOpt != this.DeconstructionOpt || awaitOpt != this.AwaitOpt || body != this.Body || @checked != this.Checked || breakLabel != this.BreakLabel || continueLabel != this.ContinueLabel)
D
DotNet Bot 已提交
3711
            {
3712
                var result = new BoundForEachStatement(this.Syntax, enumeratorInfoOpt, elementConversion, iterationVariableType, iterationVariables, iterationErrorExpressionOpt, expression, deconstructionOpt, awaitOpt, body, @checked, breakLabel, continueLabel, this.HasErrors);
3713
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundForEachDeconstructStep : BoundNode
    {
        public BoundForEachDeconstructStep(SyntaxNode syntax, BoundDeconstructionAssignmentOperator deconstructionAssignment, BoundDeconstructValuePlaceholder targetPlaceholder, bool hasErrors = false)
            : base(BoundKind.ForEachDeconstructStep, syntax, hasErrors || deconstructionAssignment.HasErrors() || targetPlaceholder.HasErrors())
        {

3726 3727
            Debug.Assert((object)deconstructionAssignment != null, "Field 'deconstructionAssignment' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)targetPlaceholder != null, "Field 'targetPlaceholder' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747

            this.DeconstructionAssignment = deconstructionAssignment;
            this.TargetPlaceholder = targetPlaceholder;
        }


        public BoundDeconstructionAssignmentOperator DeconstructionAssignment { get; }

        public BoundDeconstructValuePlaceholder TargetPlaceholder { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitForEachDeconstructStep(this);
        }

        public BoundForEachDeconstructStep Update(BoundDeconstructionAssignmentOperator deconstructionAssignment, BoundDeconstructValuePlaceholder targetPlaceholder)
        {
            if (deconstructionAssignment != this.DeconstructionAssignment || targetPlaceholder != this.TargetPlaceholder)
            {
                var result = new BoundForEachDeconstructStep(this.Syntax, deconstructionAssignment, targetPlaceholder, this.HasErrors);
3748
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3749 3750 3751 3752 3753 3754 3755 3756
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundUsingStatement : BoundStatement
    {
3757
        public BoundUsingStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations declarationsOpt, BoundExpression expressionOpt, Conversion iDisposableConversion, BoundStatement body, AwaitableInfo awaitOpt, MethodSymbol disposeMethodOpt, bool hasErrors = false)
D
DotNet Bot 已提交
3758 3759 3760 3761
            : base(BoundKind.UsingStatement, syntax, hasErrors || declarationsOpt.HasErrors() || expressionOpt.HasErrors() || body.HasErrors())
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3762
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3763 3764 3765 3766 3767 3768

            this.Locals = locals;
            this.DeclarationsOpt = declarationsOpt;
            this.ExpressionOpt = expressionOpt;
            this.IDisposableConversion = iDisposableConversion;
            this.Body = body;
3769
            this.AwaitOpt = awaitOpt;
L
Lauren Fay 已提交
3770
            this.DisposeMethodOpt = disposeMethodOpt;
D
DotNet Bot 已提交
3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783
        }


        public ImmutableArray<LocalSymbol> Locals { get; }

        public BoundMultipleLocalDeclarations DeclarationsOpt { get; }

        public BoundExpression ExpressionOpt { get; }

        public Conversion IDisposableConversion { get; }

        public BoundStatement Body { get; }

3784 3785
        public AwaitableInfo AwaitOpt { get; }

L
Lauren Fay 已提交
3786 3787
        public MethodSymbol DisposeMethodOpt { get; }

D
DotNet Bot 已提交
3788 3789 3790 3791 3792
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitUsingStatement(this);
        }

3793
        public BoundUsingStatement Update(ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations declarationsOpt, BoundExpression expressionOpt, Conversion iDisposableConversion, BoundStatement body, AwaitableInfo awaitOpt, MethodSymbol disposeMethodOpt)
D
DotNet Bot 已提交
3794
        {
3795
            if (locals != this.Locals || declarationsOpt != this.DeclarationsOpt || expressionOpt != this.ExpressionOpt || iDisposableConversion != this.IDisposableConversion || body != this.Body || awaitOpt != this.AwaitOpt || disposeMethodOpt != this.DisposeMethodOpt)
D
DotNet Bot 已提交
3796
            {
3797
                var result = new BoundUsingStatement(this.Syntax, locals, declarationsOpt, expressionOpt, iDisposableConversion, body, awaitOpt, disposeMethodOpt, this.HasErrors);
3798
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundFixedStatement : BoundStatement
    {
        public BoundFixedStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations declarations, BoundStatement body, bool hasErrors = false)
            : base(BoundKind.FixedStatement, syntax, hasErrors || declarations.HasErrors() || body.HasErrors())
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3812 3813
            Debug.Assert((object)declarations != null, "Field 'declarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836

            this.Locals = locals;
            this.Declarations = declarations;
            this.Body = body;
        }


        public ImmutableArray<LocalSymbol> Locals { get; }

        public BoundMultipleLocalDeclarations Declarations { get; }

        public BoundStatement Body { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitFixedStatement(this);
        }

        public BoundFixedStatement Update(ImmutableArray<LocalSymbol> locals, BoundMultipleLocalDeclarations declarations, BoundStatement body)
        {
            if (locals != this.Locals || declarations != this.Declarations || body != this.Body)
            {
                var result = new BoundFixedStatement(this.Syntax, locals, declarations, body, this.HasErrors);
3837
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundLockStatement : BoundStatement
    {
        public BoundLockStatement(SyntaxNode syntax, BoundExpression argument, BoundStatement body, bool hasErrors = false)
            : base(BoundKind.LockStatement, syntax, hasErrors || argument.HasErrors() || body.HasErrors())
        {

3850 3851
            Debug.Assert((object)argument != null, "Field 'argument' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871

            this.Argument = argument;
            this.Body = body;
        }


        public BoundExpression Argument { get; }

        public BoundStatement Body { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitLockStatement(this);
        }

        public BoundLockStatement Update(BoundExpression argument, BoundStatement body)
        {
            if (argument != this.Argument || body != this.Body)
            {
                var result = new BoundLockStatement(this.Syntax, argument, body, this.HasErrors);
3872
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3873 3874 3875 3876 3877 3878 3879 3880
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundTryStatement : BoundStatement
    {
3881
        public BoundTryStatement(SyntaxNode syntax, BoundBlock tryBlock, ImmutableArray<BoundCatchBlock> catchBlocks, BoundBlock finallyBlockOpt, LabelSymbol finallyLabelOpt, bool preferFaultHandler, bool hasErrors = false)
D
DotNet Bot 已提交
3882 3883 3884
            : base(BoundKind.TryStatement, syntax, hasErrors || tryBlock.HasErrors() || catchBlocks.HasErrors() || finallyBlockOpt.HasErrors())
        {

3885
            Debug.Assert((object)tryBlock != null, "Field 'tryBlock' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3886 3887 3888 3889 3890
            Debug.Assert(!catchBlocks.IsDefault, "Field 'catchBlocks' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.TryBlock = tryBlock;
            this.CatchBlocks = catchBlocks;
            this.FinallyBlockOpt = finallyBlockOpt;
3891
            this.FinallyLabelOpt = finallyLabelOpt;
D
DotNet Bot 已提交
3892 3893 3894 3895 3896 3897 3898 3899 3900 3901
            this.PreferFaultHandler = preferFaultHandler;
        }


        public BoundBlock TryBlock { get; }

        public ImmutableArray<BoundCatchBlock> CatchBlocks { get; }

        public BoundBlock FinallyBlockOpt { get; }

3902 3903
        public LabelSymbol FinallyLabelOpt { get; }

3904
        public bool PreferFaultHandler { get; }
D
DotNet Bot 已提交
3905 3906 3907 3908 3909 3910

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitTryStatement(this);
        }

3911
        public BoundTryStatement Update(BoundBlock tryBlock, ImmutableArray<BoundCatchBlock> catchBlocks, BoundBlock finallyBlockOpt, LabelSymbol finallyLabelOpt, bool preferFaultHandler)
D
DotNet Bot 已提交
3912
        {
3913
            if (tryBlock != this.TryBlock || catchBlocks != this.CatchBlocks || finallyBlockOpt != this.FinallyBlockOpt || finallyLabelOpt != this.FinallyLabelOpt || preferFaultHandler != this.PreferFaultHandler)
D
DotNet Bot 已提交
3914
            {
3915
                var result = new BoundTryStatement(this.Syntax, tryBlock, catchBlocks, finallyBlockOpt, finallyLabelOpt, preferFaultHandler, this.HasErrors);
3916
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundCatchBlock : BoundNode
    {
        public BoundCatchBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression exceptionSourceOpt, TypeSymbol exceptionTypeOpt, BoundExpression exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll, bool hasErrors = false)
            : base(BoundKind.CatchBlock, syntax, hasErrors || exceptionSourceOpt.HasErrors() || exceptionFilterOpt.HasErrors() || body.HasErrors())
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
3930
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959

            this.Locals = locals;
            this.ExceptionSourceOpt = exceptionSourceOpt;
            this.ExceptionTypeOpt = exceptionTypeOpt;
            this.ExceptionFilterOpt = exceptionFilterOpt;
            this.Body = body;
            this.IsSynthesizedAsyncCatchAll = isSynthesizedAsyncCatchAll;
        }


        public ImmutableArray<LocalSymbol> Locals { get; }

        public BoundExpression ExceptionSourceOpt { get; }

        public TypeSymbol ExceptionTypeOpt { get; }

        public BoundExpression ExceptionFilterOpt { get; }

        public BoundBlock Body { get; }

        public bool IsSynthesizedAsyncCatchAll { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitCatchBlock(this);
        }

        public BoundCatchBlock Update(ImmutableArray<LocalSymbol> locals, BoundExpression exceptionSourceOpt, TypeSymbol exceptionTypeOpt, BoundExpression exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll)
        {
3960
            if (locals != this.Locals || exceptionSourceOpt != this.ExceptionSourceOpt || !TypeSymbol.Equals(exceptionTypeOpt, this.ExceptionTypeOpt, TypeCompareKind.ConsiderEverything) || exceptionFilterOpt != this.ExceptionFilterOpt || body != this.Body || isSynthesizedAsyncCatchAll != this.IsSynthesizedAsyncCatchAll)
D
DotNet Bot 已提交
3961 3962
            {
                var result = new BoundCatchBlock(this.Syntax, locals, exceptionSourceOpt, exceptionTypeOpt, exceptionFilterOpt, body, isSynthesizedAsyncCatchAll, this.HasErrors);
3963
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundLiteral : BoundExpression
    {
        public BoundLiteral(SyntaxNode syntax, ConstantValue constantValueOpt, TypeSymbol type, bool hasErrors)
            : base(BoundKind.Literal, syntax, type, hasErrors)
        {
            this.ConstantValueOpt = constantValueOpt;
        }

        public BoundLiteral(SyntaxNode syntax, ConstantValue constantValueOpt, TypeSymbol type)
            : base(BoundKind.Literal, syntax, type)
        {
            this.ConstantValueOpt = constantValueOpt;
        }


        public ConstantValue ConstantValueOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitLiteral(this);
        }

        public BoundLiteral Update(ConstantValue constantValueOpt, TypeSymbol type)
        {
3994
            if (constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
3995 3996
            {
                var result = new BoundLiteral(this.Syntax, constantValueOpt, type, this.HasErrors);
3997
                result.CopyAttributes(this);
D
DotNet Bot 已提交
3998 3999 4000 4001
                return result;
            }
            return this;
        }
4002 4003 4004 4005 4006 4007 4008

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundLiteral(this.Syntax, this.ConstantValueOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4009 4010 4011 4012 4013 4014 4015 4016
    }

    internal sealed partial class BoundThisReference : BoundExpression
    {
        public BoundThisReference(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.ThisReference, syntax, type, hasErrors)
        {

4017
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4018 4019 4020 4021 4022 4023 4024

        }

        public BoundThisReference(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.ThisReference, syntax, type)
        {

4025
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitThisReference(this);
        }

        public BoundThisReference Update(TypeSymbol type)
        {
4037
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4038 4039
            {
                var result = new BoundThisReference(this.Syntax, type, this.HasErrors);
4040
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4041 4042 4043 4044
                return result;
            }
            return this;
        }
4045 4046 4047 4048 4049 4050 4051

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundThisReference(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4052 4053 4054 4055 4056 4057 4058 4059
    }

    internal sealed partial class BoundPreviousSubmissionReference : BoundExpression
    {
        public BoundPreviousSubmissionReference(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.PreviousSubmissionReference, syntax, type, hasErrors)
        {

4060
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4061 4062 4063 4064 4065 4066 4067

        }

        public BoundPreviousSubmissionReference(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.PreviousSubmissionReference, syntax, type)
        {

4068
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitPreviousSubmissionReference(this);
        }

        public BoundPreviousSubmissionReference Update(TypeSymbol type)
        {
4080
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4081 4082
            {
                var result = new BoundPreviousSubmissionReference(this.Syntax, type, this.HasErrors);
4083
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4084 4085 4086 4087
                return result;
            }
            return this;
        }
4088 4089 4090 4091 4092 4093 4094

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundPreviousSubmissionReference(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4095 4096 4097 4098 4099 4100 4101 4102
    }

    internal sealed partial class BoundHostObjectMemberReference : BoundExpression
    {
        public BoundHostObjectMemberReference(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.HostObjectMemberReference, syntax, type, hasErrors)
        {

4103
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4104 4105 4106 4107 4108 4109 4110

        }

        public BoundHostObjectMemberReference(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.HostObjectMemberReference, syntax, type)
        {

4111
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitHostObjectMemberReference(this);
        }

        public BoundHostObjectMemberReference Update(TypeSymbol type)
        {
4123
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4124 4125
            {
                var result = new BoundHostObjectMemberReference(this.Syntax, type, this.HasErrors);
4126
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4127 4128 4129 4130
                return result;
            }
            return this;
        }
4131 4132 4133 4134 4135 4136 4137

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundHostObjectMemberReference(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159
    }

    internal sealed partial class BoundBaseReference : BoundExpression
    {
        public BoundBaseReference(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.BaseReference, syntax, type, hasErrors)
        {
        }

        public BoundBaseReference(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.BaseReference, syntax, type)
        {
        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitBaseReference(this);
        }

        public BoundBaseReference Update(TypeSymbol type)
        {
4160
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4161 4162
            {
                var result = new BoundBaseReference(this.Syntax, type, this.HasErrors);
4163
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4164 4165 4166 4167
                return result;
            }
            return this;
        }
4168 4169 4170 4171 4172 4173 4174

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundBaseReference(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4175 4176 4177 4178
    }

    internal sealed partial class BoundLocal : BoundExpression
    {
4179
        public BoundLocal(SyntaxNode syntax, LocalSymbol localSymbol, BoundLocalDeclarationKind declarationKind, ConstantValue constantValueOpt, bool isNullableUnknown, TypeSymbol type, bool hasErrors)
D
DotNet Bot 已提交
4180 4181 4182
            : base(BoundKind.Local, syntax, type, hasErrors)
        {

4183 4184
            Debug.Assert((object)localSymbol != null, "Field 'localSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4185 4186

            this.LocalSymbol = localSymbol;
4187
            this.DeclarationKind = declarationKind;
D
DotNet Bot 已提交
4188
            this.ConstantValueOpt = constantValueOpt;
4189
            this.IsNullableUnknown = isNullableUnknown;
D
DotNet Bot 已提交
4190 4191
        }

4192
        public BoundLocal(SyntaxNode syntax, LocalSymbol localSymbol, BoundLocalDeclarationKind declarationKind, ConstantValue constantValueOpt, bool isNullableUnknown, TypeSymbol type)
D
DotNet Bot 已提交
4193 4194 4195
            : base(BoundKind.Local, syntax, type)
        {

4196 4197
            Debug.Assert((object)localSymbol != null, "Field 'localSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4198 4199

            this.LocalSymbol = localSymbol;
4200
            this.DeclarationKind = declarationKind;
D
DotNet Bot 已提交
4201
            this.ConstantValueOpt = constantValueOpt;
4202
            this.IsNullableUnknown = isNullableUnknown;
D
DotNet Bot 已提交
4203 4204 4205 4206 4207
        }


        public LocalSymbol LocalSymbol { get; }

4208
        public BoundLocalDeclarationKind DeclarationKind { get; }
D
DotNet Bot 已提交
4209 4210 4211

        public ConstantValue ConstantValueOpt { get; }

4212 4213
        public bool IsNullableUnknown { get; }

D
DotNet Bot 已提交
4214 4215 4216 4217 4218
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitLocal(this);
        }

4219
        public BoundLocal Update(LocalSymbol localSymbol, BoundLocalDeclarationKind declarationKind, ConstantValue constantValueOpt, bool isNullableUnknown, TypeSymbol type)
D
DotNet Bot 已提交
4220
        {
4221
            if (localSymbol != this.LocalSymbol || declarationKind != this.DeclarationKind || constantValueOpt != this.ConstantValueOpt || isNullableUnknown != this.IsNullableUnknown || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4222
            {
4223
                var result = new BoundLocal(this.Syntax, localSymbol, declarationKind, constantValueOpt, isNullableUnknown, type, this.HasErrors);
4224
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4225 4226 4227 4228
                return result;
            }
            return this;
        }
4229 4230 4231 4232 4233 4234 4235

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundLocal(this.Syntax, this.LocalSymbol, this.DeclarationKind, this.ConstantValueOpt, this.IsNullableUnknown, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4236 4237 4238 4239 4240 4241 4242 4243
    }

    internal sealed partial class BoundPseudoVariable : BoundExpression
    {
        public BoundPseudoVariable(SyntaxNode syntax, LocalSymbol localSymbol, PseudoVariableExpressions emitExpressions, TypeSymbol type, bool hasErrors)
            : base(BoundKind.PseudoVariable, syntax, type, hasErrors)
        {

4244 4245 4246
            Debug.Assert((object)localSymbol != null, "Field 'localSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)emitExpressions != null, "Field 'emitExpressions' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4247 4248 4249 4250 4251 4252 4253 4254 4255

            this.LocalSymbol = localSymbol;
            this.EmitExpressions = emitExpressions;
        }

        public BoundPseudoVariable(SyntaxNode syntax, LocalSymbol localSymbol, PseudoVariableExpressions emitExpressions, TypeSymbol type)
            : base(BoundKind.PseudoVariable, syntax, type)
        {

4256 4257 4258
            Debug.Assert((object)localSymbol != null, "Field 'localSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)emitExpressions != null, "Field 'emitExpressions' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275

            this.LocalSymbol = localSymbol;
            this.EmitExpressions = emitExpressions;
        }


        public LocalSymbol LocalSymbol { get; }

        public PseudoVariableExpressions EmitExpressions { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitPseudoVariable(this);
        }

        public BoundPseudoVariable Update(LocalSymbol localSymbol, PseudoVariableExpressions emitExpressions, TypeSymbol type)
        {
4276
            if (localSymbol != this.LocalSymbol || emitExpressions != this.EmitExpressions || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4277 4278
            {
                var result = new BoundPseudoVariable(this.Syntax, localSymbol, emitExpressions, type, this.HasErrors);
4279
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4280 4281 4282 4283
                return result;
            }
            return this;
        }
4284 4285 4286 4287 4288 4289 4290

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundPseudoVariable(this.Syntax, this.LocalSymbol, this.EmitExpressions, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4291 4292 4293 4294 4295 4296 4297 4298
    }

    internal sealed partial class BoundRangeVariable : BoundExpression
    {
        public BoundRangeVariable(SyntaxNode syntax, RangeVariableSymbol rangeVariableSymbol, BoundExpression value, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.RangeVariable, syntax, type, hasErrors || value.HasErrors())
        {

4299 4300 4301
            Debug.Assert((object)rangeVariableSymbol != null, "Field 'rangeVariableSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318

            this.RangeVariableSymbol = rangeVariableSymbol;
            this.Value = value;
        }


        public RangeVariableSymbol RangeVariableSymbol { get; }

        public BoundExpression Value { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitRangeVariable(this);
        }

        public BoundRangeVariable Update(RangeVariableSymbol rangeVariableSymbol, BoundExpression value, TypeSymbol type)
        {
4319
            if (rangeVariableSymbol != this.RangeVariableSymbol || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4320 4321
            {
                var result = new BoundRangeVariable(this.Syntax, rangeVariableSymbol, value, type, this.HasErrors);
4322
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4323 4324 4325 4326
                return result;
            }
            return this;
        }
4327 4328 4329 4330 4331 4332 4333

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundRangeVariable(this.Syntax, this.RangeVariableSymbol, this.Value, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4334 4335 4336 4337 4338 4339 4340 4341
    }

    internal sealed partial class BoundParameter : BoundExpression
    {
        public BoundParameter(SyntaxNode syntax, ParameterSymbol parameterSymbol, TypeSymbol type, bool hasErrors)
            : base(BoundKind.Parameter, syntax, type, hasErrors)
        {

4342 4343
            Debug.Assert((object)parameterSymbol != null, "Field 'parameterSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4344 4345 4346 4347 4348 4349 4350 4351

            this.ParameterSymbol = parameterSymbol;
        }

        public BoundParameter(SyntaxNode syntax, ParameterSymbol parameterSymbol, TypeSymbol type)
            : base(BoundKind.Parameter, syntax, type)
        {

4352 4353
            Debug.Assert((object)parameterSymbol != null, "Field 'parameterSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367

            this.ParameterSymbol = parameterSymbol;
        }


        public ParameterSymbol ParameterSymbol { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitParameter(this);
        }

        public BoundParameter Update(ParameterSymbol parameterSymbol, TypeSymbol type)
        {
4368
            if (parameterSymbol != this.ParameterSymbol || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4369 4370
            {
                var result = new BoundParameter(this.Syntax, parameterSymbol, type, this.HasErrors);
4371
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4372 4373 4374 4375
                return result;
            }
            return this;
        }
4376 4377 4378 4379 4380 4381 4382

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundParameter(this.Syntax, this.ParameterSymbol, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4383 4384 4385 4386 4387 4388 4389 4390
    }

    internal sealed partial class BoundLabelStatement : BoundStatement
    {
        public BoundLabelStatement(SyntaxNode syntax, LabelSymbol label, bool hasErrors)
            : base(BoundKind.LabelStatement, syntax, hasErrors)
        {

4391
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4392 4393 4394 4395 4396 4397 4398 4399

            this.Label = label;
        }

        public BoundLabelStatement(SyntaxNode syntax, LabelSymbol label)
            : base(BoundKind.LabelStatement, syntax)
        {

4400
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417

            this.Label = label;
        }


        public LabelSymbol Label { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitLabelStatement(this);
        }

        public BoundLabelStatement Update(LabelSymbol label)
        {
            if (label != this.Label)
            {
                var result = new BoundLabelStatement(this.Syntax, label, this.HasErrors);
4418
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundGotoStatement : BoundStatement
    {
        public BoundGotoStatement(SyntaxNode syntax, LabelSymbol label, BoundExpression caseExpressionOpt, BoundLabel labelExpressionOpt, bool hasErrors = false)
            : base(BoundKind.GotoStatement, syntax, hasErrors || caseExpressionOpt.HasErrors() || labelExpressionOpt.HasErrors())
        {

4431
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446

            this.Label = label;
            this.CaseExpressionOpt = caseExpressionOpt;
            this.LabelExpressionOpt = labelExpressionOpt;
        }


        public LabelSymbol Label { get; }

        public BoundExpression CaseExpressionOpt { get; }

        public BoundLabel LabelExpressionOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4447 4448
            return visitor.VisitGotoStatement(this);
        }
D
DotNet Bot 已提交
4449

4450 4451 4452 4453 4454
        public BoundGotoStatement Update(LabelSymbol label, BoundExpression caseExpressionOpt, BoundLabel labelExpressionOpt)
        {
            if (label != this.Label || caseExpressionOpt != this.CaseExpressionOpt || labelExpressionOpt != this.LabelExpressionOpt)
            {
                var result = new BoundGotoStatement(this.Syntax, label, caseExpressionOpt, labelExpressionOpt, this.HasErrors);
4455
                result.CopyAttributes(this);
4456 4457 4458 4459
                return result;
            }
            return this;
        }
D
DotNet Bot 已提交
4460 4461
    }

4462
    internal sealed partial class BoundLabeledStatement : BoundStatement
D
DotNet Bot 已提交
4463
    {
4464 4465
        public BoundLabeledStatement(SyntaxNode syntax, LabelSymbol label, BoundStatement body, bool hasErrors = false)
            : base(BoundKind.LabeledStatement, syntax, hasErrors || body.HasErrors())
D
DotNet Bot 已提交
4466 4467
        {

4468 4469
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4470

4471
            this.Label = label;
D
DotNet Bot 已提交
4472 4473 4474 4475
            this.Body = body;
        }


4476
        public LabelSymbol Label { get; }
D
DotNet Bot 已提交
4477 4478 4479 4480 4481

        public BoundStatement Body { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4482
            return visitor.VisitLabeledStatement(this);
D
DotNet Bot 已提交
4483 4484
        }

4485
        public BoundLabeledStatement Update(LabelSymbol label, BoundStatement body)
D
DotNet Bot 已提交
4486
        {
4487
            if (label != this.Label || body != this.Body)
D
DotNet Bot 已提交
4488
            {
4489
                var result = new BoundLabeledStatement(this.Syntax, label, body, this.HasErrors);
4490
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4491 4492 4493 4494 4495 4496
                return result;
            }
            return this;
        }
    }

4497
    internal sealed partial class BoundLabel : BoundExpression
D
DotNet Bot 已提交
4498
    {
4499 4500
        public BoundLabel(SyntaxNode syntax, LabelSymbol label, TypeSymbol type, bool hasErrors)
            : base(BoundKind.Label, syntax, type, hasErrors)
D
DotNet Bot 已提交
4501 4502
        {

4503
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4504

4505
            this.Label = label;
D
DotNet Bot 已提交
4506 4507
        }

4508 4509 4510
        public BoundLabel(SyntaxNode syntax, LabelSymbol label, TypeSymbol type)
            : base(BoundKind.Label, syntax, type)
        {
D
DotNet Bot 已提交
4511

4512
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4513

4514 4515
            this.Label = label;
        }
D
DotNet Bot 已提交
4516

4517 4518

        public LabelSymbol Label { get; }
D
DotNet Bot 已提交
4519 4520 4521

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4522
            return visitor.VisitLabel(this);
D
DotNet Bot 已提交
4523 4524
        }

4525
        public BoundLabel Update(LabelSymbol label, TypeSymbol type)
D
DotNet Bot 已提交
4526
        {
4527
            if (label != this.Label || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4528
            {
4529
                var result = new BoundLabel(this.Syntax, label, type, this.HasErrors);
4530
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4531 4532 4533 4534
                return result;
            }
            return this;
        }
4535 4536 4537 4538 4539 4540 4541

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundLabel(this.Syntax, this.Label, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4542 4543
    }

4544
    internal partial class BoundStatementList : BoundStatement
D
DotNet Bot 已提交
4545
    {
4546 4547
        protected BoundStatementList(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundStatement> statements, bool hasErrors = false)
            : base(kind, syntax, hasErrors)
D
DotNet Bot 已提交
4548 4549
        {

4550
            Debug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4551

4552
            this.Statements = statements;
D
DotNet Bot 已提交
4553 4554
        }

4555 4556 4557
        public BoundStatementList(SyntaxNode syntax, ImmutableArray<BoundStatement> statements, bool hasErrors = false)
            : base(BoundKind.StatementList, syntax, hasErrors || statements.HasErrors())
        {
D
DotNet Bot 已提交
4558

4559
            Debug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4560

4561 4562
            this.Statements = statements;
        }
D
DotNet Bot 已提交
4563 4564


4565
        public ImmutableArray<BoundStatement> Statements { get; }
D
DotNet Bot 已提交
4566 4567 4568

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4569
            return visitor.VisitStatementList(this);
D
DotNet Bot 已提交
4570 4571
        }

4572
        public BoundStatementList Update(ImmutableArray<BoundStatement> statements)
D
DotNet Bot 已提交
4573
        {
4574
            if (statements != this.Statements)
D
DotNet Bot 已提交
4575
            {
4576
                var result = new BoundStatementList(this.Syntax, statements, this.HasErrors);
4577
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4578 4579 4580 4581 4582 4583
                return result;
            }
            return this;
        }
    }

4584
    internal sealed partial class BoundConditionalGoto : BoundStatement
D
DotNet Bot 已提交
4585
    {
4586 4587
        public BoundConditionalGoto(SyntaxNode syntax, BoundExpression condition, bool jumpIfTrue, LabelSymbol label, bool hasErrors = false)
            : base(BoundKind.ConditionalGoto, syntax, hasErrors || condition.HasErrors())
D
DotNet Bot 已提交
4588 4589
        {

4590 4591
            Debug.Assert((object)condition != null, "Field 'condition' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4592

4593 4594 4595 4596
            this.Condition = condition;
            this.JumpIfTrue = jumpIfTrue;
            this.Label = label;
        }
4597

D
DotNet Bot 已提交
4598

4599
        public BoundExpression Condition { get; }
D
DotNet Bot 已提交
4600

4601
        public bool JumpIfTrue { get; }
D
DotNet Bot 已提交
4602

4603
        public LabelSymbol Label { get; }
D
DotNet Bot 已提交
4604 4605 4606

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4607
            return visitor.VisitConditionalGoto(this);
D
DotNet Bot 已提交
4608 4609
        }

4610
        public BoundConditionalGoto Update(BoundExpression condition, bool jumpIfTrue, LabelSymbol label)
D
DotNet Bot 已提交
4611
        {
4612
            if (condition != this.Condition || jumpIfTrue != this.JumpIfTrue || label != this.Label)
D
DotNet Bot 已提交
4613
            {
4614
                var result = new BoundConditionalGoto(this.Syntax, condition, jumpIfTrue, label, this.HasErrors);
4615
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4616 4617 4618 4619 4620 4621
                return result;
            }
            return this;
        }
    }

4622
    internal sealed partial class BoundSwitchExpression : BoundExpression
D
DotNet Bot 已提交
4623
    {
4624
        public BoundSwitchExpression(SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag decisionDag, LabelSymbol defaultLabel, bool reportedNotExhaustive, TypeSymbol type, bool hasErrors = false)
4625
            : base(BoundKind.SwitchExpression, syntax, type, hasErrors || expression.HasErrors() || switchArms.HasErrors() || decisionDag.HasErrors())
D
DotNet Bot 已提交
4626 4627
        {

4628
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
4629
            Debug.Assert(!switchArms.IsDefault, "Field 'switchArms' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
4630
            Debug.Assert((object)decisionDag != null, "Field 'decisionDag' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4631

4632 4633
            this.Expression = expression;
            this.SwitchArms = switchArms;
4634
            this.DecisionDag = decisionDag;
4635
            this.DefaultLabel = defaultLabel;
4636
            this.ReportedNotExhaustive = reportedNotExhaustive;
D
DotNet Bot 已提交
4637 4638 4639
        }


4640
        public BoundExpression Expression { get; }
D
DotNet Bot 已提交
4641

4642 4643
        public ImmutableArray<BoundSwitchExpressionArm> SwitchArms { get; }

4644 4645
        public BoundDecisionDag DecisionDag { get; }

4646
        public LabelSymbol DefaultLabel { get; }
D
DotNet Bot 已提交
4647

4648 4649
        public bool ReportedNotExhaustive { get; }

D
DotNet Bot 已提交
4650 4651
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4652
            return visitor.VisitSwitchExpression(this);
D
DotNet Bot 已提交
4653 4654
        }

4655
        public BoundSwitchExpression Update(BoundExpression expression, ImmutableArray<BoundSwitchExpressionArm> switchArms, BoundDecisionDag decisionDag, LabelSymbol defaultLabel, bool reportedNotExhaustive, TypeSymbol type)
D
DotNet Bot 已提交
4656
        {
4657
            if (expression != this.Expression || switchArms != this.SwitchArms || decisionDag != this.DecisionDag || defaultLabel != this.DefaultLabel || reportedNotExhaustive != this.ReportedNotExhaustive || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
4658
            {
4659
                var result = new BoundSwitchExpression(this.Syntax, expression, switchArms, decisionDag, defaultLabel, reportedNotExhaustive, type, this.HasErrors);
4660
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4661 4662 4663 4664
                return result;
            }
            return this;
        }
4665 4666 4667 4668 4669 4670 4671

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundSwitchExpression(this.Syntax, this.Expression, this.SwitchArms, this.DecisionDag, this.DefaultLabel, this.ReportedNotExhaustive, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
4672 4673
    }

4674
    internal sealed partial class BoundSwitchExpressionArm : BoundNode
D
DotNet Bot 已提交
4675
    {
4676 4677
        public BoundSwitchExpressionArm(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundPattern pattern, BoundExpression whenClause, BoundExpression value, LabelSymbol label, bool hasErrors = false)
            : base(BoundKind.SwitchExpressionArm, syntax, hasErrors || pattern.HasErrors() || whenClause.HasErrors() || value.HasErrors())
D
DotNet Bot 已提交
4678 4679 4680
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
4681 4682 4683
            Debug.Assert((object)pattern != null, "Field 'pattern' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4684 4685

            this.Locals = locals;
4686 4687 4688 4689
            this.Pattern = pattern;
            this.WhenClause = whenClause;
            this.Value = value;
            this.Label = label;
D
DotNet Bot 已提交
4690 4691 4692 4693 4694
        }


        public ImmutableArray<LocalSymbol> Locals { get; }

4695
        public BoundPattern Pattern { get; }
D
DotNet Bot 已提交
4696

4697
        public BoundExpression WhenClause { get; }
D
DotNet Bot 已提交
4698

4699
        public BoundExpression Value { get; }
D
DotNet Bot 已提交
4700

4701
        public LabelSymbol Label { get; }
D
DotNet Bot 已提交
4702 4703 4704

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4705
            return visitor.VisitSwitchExpressionArm(this);
D
DotNet Bot 已提交
4706 4707
        }

4708
        public BoundSwitchExpressionArm Update(ImmutableArray<LocalSymbol> locals, BoundPattern pattern, BoundExpression whenClause, BoundExpression value, LabelSymbol label)
D
DotNet Bot 已提交
4709
        {
4710
            if (locals != this.Locals || pattern != this.Pattern || whenClause != this.WhenClause || value != this.Value || label != this.Label)
D
DotNet Bot 已提交
4711
            {
4712
                var result = new BoundSwitchExpressionArm(this.Syntax, locals, pattern, whenClause, value, label, this.HasErrors);
4713
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4714 4715 4716 4717 4718 4719
                return result;
            }
            return this;
        }
    }

4720
    internal sealed partial class BoundDecisionDag : BoundNode
D
DotNet Bot 已提交
4721
    {
4722 4723
        public BoundDecisionDag(SyntaxNode syntax, BoundDecisionDagNode rootNode, bool hasErrors)
            : base(BoundKind.DecisionDag, syntax, hasErrors)
D
DotNet Bot 已提交
4724 4725
        {

4726
            Debug.Assert((object)rootNode != null, "Field 'rootNode' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4727

4728
            this.RootNode = rootNode;
D
DotNet Bot 已提交
4729 4730
        }

4731 4732 4733
        public BoundDecisionDag(SyntaxNode syntax, BoundDecisionDagNode rootNode)
            : base(BoundKind.DecisionDag, syntax)
        {
D
DotNet Bot 已提交
4734

4735
            Debug.Assert((object)rootNode != null, "Field 'rootNode' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4736

4737 4738
            this.RootNode = rootNode;
        }
D
DotNet Bot 已提交
4739

4740 4741

        public BoundDecisionDagNode RootNode { get; }
D
DotNet Bot 已提交
4742 4743 4744

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4745
            return visitor.VisitDecisionDag(this);
D
DotNet Bot 已提交
4746 4747
        }

4748
        public BoundDecisionDag Update(BoundDecisionDagNode rootNode)
D
DotNet Bot 已提交
4749
        {
4750
            if (rootNode != this.RootNode)
D
DotNet Bot 已提交
4751
            {
4752
                var result = new BoundDecisionDag(this.Syntax, rootNode, this.HasErrors);
4753
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4754 4755 4756 4757 4758 4759
                return result;
            }
            return this;
        }
    }

4760
    internal abstract partial class BoundDecisionDagNode  : BoundNode
D
DotNet Bot 已提交
4761
    {
4762 4763
        protected BoundDecisionDagNode (BoundKind kind, SyntaxNode syntax, bool hasErrors)
            : base(kind, syntax, hasErrors)
D
DotNet Bot 已提交
4764
        {
4765
        }
D
DotNet Bot 已提交
4766

4767 4768 4769 4770
        protected BoundDecisionDagNode (BoundKind kind, SyntaxNode syntax)
            : base(kind, syntax)
        {
        }
D
DotNet Bot 已提交
4771

4772 4773 4774 4775 4776 4777 4778 4779
    }

    internal sealed partial class BoundEvaluationDecisionDagNode : BoundDecisionDagNode 
    {
        public BoundEvaluationDecisionDagNode(SyntaxNode syntax, BoundDagEvaluation evaluation, BoundDecisionDagNode  next, bool hasErrors = false)
            : base(BoundKind.EvaluationDecisionDagNode, syntax, hasErrors || evaluation.HasErrors() || next.HasErrors())
        {

4780 4781
            Debug.Assert((object)evaluation != null, "Field 'evaluation' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)next != null, "Field 'next' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
4782 4783 4784

            this.Evaluation = evaluation;
            this.Next = next;
D
DotNet Bot 已提交
4785 4786 4787
        }


4788
        public BoundDagEvaluation Evaluation { get; }
D
DotNet Bot 已提交
4789

4790
        public BoundDecisionDagNode  Next { get; }
D
DotNet Bot 已提交
4791 4792 4793

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4794
            return visitor.VisitEvaluationDecisionDagNode(this);
D
DotNet Bot 已提交
4795 4796
        }

4797
        public BoundEvaluationDecisionDagNode Update(BoundDagEvaluation evaluation, BoundDecisionDagNode  next)
D
DotNet Bot 已提交
4798
        {
4799
            if (evaluation != this.Evaluation || next != this.Next)
D
DotNet Bot 已提交
4800
            {
4801
                var result = new BoundEvaluationDecisionDagNode(this.Syntax, evaluation, next, this.HasErrors);
4802
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4803 4804 4805 4806 4807 4808
                return result;
            }
            return this;
        }
    }

4809
    internal sealed partial class BoundTestDecisionDagNode : BoundDecisionDagNode 
D
DotNet Bot 已提交
4810
    {
4811 4812
        public BoundTestDecisionDagNode(SyntaxNode syntax, BoundDagTest test, BoundDecisionDagNode  whenTrue, BoundDecisionDagNode  whenFalse, bool hasErrors = false)
            : base(BoundKind.TestDecisionDagNode, syntax, hasErrors || test.HasErrors() || whenTrue.HasErrors() || whenFalse.HasErrors())
D
DotNet Bot 已提交
4813 4814
        {

4815 4816 4817
            Debug.Assert((object)test != null, "Field 'test' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)whenTrue != null, "Field 'whenTrue' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)whenFalse != null, "Field 'whenFalse' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4818

4819 4820 4821
            this.Test = test;
            this.WhenTrue = whenTrue;
            this.WhenFalse = whenFalse;
D
DotNet Bot 已提交
4822 4823 4824
        }


4825
        public BoundDagTest Test { get; }
D
DotNet Bot 已提交
4826

4827
        public BoundDecisionDagNode  WhenTrue { get; }
D
DotNet Bot 已提交
4828

4829
        public BoundDecisionDagNode  WhenFalse { get; }
D
DotNet Bot 已提交
4830 4831 4832

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4833
            return visitor.VisitTestDecisionDagNode(this);
D
DotNet Bot 已提交
4834 4835
        }

4836
        public BoundTestDecisionDagNode Update(BoundDagTest test, BoundDecisionDagNode  whenTrue, BoundDecisionDagNode  whenFalse)
D
DotNet Bot 已提交
4837
        {
4838
            if (test != this.Test || whenTrue != this.WhenTrue || whenFalse != this.WhenFalse)
D
DotNet Bot 已提交
4839
            {
4840
                var result = new BoundTestDecisionDagNode(this.Syntax, test, whenTrue, whenFalse, this.HasErrors);
4841
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4842 4843 4844 4845 4846 4847
                return result;
            }
            return this;
        }
    }

4848
    internal sealed partial class BoundWhenDecisionDagNode : BoundDecisionDagNode 
D
DotNet Bot 已提交
4849
    {
4850
        public BoundWhenDecisionDagNode(SyntaxNode syntax, ImmutableArray<BoundPatternBinding> bindings, BoundExpression whenExpression, BoundDecisionDagNode  whenTrue, BoundDecisionDagNode  whenFalse, bool hasErrors = false)
4851
            : base(BoundKind.WhenDecisionDagNode, syntax, hasErrors || whenExpression.HasErrors() || whenTrue.HasErrors() || whenFalse.HasErrors())
D
DotNet Bot 已提交
4852 4853
        {

4854
            Debug.Assert(!bindings.IsDefault, "Field 'bindings' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
4855
            Debug.Assert((object)whenTrue != null, "Field 'whenTrue' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4856

4857 4858 4859 4860
            this.Bindings = bindings;
            this.WhenExpression = whenExpression;
            this.WhenTrue = whenTrue;
            this.WhenFalse = whenFalse;
D
DotNet Bot 已提交
4861 4862 4863
        }


4864
        public ImmutableArray<BoundPatternBinding> Bindings { get; }
D
DotNet Bot 已提交
4865

4866
        public BoundExpression WhenExpression { get; }
D
DotNet Bot 已提交
4867

4868
        public BoundDecisionDagNode  WhenTrue { get; }
D
DotNet Bot 已提交
4869

4870
        public BoundDecisionDagNode  WhenFalse { get; }
D
DotNet Bot 已提交
4871 4872 4873

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4874
            return visitor.VisitWhenDecisionDagNode(this);
D
DotNet Bot 已提交
4875 4876
        }

4877
        public BoundWhenDecisionDagNode Update(ImmutableArray<BoundPatternBinding> bindings, BoundExpression whenExpression, BoundDecisionDagNode  whenTrue, BoundDecisionDagNode  whenFalse)
D
DotNet Bot 已提交
4878
        {
4879
            if (bindings != this.Bindings || whenExpression != this.WhenExpression || whenTrue != this.WhenTrue || whenFalse != this.WhenFalse)
D
DotNet Bot 已提交
4880
            {
4881
                var result = new BoundWhenDecisionDagNode(this.Syntax, bindings, whenExpression, whenTrue, whenFalse, this.HasErrors);
4882
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4883 4884 4885 4886 4887 4888
                return result;
            }
            return this;
        }
    }

4889
    internal sealed partial class BoundLeafDecisionDagNode : BoundDecisionDagNode 
D
DotNet Bot 已提交
4890
    {
4891 4892
        public BoundLeafDecisionDagNode(SyntaxNode syntax, LabelSymbol label, bool hasErrors)
            : base(BoundKind.LeafDecisionDagNode, syntax, hasErrors)
D
DotNet Bot 已提交
4893
        {
4894

4895
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
4896 4897

            this.Label = label;
D
DotNet Bot 已提交
4898 4899
        }

4900 4901
        public BoundLeafDecisionDagNode(SyntaxNode syntax, LabelSymbol label)
            : base(BoundKind.LeafDecisionDagNode, syntax)
D
DotNet Bot 已提交
4902
        {
4903

4904
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
4905 4906

            this.Label = label;
D
DotNet Bot 已提交
4907 4908 4909
        }


4910
        public LabelSymbol Label { get; }
D
DotNet Bot 已提交
4911 4912 4913

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4914
            return visitor.VisitLeafDecisionDagNode(this);
D
DotNet Bot 已提交
4915 4916
        }

4917
        public BoundLeafDecisionDagNode Update(LabelSymbol label)
D
DotNet Bot 已提交
4918
        {
4919
            if (label != this.Label)
D
DotNet Bot 已提交
4920
            {
4921
                var result = new BoundLeafDecisionDagNode(this.Syntax, label, this.HasErrors);
4922
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4923 4924 4925 4926 4927 4928
                return result;
            }
            return this;
        }
    }

4929
    internal abstract partial class BoundDagTest : BoundNode
D
DotNet Bot 已提交
4930
    {
4931 4932
        protected BoundDagTest(BoundKind kind, SyntaxNode syntax, BoundDagTemp input, bool hasErrors = false)
            : base(kind, syntax, hasErrors)
D
DotNet Bot 已提交
4933 4934
        {

4935
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4936

4937
            this.Input = input;
D
DotNet Bot 已提交
4938 4939
        }

4940 4941 4942 4943 4944 4945 4946 4947

        public BoundDagTemp Input { get; }
    }

    internal sealed partial class BoundDagTemp : BoundNode
    {
        public BoundDagTemp(SyntaxNode syntax, TypeSymbol type, BoundDagEvaluation source, int index, bool hasErrors = false)
            : base(BoundKind.DagTemp, syntax, hasErrors || source.HasErrors())
D
DotNet Bot 已提交
4948 4949
        {

4950
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4951

4952 4953 4954
            this.Type = type;
            this.Source = source;
            this.Index = index;
D
DotNet Bot 已提交
4955 4956 4957
        }


4958 4959 4960 4961 4962 4963
        public TypeSymbol Type { get; }

        public BoundDagEvaluation Source { get; }

        public int Index { get; }

D
DotNet Bot 已提交
4964 4965
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4966
            return visitor.VisitDagTemp(this);
D
DotNet Bot 已提交
4967 4968
        }

4969
        public BoundDagTemp Update(TypeSymbol type, BoundDagEvaluation source, int index)
D
DotNet Bot 已提交
4970
        {
4971
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything) || source != this.Source || index != this.Index)
D
DotNet Bot 已提交
4972
            {
4973
                var result = new BoundDagTemp(this.Syntax, type, source, index, this.HasErrors);
4974
                result.CopyAttributes(this);
D
DotNet Bot 已提交
4975 4976 4977 4978 4979 4980
                return result;
            }
            return this;
        }
    }

4981
    internal sealed partial class BoundDagTypeTest : BoundDagTest
D
DotNet Bot 已提交
4982
    {
4983 4984
        public BoundDagTypeTest(SyntaxNode syntax, TypeSymbol type, BoundDagTemp input, bool hasErrors = false)
            : base(BoundKind.DagTypeTest, syntax, input, hasErrors || input.HasErrors())
D
DotNet Bot 已提交
4985 4986
        {

4987 4988
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
4989

4990
            this.Type = type;
D
DotNet Bot 已提交
4991 4992 4993
        }


4994
        public TypeSymbol Type { get; }
D
DotNet Bot 已提交
4995 4996 4997

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
4998
            return visitor.VisitDagTypeTest(this);
D
DotNet Bot 已提交
4999 5000
        }

5001
        public BoundDagTypeTest Update(TypeSymbol type, BoundDagTemp input)
D
DotNet Bot 已提交
5002
        {
5003
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything) || input != this.Input)
D
DotNet Bot 已提交
5004
            {
5005
                var result = new BoundDagTypeTest(this.Syntax, type, input, this.HasErrors);
5006
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5007 5008 5009 5010 5011 5012
                return result;
            }
            return this;
        }
    }

5013
    internal sealed partial class BoundDagNonNullTest : BoundDagTest
D
DotNet Bot 已提交
5014
    {
5015 5016
        public BoundDagNonNullTest(SyntaxNode syntax, BoundDagTemp input, bool hasErrors = false)
            : base(BoundKind.DagNonNullTest, syntax, input, hasErrors || input.HasErrors())
D
DotNet Bot 已提交
5017 5018
        {

5019
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5020 5021 5022 5023 5024 5025

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5026
            return visitor.VisitDagNonNullTest(this);
D
DotNet Bot 已提交
5027 5028
        }

5029
        public BoundDagNonNullTest Update(BoundDagTemp input)
D
DotNet Bot 已提交
5030
        {
5031
            if (input != this.Input)
D
DotNet Bot 已提交
5032
            {
5033
                var result = new BoundDagNonNullTest(this.Syntax, input, this.HasErrors);
5034
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5035 5036 5037 5038 5039 5040
                return result;
            }
            return this;
        }
    }

5041
    internal sealed partial class BoundDagNullTest : BoundDagTest
D
DotNet Bot 已提交
5042
    {
5043 5044
        public BoundDagNullTest(SyntaxNode syntax, BoundDagTemp input, bool hasErrors = false)
            : base(BoundKind.DagNullTest, syntax, input, hasErrors || input.HasErrors())
D
DotNet Bot 已提交
5045 5046
        {

5047
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
5048

D
DotNet Bot 已提交
5049 5050 5051 5052 5053
        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5054
            return visitor.VisitDagNullTest(this);
D
DotNet Bot 已提交
5055 5056
        }

5057
        public BoundDagNullTest Update(BoundDagTemp input)
D
DotNet Bot 已提交
5058
        {
5059
            if (input != this.Input)
D
DotNet Bot 已提交
5060
            {
5061
                var result = new BoundDagNullTest(this.Syntax, input, this.HasErrors);
5062
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5063 5064 5065 5066 5067 5068
                return result;
            }
            return this;
        }
    }

5069
    internal sealed partial class BoundDagValueTest : BoundDagTest
D
DotNet Bot 已提交
5070
    {
5071 5072
        public BoundDagValueTest(SyntaxNode syntax, ConstantValue value, BoundDagTemp input, bool hasErrors = false)
            : base(BoundKind.DagValueTest, syntax, input, hasErrors || input.HasErrors())
D
DotNet Bot 已提交
5073 5074
        {

5075 5076
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5077

5078
            this.Value = value;
D
DotNet Bot 已提交
5079 5080 5081
        }


5082
        public ConstantValue Value { get; }
D
DotNet Bot 已提交
5083 5084 5085

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5086
            return visitor.VisitDagValueTest(this);
D
DotNet Bot 已提交
5087 5088
        }

5089
        public BoundDagValueTest Update(ConstantValue value, BoundDagTemp input)
D
DotNet Bot 已提交
5090
        {
5091
            if (value != this.Value || input != this.Input)
D
DotNet Bot 已提交
5092
            {
5093
                var result = new BoundDagValueTest(this.Syntax, value, input, this.HasErrors);
5094
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5095 5096 5097 5098 5099 5100
                return result;
            }
            return this;
        }
    }

5101
    internal abstract partial class BoundDagEvaluation : BoundDagTest
D
DotNet Bot 已提交
5102
    {
5103 5104
        protected BoundDagEvaluation(BoundKind kind, SyntaxNode syntax, BoundDagTemp input, bool hasErrors = false)
            : base(kind, syntax, input, hasErrors)
D
DotNet Bot 已提交
5105 5106
        {

5107
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5108 5109 5110

        }

5111 5112 5113 5114 5115 5116
    }

    internal sealed partial class BoundDagDeconstructEvaluation : BoundDagEvaluation
    {
        public BoundDagDeconstructEvaluation(SyntaxNode syntax, MethodSymbol deconstructMethod, BoundDagTemp input, bool hasErrors = false)
            : base(BoundKind.DagDeconstructEvaluation, syntax, input, hasErrors || input.HasErrors())
D
DotNet Bot 已提交
5117 5118
        {

5119 5120
            Debug.Assert((object)deconstructMethod != null, "Field 'deconstructMethod' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5121

5122
            this.DeconstructMethod = deconstructMethod;
D
DotNet Bot 已提交
5123 5124 5125
        }


5126
        public MethodSymbol DeconstructMethod { get; }
D
DotNet Bot 已提交
5127 5128 5129

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5130
            return visitor.VisitDagDeconstructEvaluation(this);
D
DotNet Bot 已提交
5131 5132
        }

5133
        public BoundDagDeconstructEvaluation Update(MethodSymbol deconstructMethod, BoundDagTemp input)
D
DotNet Bot 已提交
5134
        {
5135
            if (deconstructMethod != this.DeconstructMethod || input != this.Input)
D
DotNet Bot 已提交
5136
            {
5137
                var result = new BoundDagDeconstructEvaluation(this.Syntax, deconstructMethod, input, this.HasErrors);
5138
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5139 5140 5141 5142 5143 5144
                return result;
            }
            return this;
        }
    }

5145
    internal sealed partial class BoundDagTypeEvaluation : BoundDagEvaluation
D
DotNet Bot 已提交
5146
    {
5147 5148
        public BoundDagTypeEvaluation(SyntaxNode syntax, TypeSymbol type, BoundDagTemp input, bool hasErrors = false)
            : base(BoundKind.DagTypeEvaluation, syntax, input, hasErrors || input.HasErrors())
D
DotNet Bot 已提交
5149 5150
        {

5151 5152
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5153

5154
            this.Type = type;
D
DotNet Bot 已提交
5155 5156 5157
        }


5158
        public TypeSymbol Type { get; }
D
DotNet Bot 已提交
5159 5160 5161

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5162
            return visitor.VisitDagTypeEvaluation(this);
D
DotNet Bot 已提交
5163 5164
        }

5165
        public BoundDagTypeEvaluation Update(TypeSymbol type, BoundDagTemp input)
D
DotNet Bot 已提交
5166
        {
5167
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything) || input != this.Input)
D
DotNet Bot 已提交
5168
            {
5169
                var result = new BoundDagTypeEvaluation(this.Syntax, type, input, this.HasErrors);
5170
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5171 5172 5173 5174 5175 5176
                return result;
            }
            return this;
        }
    }

5177
    internal sealed partial class BoundDagFieldEvaluation : BoundDagEvaluation
D
DotNet Bot 已提交
5178
    {
5179 5180
        public BoundDagFieldEvaluation(SyntaxNode syntax, FieldSymbol field, BoundDagTemp input, bool hasErrors = false)
            : base(BoundKind.DagFieldEvaluation, syntax, input, hasErrors || input.HasErrors())
D
DotNet Bot 已提交
5181 5182
        {

5183 5184
            Debug.Assert((object)field != null, "Field 'field' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5185

5186
            this.Field = field;
D
DotNet Bot 已提交
5187 5188 5189
        }


5190
        public FieldSymbol Field { get; }
D
DotNet Bot 已提交
5191 5192 5193

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5194
            return visitor.VisitDagFieldEvaluation(this);
D
DotNet Bot 已提交
5195 5196
        }

5197
        public BoundDagFieldEvaluation Update(FieldSymbol field, BoundDagTemp input)
D
DotNet Bot 已提交
5198
        {
5199
            if (field != this.Field || input != this.Input)
D
DotNet Bot 已提交
5200
            {
5201
                var result = new BoundDagFieldEvaluation(this.Syntax, field, input, this.HasErrors);
5202
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5203 5204 5205 5206 5207 5208
                return result;
            }
            return this;
        }
    }

5209 5210 5211 5212
    internal sealed partial class BoundDagPropertyEvaluation : BoundDagEvaluation
    {
        public BoundDagPropertyEvaluation(SyntaxNode syntax, PropertySymbol property, BoundDagTemp input, bool hasErrors = false)
            : base(BoundKind.DagPropertyEvaluation, syntax, input, hasErrors || input.HasErrors())
D
DotNet Bot 已提交
5213 5214
        {

5215 5216
            Debug.Assert((object)property != null, "Field 'property' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5217

5218
            this.Property = property;
D
DotNet Bot 已提交
5219 5220 5221
        }


5222
        public PropertySymbol Property { get; }
D
DotNet Bot 已提交
5223 5224 5225

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5226
            return visitor.VisitDagPropertyEvaluation(this);
D
DotNet Bot 已提交
5227 5228
        }

5229
        public BoundDagPropertyEvaluation Update(PropertySymbol property, BoundDagTemp input)
D
DotNet Bot 已提交
5230
        {
5231
            if (property != this.Property || input != this.Input)
D
DotNet Bot 已提交
5232
            {
5233
                var result = new BoundDagPropertyEvaluation(this.Syntax, property, input, this.HasErrors);
5234
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5235 5236 5237 5238 5239 5240
                return result;
            }
            return this;
        }
    }

5241 5242 5243 5244 5245 5246
    internal sealed partial class BoundDagIndexEvaluation : BoundDagEvaluation
    {
        public BoundDagIndexEvaluation(SyntaxNode syntax, PropertySymbol property, int index, BoundDagTemp input, bool hasErrors = false)
            : base(BoundKind.DagIndexEvaluation, syntax, input, hasErrors || input.HasErrors())
        {

5247 5248
            Debug.Assert((object)property != null, "Field 'property' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)input != null, "Field 'input' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268

            this.Property = property;
            this.Index = index;
        }


        public PropertySymbol Property { get; }

        public int Index { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDagIndexEvaluation(this);
        }

        public BoundDagIndexEvaluation Update(PropertySymbol property, int index, BoundDagTemp input)
        {
            if (property != this.Property || index != this.Index || input != this.Input)
            {
                var result = new BoundDagIndexEvaluation(this.Syntax, property, index, input, this.HasErrors);
5269
                result.CopyAttributes(this);
5270 5271 5272 5273 5274 5275
                return result;
            }
            return this;
        }
    }

5276
    internal sealed partial class BoundSwitchSection : BoundStatementList
D
DotNet Bot 已提交
5277
    {
5278
        public BoundSwitchSection(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundSwitchLabel> switchLabels, ImmutableArray<BoundStatement> statements, bool hasErrors = false)
5279
            : base(BoundKind.SwitchSection, syntax, statements, hasErrors || switchLabels.HasErrors() || statements.HasErrors())
D
DotNet Bot 已提交
5280 5281
        {

5282 5283 5284
            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!switchLabels.IsDefault, "Field 'switchLabels' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5285

5286 5287
            this.Locals = locals;
            this.SwitchLabels = switchLabels;
D
DotNet Bot 已提交
5288 5289 5290
        }


5291
        public ImmutableArray<LocalSymbol> Locals { get; }
D
DotNet Bot 已提交
5292

5293
        public ImmutableArray<BoundSwitchLabel> SwitchLabels { get; }
D
DotNet Bot 已提交
5294 5295 5296

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5297
            return visitor.VisitSwitchSection(this);
D
DotNet Bot 已提交
5298 5299
        }

5300
        public BoundSwitchSection Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundSwitchLabel> switchLabels, ImmutableArray<BoundStatement> statements)
D
DotNet Bot 已提交
5301
        {
5302
            if (locals != this.Locals || switchLabels != this.SwitchLabels || statements != this.Statements)
D
DotNet Bot 已提交
5303
            {
5304
                var result = new BoundSwitchSection(this.Syntax, locals, switchLabels, statements, this.HasErrors);
5305
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5306 5307 5308 5309 5310 5311
                return result;
            }
            return this;
        }
    }

5312
    internal sealed partial class BoundSwitchLabel : BoundNode
D
DotNet Bot 已提交
5313
    {
5314 5315
        public BoundSwitchLabel(SyntaxNode syntax, LabelSymbol label, BoundPattern pattern, BoundExpression whenClause, bool hasErrors = false)
            : base(BoundKind.SwitchLabel, syntax, hasErrors || pattern.HasErrors() || whenClause.HasErrors())
D
DotNet Bot 已提交
5316 5317
        {

5318 5319
            Debug.Assert((object)label != null, "Field 'label' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)pattern != null, "Field 'pattern' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5320 5321

            this.Label = label;
5322 5323
            this.Pattern = pattern;
            this.WhenClause = whenClause;
D
DotNet Bot 已提交
5324 5325 5326 5327 5328
        }


        public LabelSymbol Label { get; }

5329 5330 5331
        public BoundPattern Pattern { get; }

        public BoundExpression WhenClause { get; }
D
DotNet Bot 已提交
5332 5333 5334

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5335
            return visitor.VisitSwitchLabel(this);
D
DotNet Bot 已提交
5336 5337
        }

5338
        public BoundSwitchLabel Update(LabelSymbol label, BoundPattern pattern, BoundExpression whenClause)
D
DotNet Bot 已提交
5339
        {
5340
            if (label != this.Label || pattern != this.Pattern || whenClause != this.WhenClause)
D
DotNet Bot 已提交
5341
            {
5342
                var result = new BoundSwitchLabel(this.Syntax, label, pattern, whenClause, this.HasErrors);
5343
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5344 5345 5346 5347 5348 5349
                return result;
            }
            return this;
        }
    }

5350
    internal abstract partial class BoundMethodOrPropertyGroup : BoundExpression
D
DotNet Bot 已提交
5351
    {
5352 5353
        protected BoundMethodOrPropertyGroup(BoundKind kind, SyntaxNode syntax, BoundExpression receiverOpt, LookupResultKind resultKind, bool hasErrors = false)
            : base(kind, syntax, null, hasErrors)
D
DotNet Bot 已提交
5354
        {
5355 5356 5357
            this.ReceiverOpt = receiverOpt;
            this._ResultKind = resultKind;
        }
D
DotNet Bot 已提交
5358 5359


5360
        public BoundExpression ReceiverOpt { get; }
D
DotNet Bot 已提交
5361

5362 5363 5364 5365 5366 5367 5368 5369
        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }
    }

    internal sealed partial class BoundSequencePointExpression : BoundExpression
    {
        public BoundSequencePointExpression(SyntaxNode syntax, BoundExpression expression, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.SequencePointExpression, syntax, type, hasErrors || expression.HasErrors())
D
DotNet Bot 已提交
5370 5371
        {

5372
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5373

5374
            this.Expression = expression;
D
DotNet Bot 已提交
5375 5376 5377
        }


5378
        public BoundExpression Expression { get; }
D
DotNet Bot 已提交
5379 5380 5381

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5382
            return visitor.VisitSequencePointExpression(this);
D
DotNet Bot 已提交
5383 5384
        }

5385
        public BoundSequencePointExpression Update(BoundExpression expression, TypeSymbol type)
D
DotNet Bot 已提交
5386
        {
5387
            if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5388
            {
5389
                var result = new BoundSequencePointExpression(this.Syntax, expression, type, this.HasErrors);
5390
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5391 5392 5393 5394
                return result;
            }
            return this;
        }
5395 5396 5397 5398 5399 5400 5401

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundSequencePointExpression(this.Syntax, this.Expression, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5402 5403
    }

5404
    internal sealed partial class BoundSequence : BoundExpression
D
DotNet Bot 已提交
5405
    {
5406 5407
        public BoundSequence(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.Sequence, syntax, type, hasErrors || sideEffects.HasErrors() || value.HasErrors())
D
DotNet Bot 已提交
5408 5409
        {

5410 5411
            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!sideEffects.IsDefault, "Field 'sideEffects' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
5412 5413
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5414

5415 5416 5417
            this.Locals = locals;
            this.SideEffects = sideEffects;
            this.Value = value;
D
DotNet Bot 已提交
5418 5419 5420
        }


5421
        public ImmutableArray<LocalSymbol> Locals { get; }
D
DotNet Bot 已提交
5422

5423
        public ImmutableArray<BoundExpression> SideEffects { get; }
D
DotNet Bot 已提交
5424

5425
        public BoundExpression Value { get; }
D
DotNet Bot 已提交
5426 5427 5428

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5429
            return visitor.VisitSequence(this);
D
DotNet Bot 已提交
5430 5431
        }

5432
        public BoundSequence Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type)
D
DotNet Bot 已提交
5433
        {
5434
            if (locals != this.Locals || sideEffects != this.SideEffects || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5435
            {
5436
                var result = new BoundSequence(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
5437
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5438 5439 5440 5441
                return result;
            }
            return this;
        }
5442 5443 5444 5445 5446 5447 5448

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundSequence(this.Syntax, this.Locals, this.SideEffects, this.Value, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5449 5450
    }

5451
    internal sealed partial class BoundSpillSequence : BoundExpression
D
DotNet Bot 已提交
5452
    {
5453 5454
        public BoundSpillSequence(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> sideEffects, BoundExpression value, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.SpillSequence, syntax, type, hasErrors || sideEffects.HasErrors() || value.HasErrors())
D
DotNet Bot 已提交
5455 5456
        {

5457 5458
            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!sideEffects.IsDefault, "Field 'sideEffects' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
5459 5460
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5461

5462 5463 5464
            this.Locals = locals;
            this.SideEffects = sideEffects;
            this.Value = value;
D
DotNet Bot 已提交
5465 5466 5467
        }


5468
        public ImmutableArray<LocalSymbol> Locals { get; }
D
DotNet Bot 已提交
5469

5470
        public ImmutableArray<BoundStatement> SideEffects { get; }
D
DotNet Bot 已提交
5471

5472
        public BoundExpression Value { get; }
D
DotNet Bot 已提交
5473 5474 5475

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
5476
            return visitor.VisitSpillSequence(this);
D
DotNet Bot 已提交
5477 5478
        }

5479
        public BoundSpillSequence Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundStatement> sideEffects, BoundExpression value, TypeSymbol type)
D
DotNet Bot 已提交
5480
        {
5481
            if (locals != this.Locals || sideEffects != this.SideEffects || value != this.Value || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5482
            {
5483
                var result = new BoundSpillSequence(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
5484
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5485 5486 5487 5488
                return result;
            }
            return this;
        }
5489 5490 5491 5492 5493 5494 5495

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundSpillSequence(this.Syntax, this.Locals, this.SideEffects, this.Value, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5496 5497 5498 5499
    }

    internal sealed partial class BoundDynamicMemberAccess : BoundExpression
    {
5500
        public BoundDynamicMemberAccess(SyntaxNode syntax, BoundExpression receiver, ImmutableArray<TypeSymbolWithAnnotations> typeArgumentsOpt, string name, bool invoked, bool indexed, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
5501 5502 5503
            : base(BoundKind.DynamicMemberAccess, syntax, type, hasErrors || receiver.HasErrors())
        {

5504 5505 5506
            Debug.Assert((object)receiver != null, "Field 'receiver' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)name != null, "Field 'name' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517

            this.Receiver = receiver;
            this.TypeArgumentsOpt = typeArgumentsOpt;
            this.Name = name;
            this.Invoked = invoked;
            this.Indexed = indexed;
        }


        public BoundExpression Receiver { get; }

5518
        public ImmutableArray<TypeSymbolWithAnnotations> TypeArgumentsOpt { get; }
D
DotNet Bot 已提交
5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530

        public string Name { get; }

        public bool Invoked { get; }

        public bool Indexed { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDynamicMemberAccess(this);
        }

5531
        public BoundDynamicMemberAccess Update(BoundExpression receiver, ImmutableArray<TypeSymbolWithAnnotations> typeArgumentsOpt, string name, bool invoked, bool indexed, TypeSymbol type)
D
DotNet Bot 已提交
5532
        {
5533
            if (receiver != this.Receiver || typeArgumentsOpt != this.TypeArgumentsOpt || name != this.Name || invoked != this.Invoked || indexed != this.Indexed || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5534 5535
            {
                var result = new BoundDynamicMemberAccess(this.Syntax, receiver, typeArgumentsOpt, name, invoked, indexed, type, this.HasErrors);
5536
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5537 5538 5539 5540
                return result;
            }
            return this;
        }
5541 5542 5543 5544 5545 5546 5547

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDynamicMemberAccess(this.Syntax, this.Receiver, this.TypeArgumentsOpt, this.Name, this.Invoked, this.Indexed, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5548 5549
    }

5550
    internal abstract partial class BoundDynamicInvocableBase : BoundExpression
D
DotNet Bot 已提交
5551
    {
5552 5553
        protected BoundDynamicInvocableBase(BoundKind kind, SyntaxNode syntax, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false)
            : base(kind, syntax, type, hasErrors)
D
DotNet Bot 已提交
5554 5555
        {

5556
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5557 5558 5559 5560 5561 5562 5563 5564 5565 5566
            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.Expression = expression;
            this.Arguments = arguments;
        }


        public BoundExpression Expression { get; }

        public ImmutableArray<BoundExpression> Arguments { get; }
5567 5568 5569 5570 5571 5572 5573 5574 5575
    }

    internal sealed partial class BoundDynamicInvocation : BoundDynamicInvocableBase
    {
        public BoundDynamicInvocation(SyntaxNode syntax, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.DynamicInvocation, syntax, expression, arguments, type, hasErrors || expression.HasErrors() || arguments.HasErrors())
        {

            Debug.Assert(!applicableMethods.IsDefault, "Field 'applicableMethods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
5576
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
5577
            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
5578
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
5579 5580 5581 5582 5583 5584

            this.ArgumentNamesOpt = argumentNamesOpt;
            this.ArgumentRefKindsOpt = argumentRefKindsOpt;
            this.ApplicableMethods = applicableMethods;
        }

D
DotNet Bot 已提交
5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596

        public ImmutableArray<string> ArgumentNamesOpt { get; }

        public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; }

        public ImmutableArray<MethodSymbol> ApplicableMethods { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDynamicInvocation(this);
        }

5597
        public BoundDynamicInvocation Update(ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type)
D
DotNet Bot 已提交
5598
        {
5599
            if (argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || applicableMethods != this.ApplicableMethods || expression != this.Expression || arguments != this.Arguments || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5600
            {
5601
                var result = new BoundDynamicInvocation(this.Syntax, argumentNamesOpt, argumentRefKindsOpt, applicableMethods, expression, arguments, type, this.HasErrors);
5602
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5603 5604 5605 5606
                return result;
            }
            return this;
        }
5607 5608 5609 5610 5611 5612 5613

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDynamicInvocation(this.Syntax, this.ArgumentNamesOpt, this.ArgumentRefKindsOpt, this.ApplicableMethods, this.Expression, this.Arguments, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5614 5615 5616 5617 5618 5619 5620 5621
    }

    internal sealed partial class BoundConditionalAccess : BoundExpression
    {
        public BoundConditionalAccess(SyntaxNode syntax, BoundExpression receiver, BoundExpression accessExpression, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ConditionalAccess, syntax, type, hasErrors || receiver.HasErrors() || accessExpression.HasErrors())
        {

5622 5623 5624
            Debug.Assert((object)receiver != null, "Field 'receiver' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)accessExpression != null, "Field 'accessExpression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641

            this.Receiver = receiver;
            this.AccessExpression = accessExpression;
        }


        public BoundExpression Receiver { get; }

        public BoundExpression AccessExpression { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitConditionalAccess(this);
        }

        public BoundConditionalAccess Update(BoundExpression receiver, BoundExpression accessExpression, TypeSymbol type)
        {
5642
            if (receiver != this.Receiver || accessExpression != this.AccessExpression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5643 5644
            {
                var result = new BoundConditionalAccess(this.Syntax, receiver, accessExpression, type, this.HasErrors);
5645
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5646 5647 5648 5649
                return result;
            }
            return this;
        }
5650 5651 5652 5653 5654 5655 5656

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundConditionalAccess(this.Syntax, this.Receiver, this.AccessExpression, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5657 5658 5659 5660 5661 5662 5663 5664
    }

    internal sealed partial class BoundLoweredConditionalAccess : BoundExpression
    {
        public BoundLoweredConditionalAccess(SyntaxNode syntax, BoundExpression receiver, MethodSymbol hasValueMethodOpt, BoundExpression whenNotNull, BoundExpression whenNullOpt, int id, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.LoweredConditionalAccess, syntax, type, hasErrors || receiver.HasErrors() || whenNotNull.HasErrors() || whenNullOpt.HasErrors())
        {

5665 5666 5667
            Debug.Assert((object)receiver != null, "Field 'receiver' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)whenNotNull != null, "Field 'whenNotNull' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693

            this.Receiver = receiver;
            this.HasValueMethodOpt = hasValueMethodOpt;
            this.WhenNotNull = whenNotNull;
            this.WhenNullOpt = whenNullOpt;
            this.Id = id;
        }


        public BoundExpression Receiver { get; }

        public MethodSymbol HasValueMethodOpt { get; }

        public BoundExpression WhenNotNull { get; }

        public BoundExpression WhenNullOpt { get; }

        public int Id { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitLoweredConditionalAccess(this);
        }

        public BoundLoweredConditionalAccess Update(BoundExpression receiver, MethodSymbol hasValueMethodOpt, BoundExpression whenNotNull, BoundExpression whenNullOpt, int id, TypeSymbol type)
        {
5694
            if (receiver != this.Receiver || hasValueMethodOpt != this.HasValueMethodOpt || whenNotNull != this.WhenNotNull || whenNullOpt != this.WhenNullOpt || id != this.Id || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5695 5696
            {
                var result = new BoundLoweredConditionalAccess(this.Syntax, receiver, hasValueMethodOpt, whenNotNull, whenNullOpt, id, type, this.HasErrors);
5697
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5698 5699 5700 5701
                return result;
            }
            return this;
        }
5702 5703 5704 5705 5706 5707 5708

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundLoweredConditionalAccess(this.Syntax, this.Receiver, this.HasValueMethodOpt, this.WhenNotNull, this.WhenNullOpt, this.Id, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5709 5710 5711 5712 5713 5714 5715 5716
    }

    internal sealed partial class BoundConditionalReceiver : BoundExpression
    {
        public BoundConditionalReceiver(SyntaxNode syntax, int id, TypeSymbol type, bool hasErrors)
            : base(BoundKind.ConditionalReceiver, syntax, type, hasErrors)
        {

5717
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5718 5719 5720 5721 5722 5723 5724 5725

            this.Id = id;
        }

        public BoundConditionalReceiver(SyntaxNode syntax, int id, TypeSymbol type)
            : base(BoundKind.ConditionalReceiver, syntax, type)
        {

5726
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740

            this.Id = id;
        }


        public int Id { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitConditionalReceiver(this);
        }

        public BoundConditionalReceiver Update(int id, TypeSymbol type)
        {
5741
            if (id != this.Id || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5742 5743
            {
                var result = new BoundConditionalReceiver(this.Syntax, id, type, this.HasErrors);
5744
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5745 5746 5747 5748
                return result;
            }
            return this;
        }
5749 5750 5751 5752 5753 5754 5755

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundConditionalReceiver(this.Syntax, this.Id, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5756 5757 5758 5759 5760 5761 5762 5763
    }

    internal sealed partial class BoundComplexConditionalReceiver : BoundExpression
    {
        public BoundComplexConditionalReceiver(SyntaxNode syntax, BoundExpression valueTypeReceiver, BoundExpression referenceTypeReceiver, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ComplexConditionalReceiver, syntax, type, hasErrors || valueTypeReceiver.HasErrors() || referenceTypeReceiver.HasErrors())
        {

5764 5765 5766
            Debug.Assert((object)valueTypeReceiver != null, "Field 'valueTypeReceiver' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)referenceTypeReceiver != null, "Field 'referenceTypeReceiver' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783

            this.ValueTypeReceiver = valueTypeReceiver;
            this.ReferenceTypeReceiver = referenceTypeReceiver;
        }


        public BoundExpression ValueTypeReceiver { get; }

        public BoundExpression ReferenceTypeReceiver { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitComplexConditionalReceiver(this);
        }

        public BoundComplexConditionalReceiver Update(BoundExpression valueTypeReceiver, BoundExpression referenceTypeReceiver, TypeSymbol type)
        {
5784
            if (valueTypeReceiver != this.ValueTypeReceiver || referenceTypeReceiver != this.ReferenceTypeReceiver || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5785 5786
            {
                var result = new BoundComplexConditionalReceiver(this.Syntax, valueTypeReceiver, referenceTypeReceiver, type, this.HasErrors);
5787
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5788 5789 5790 5791
                return result;
            }
            return this;
        }
5792 5793 5794 5795 5796 5797 5798

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundComplexConditionalReceiver(this.Syntax, this.ValueTypeReceiver, this.ReferenceTypeReceiver, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5799 5800 5801 5802
    }

    internal sealed partial class BoundMethodGroup : BoundMethodOrPropertyGroup
    {
5803
        public BoundMethodGroup(SyntaxNode syntax, ImmutableArray<TypeSymbolWithAnnotations> typeArgumentsOpt, string name, ImmutableArray<MethodSymbol> methods, Symbol lookupSymbolOpt, DiagnosticInfo lookupError, BoundMethodGroupFlags flags, BoundExpression receiverOpt, LookupResultKind resultKind, bool hasErrors = false)
D
DotNet Bot 已提交
5804 5805 5806
            : base(BoundKind.MethodGroup, syntax, receiverOpt, resultKind, hasErrors || receiverOpt.HasErrors())
        {

5807
            Debug.Assert((object)name != null, "Field 'name' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818
            Debug.Assert(!methods.IsDefault, "Field 'methods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.TypeArgumentsOpt = typeArgumentsOpt;
            this.Name = name;
            this.Methods = methods;
            this.LookupSymbolOpt = lookupSymbolOpt;
            this.LookupError = lookupError;
            this.Flags = flags;
        }


5819
        public ImmutableArray<TypeSymbolWithAnnotations> TypeArgumentsOpt { get; }
D
DotNet Bot 已提交
5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835

        public string Name { get; }

        public ImmutableArray<MethodSymbol> Methods { get; }

        public Symbol LookupSymbolOpt { get; }

        public DiagnosticInfo LookupError { get; }

        public BoundMethodGroupFlags Flags { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitMethodGroup(this);
        }

5836
        public BoundMethodGroup Update(ImmutableArray<TypeSymbolWithAnnotations> typeArgumentsOpt, string name, ImmutableArray<MethodSymbol> methods, Symbol lookupSymbolOpt, DiagnosticInfo lookupError, BoundMethodGroupFlags flags, BoundExpression receiverOpt, LookupResultKind resultKind)
D
DotNet Bot 已提交
5837 5838 5839 5840
        {
            if (typeArgumentsOpt != this.TypeArgumentsOpt || name != this.Name || methods != this.Methods || lookupSymbolOpt != this.LookupSymbolOpt || lookupError != this.LookupError || flags != this.Flags || receiverOpt != this.ReceiverOpt || resultKind != this.ResultKind)
            {
                var result = new BoundMethodGroup(this.Syntax, typeArgumentsOpt, name, methods, lookupSymbolOpt, lookupError, flags, receiverOpt, resultKind, this.HasErrors);
5841
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5842 5843 5844 5845
                return result;
            }
            return this;
        }
5846 5847 5848 5849 5850 5851 5852

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundMethodGroup(this.Syntax, this.TypeArgumentsOpt, this.Name, this.Methods, this.LookupSymbolOpt, this.LookupError, this.Flags, this.ReceiverOpt, this.ResultKind, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878
    }

    internal sealed partial class BoundPropertyGroup : BoundMethodOrPropertyGroup
    {
        public BoundPropertyGroup(SyntaxNode syntax, ImmutableArray<PropertySymbol> properties, BoundExpression receiverOpt, LookupResultKind resultKind, bool hasErrors = false)
            : base(BoundKind.PropertyGroup, syntax, receiverOpt, resultKind, hasErrors || receiverOpt.HasErrors())
        {

            Debug.Assert(!properties.IsDefault, "Field 'properties' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.Properties = properties;
        }


        public ImmutableArray<PropertySymbol> Properties { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitPropertyGroup(this);
        }

        public BoundPropertyGroup Update(ImmutableArray<PropertySymbol> properties, BoundExpression receiverOpt, LookupResultKind resultKind)
        {
            if (properties != this.Properties || receiverOpt != this.ReceiverOpt || resultKind != this.ResultKind)
            {
                var result = new BoundPropertyGroup(this.Syntax, properties, receiverOpt, resultKind, this.HasErrors);
5879
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5880 5881 5882 5883
                return result;
            }
            return this;
        }
5884 5885 5886 5887 5888 5889 5890

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundPropertyGroup(this.Syntax, this.Properties, this.ReceiverOpt, this.ResultKind, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5891 5892 5893 5894
    }

    internal sealed partial class BoundCall : BoundExpression
    {
5895
        public BoundCall(SyntaxNode syntax, BoundExpression receiverOpt, MethodSymbol method, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool isDelegateCall, bool expanded, bool invokedAsExtensionMethod, ImmutableArray<int> argsToParamsOpt, LookupResultKind resultKind, Binder binderOpt, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
5896 5897 5898
            : base(BoundKind.Call, syntax, type, hasErrors || receiverOpt.HasErrors() || arguments.HasErrors())
        {

5899
            Debug.Assert((object)method != null, "Field 'method' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5900
            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
5901
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912

            this.ReceiverOpt = receiverOpt;
            this.Method = method;
            this.Arguments = arguments;
            this.ArgumentNamesOpt = argumentNamesOpt;
            this.ArgumentRefKindsOpt = argumentRefKindsOpt;
            this.IsDelegateCall = isDelegateCall;
            this.Expanded = expanded;
            this.InvokedAsExtensionMethod = invokedAsExtensionMethod;
            this.ArgsToParamsOpt = argsToParamsOpt;
            this._ResultKind = resultKind;
5913
            this.BinderOpt = binderOpt;
D
DotNet Bot 已提交
5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937
        }


        public BoundExpression ReceiverOpt { get; }

        public MethodSymbol Method { get; }

        public ImmutableArray<BoundExpression> Arguments { get; }

        public ImmutableArray<string> ArgumentNamesOpt { get; }

        public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; }

        public bool IsDelegateCall { get; }

        public bool Expanded { get; }

        public bool InvokedAsExtensionMethod { get; }

        public ImmutableArray<int> ArgsToParamsOpt { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

5938 5939
        public Binder BinderOpt { get; }

D
DotNet Bot 已提交
5940 5941 5942 5943 5944
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitCall(this);
        }

5945
        public BoundCall Update(BoundExpression receiverOpt, MethodSymbol method, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool isDelegateCall, bool expanded, bool invokedAsExtensionMethod, ImmutableArray<int> argsToParamsOpt, LookupResultKind resultKind, Binder binderOpt, TypeSymbol type)
D
DotNet Bot 已提交
5946
        {
5947
            if (receiverOpt != this.ReceiverOpt || method != this.Method || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || isDelegateCall != this.IsDelegateCall || expanded != this.Expanded || invokedAsExtensionMethod != this.InvokedAsExtensionMethod || argsToParamsOpt != this.ArgsToParamsOpt || resultKind != this.ResultKind || binderOpt != this.BinderOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
5948
            {
5949
                var result = new BoundCall(this.Syntax, receiverOpt, method, arguments, argumentNamesOpt, argumentRefKindsOpt, isDelegateCall, expanded, invokedAsExtensionMethod, argsToParamsOpt, resultKind, binderOpt, type, this.HasErrors);
5950
                result.CopyAttributes(this);
D
DotNet Bot 已提交
5951 5952 5953 5954
                return result;
            }
            return this;
        }
5955 5956 5957 5958 5959 5960 5961

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundCall(this.Syntax, this.ReceiverOpt, this.Method, this.Arguments, this.ArgumentNamesOpt, this.ArgumentRefKindsOpt, this.IsDelegateCall, this.Expanded, this.InvokedAsExtensionMethod, this.ArgsToParamsOpt, this.ResultKind, this.BinderOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
5962 5963 5964 5965 5966 5967 5968 5969
    }

    internal sealed partial class BoundEventAssignmentOperator : BoundExpression
    {
        public BoundEventAssignmentOperator(SyntaxNode syntax, EventSymbol @event, bool isAddition, bool isDynamic, BoundExpression receiverOpt, BoundExpression argument, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.EventAssignmentOperator, syntax, type, hasErrors || receiverOpt.HasErrors() || argument.HasErrors())
        {

5970 5971 5972
            Debug.Assert((object)@event != null, "Field '@event' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)argument != null, "Field 'argument' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998

            this.Event = @event;
            this.IsAddition = isAddition;
            this.IsDynamic = isDynamic;
            this.ReceiverOpt = receiverOpt;
            this.Argument = argument;
        }


        public EventSymbol Event { get; }

        public bool IsAddition { get; }

        public bool IsDynamic { get; }

        public BoundExpression ReceiverOpt { get; }

        public BoundExpression Argument { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitEventAssignmentOperator(this);
        }

        public BoundEventAssignmentOperator Update(EventSymbol @event, bool isAddition, bool isDynamic, BoundExpression receiverOpt, BoundExpression argument, TypeSymbol type)
        {
5999
            if (@event != this.Event || isAddition != this.IsAddition || isDynamic != this.IsDynamic || receiverOpt != this.ReceiverOpt || argument != this.Argument || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6000 6001
            {
                var result = new BoundEventAssignmentOperator(this.Syntax, @event, isAddition, isDynamic, receiverOpt, argument, type, this.HasErrors);
6002
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6003 6004 6005 6006
                return result;
            }
            return this;
        }
6007 6008 6009 6010 6011 6012 6013

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundEventAssignmentOperator(this.Syntax, this.Event, this.IsAddition, this.IsDynamic, this.ReceiverOpt, this.Argument, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6014 6015 6016 6017
    }

    internal sealed partial class BoundAttribute : BoundExpression
    {
6018
        public BoundAttribute(SyntaxNode syntax, MethodSymbol constructor, ImmutableArray<BoundExpression> constructorArguments, ImmutableArray<string> constructorArgumentNamesOpt, ImmutableArray<int> constructorArgumentsToParamsOpt, bool constructorExpanded, ImmutableArray<BoundExpression> namedArguments, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
6019 6020 6021 6022 6023
            : base(BoundKind.Attribute, syntax, type, hasErrors || constructorArguments.HasErrors() || namedArguments.HasErrors())
        {

            Debug.Assert(!constructorArguments.IsDefault, "Field 'constructorArguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!namedArguments.IsDefault, "Field 'namedArguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6024
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6025 6026 6027 6028

            this.Constructor = constructor;
            this.ConstructorArguments = constructorArguments;
            this.ConstructorArgumentNamesOpt = constructorArgumentNamesOpt;
6029 6030
            this.ConstructorArgumentsToParamsOpt = constructorArgumentsToParamsOpt;
            this.ConstructorExpanded = constructorExpanded;
D
DotNet Bot 已提交
6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041
            this.NamedArguments = namedArguments;
            this._ResultKind = resultKind;
        }


        public MethodSymbol Constructor { get; }

        public ImmutableArray<BoundExpression> ConstructorArguments { get; }

        public ImmutableArray<string> ConstructorArgumentNamesOpt { get; }

6042 6043 6044 6045
        public ImmutableArray<int> ConstructorArgumentsToParamsOpt { get; }

        public bool ConstructorExpanded { get; }

D
DotNet Bot 已提交
6046 6047 6048 6049 6050 6051 6052 6053 6054 6055
        public ImmutableArray<BoundExpression> NamedArguments { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitAttribute(this);
        }

6056
        public BoundAttribute Update(MethodSymbol constructor, ImmutableArray<BoundExpression> constructorArguments, ImmutableArray<string> constructorArgumentNamesOpt, ImmutableArray<int> constructorArgumentsToParamsOpt, bool constructorExpanded, ImmutableArray<BoundExpression> namedArguments, LookupResultKind resultKind, TypeSymbol type)
D
DotNet Bot 已提交
6057
        {
6058
            if (constructor != this.Constructor || constructorArguments != this.ConstructorArguments || constructorArgumentNamesOpt != this.ConstructorArgumentNamesOpt || constructorArgumentsToParamsOpt != this.ConstructorArgumentsToParamsOpt || constructorExpanded != this.ConstructorExpanded || namedArguments != this.NamedArguments || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6059
            {
6060
                var result = new BoundAttribute(this.Syntax, constructor, constructorArguments, constructorArgumentNamesOpt, constructorArgumentsToParamsOpt, constructorExpanded, namedArguments, resultKind, type, this.HasErrors);
6061
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6062 6063 6064 6065
                return result;
            }
            return this;
        }
6066 6067 6068

        protected override BoundExpression ShallowClone()
        {
6069
            var result = new BoundAttribute(this.Syntax, this.Constructor, this.ConstructorArguments, this.ConstructorArgumentNamesOpt, this.ConstructorArgumentsToParamsOpt, this.ConstructorExpanded, this.NamedArguments, this.ResultKind, this.Type, this.HasErrors);
6070 6071 6072
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6073 6074 6075 6076
    }

    internal sealed partial class BoundObjectCreationExpression : BoundExpression
    {
6077
        public BoundObjectCreationExpression(SyntaxNode syntax, MethodSymbol constructor, ImmutableArray<MethodSymbol> constructorsGroup, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, ConstantValue constantValueOpt, BoundObjectInitializerExpressionBase initializerExpressionOpt, Binder binderOpt, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
6078 6079 6080
            : base(BoundKind.ObjectCreationExpression, syntax, type, hasErrors || arguments.HasErrors() || initializerExpressionOpt.HasErrors())
        {

6081
            Debug.Assert((object)constructor != null, "Field 'constructor' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6082 6083
            Debug.Assert(!constructorsGroup.IsDefault, "Field 'constructorsGroup' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6084
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6085 6086 6087 6088 6089 6090 6091 6092 6093 6094

            this.Constructor = constructor;
            this.ConstructorsGroup = constructorsGroup;
            this.Arguments = arguments;
            this.ArgumentNamesOpt = argumentNamesOpt;
            this.ArgumentRefKindsOpt = argumentRefKindsOpt;
            this.Expanded = expanded;
            this.ArgsToParamsOpt = argsToParamsOpt;
            this.ConstantValueOpt = constantValueOpt;
            this.InitializerExpressionOpt = initializerExpressionOpt;
6095
            this.BinderOpt = binderOpt;
D
DotNet Bot 已提交
6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114
        }


        public MethodSymbol Constructor { get; }

        public ImmutableArray<MethodSymbol> ConstructorsGroup { get; }

        public ImmutableArray<BoundExpression> Arguments { get; }

        public ImmutableArray<string> ArgumentNamesOpt { get; }

        public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; }

        public bool Expanded { get; }

        public ImmutableArray<int> ArgsToParamsOpt { get; }

        public ConstantValue ConstantValueOpt { get; }

6115
        public BoundObjectInitializerExpressionBase InitializerExpressionOpt { get; }
D
DotNet Bot 已提交
6116

6117 6118
        public Binder BinderOpt { get; }

D
DotNet Bot 已提交
6119 6120 6121 6122 6123
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitObjectCreationExpression(this);
        }

6124
        public BoundObjectCreationExpression Update(MethodSymbol constructor, ImmutableArray<MethodSymbol> constructorsGroup, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, ConstantValue constantValueOpt, BoundObjectInitializerExpressionBase initializerExpressionOpt, Binder binderOpt, TypeSymbol type)
D
DotNet Bot 已提交
6125
        {
6126
            if (constructor != this.Constructor || constructorsGroup != this.ConstructorsGroup || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || constantValueOpt != this.ConstantValueOpt || initializerExpressionOpt != this.InitializerExpressionOpt || binderOpt != this.BinderOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6127
            {
6128
                var result = new BoundObjectCreationExpression(this.Syntax, constructor, constructorsGroup, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, argsToParamsOpt, constantValueOpt, initializerExpressionOpt, binderOpt, type, this.HasErrors);
6129
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6130 6131 6132 6133
                return result;
            }
            return this;
        }
6134 6135 6136 6137 6138 6139 6140

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundObjectCreationExpression(this.Syntax, this.Constructor, this.ConstructorsGroup, this.Arguments, this.ArgumentNamesOpt, this.ArgumentRefKindsOpt, this.Expanded, this.ArgsToParamsOpt, this.ConstantValueOpt, this.InitializerExpressionOpt, this.BinderOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159
    }

    internal abstract partial class BoundTupleExpression : BoundExpression
    {
        protected BoundTupleExpression(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false)
            : base(kind, syntax, type, hasErrors)
        {

            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.Arguments = arguments;
        }


        public ImmutableArray<BoundExpression> Arguments { get; }
    }

    internal sealed partial class BoundTupleLiteral : BoundTupleExpression
    {
6160
        public BoundTupleLiteral(SyntaxNode syntax, ImmutableArray<string> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
6161 6162 6163 6164 6165 6166
            : base(BoundKind.TupleLiteral, syntax, arguments, type, hasErrors || arguments.HasErrors())
        {

            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.ArgumentNamesOpt = argumentNamesOpt;
6167
            this.InferredNamesOpt = inferredNamesOpt;
D
DotNet Bot 已提交
6168 6169 6170 6171 6172
        }


        public ImmutableArray<string> ArgumentNamesOpt { get; }

6173 6174
        public ImmutableArray<bool> InferredNamesOpt { get; }

D
DotNet Bot 已提交
6175 6176 6177 6178 6179
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitTupleLiteral(this);
        }

6180
        public BoundTupleLiteral Update(ImmutableArray<string> argumentNamesOpt, ImmutableArray<bool> inferredNamesOpt, ImmutableArray<BoundExpression> arguments, TypeSymbol type)
D
DotNet Bot 已提交
6181
        {
6182
            if (argumentNamesOpt != this.ArgumentNamesOpt || inferredNamesOpt != this.InferredNamesOpt || arguments != this.Arguments || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6183
            {
6184
                var result = new BoundTupleLiteral(this.Syntax, argumentNamesOpt, inferredNamesOpt, arguments, type, this.HasErrors);
6185
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6186 6187 6188 6189
                return result;
            }
            return this;
        }
6190 6191 6192 6193 6194 6195 6196

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundTupleLiteral(this.Syntax, this.ArgumentNamesOpt, this.InferredNamesOpt, this.Arguments, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6197 6198 6199 6200 6201 6202 6203 6204 6205
    }

    internal sealed partial class BoundConvertedTupleLiteral : BoundTupleExpression
    {
        public BoundConvertedTupleLiteral(SyntaxNode syntax, TypeSymbol naturalTypeOpt, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ConvertedTupleLiteral, syntax, arguments, type, hasErrors || arguments.HasErrors())
        {

            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6206
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220

            this.NaturalTypeOpt = naturalTypeOpt;
        }


        public TypeSymbol NaturalTypeOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitConvertedTupleLiteral(this);
        }

        public BoundConvertedTupleLiteral Update(TypeSymbol naturalTypeOpt, ImmutableArray<BoundExpression> arguments, TypeSymbol type)
        {
6221
            if (!TypeSymbol.Equals(naturalTypeOpt, this.NaturalTypeOpt, TypeCompareKind.ConsiderEverything) || arguments != this.Arguments || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6222 6223
            {
                var result = new BoundConvertedTupleLiteral(this.Syntax, naturalTypeOpt, arguments, type, this.HasErrors);
6224
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6225 6226 6227 6228
                return result;
            }
            return this;
        }
6229 6230 6231 6232 6233 6234 6235

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundConvertedTupleLiteral(this.Syntax, this.NaturalTypeOpt, this.Arguments, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6236 6237 6238 6239
    }

    internal sealed partial class BoundDynamicObjectCreationExpression : BoundExpression
    {
6240
        public BoundDynamicObjectCreationExpression(SyntaxNode syntax, string name, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, BoundObjectInitializerExpressionBase initializerExpressionOpt, ImmutableArray<MethodSymbol> applicableMethods, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
6241 6242 6243
            : base(BoundKind.DynamicObjectCreationExpression, syntax, type, hasErrors || arguments.HasErrors() || initializerExpressionOpt.HasErrors())
        {

6244
            Debug.Assert((object)name != null, "Field 'name' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6245 6246
            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!applicableMethods.IsDefault, "Field 'applicableMethods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6247
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6248

6249
            this.Name = name;
D
DotNet Bot 已提交
6250 6251 6252 6253 6254 6255 6256 6257
            this.Arguments = arguments;
            this.ArgumentNamesOpt = argumentNamesOpt;
            this.ArgumentRefKindsOpt = argumentRefKindsOpt;
            this.InitializerExpressionOpt = initializerExpressionOpt;
            this.ApplicableMethods = applicableMethods;
        }


6258 6259
        public string Name { get; }

D
DotNet Bot 已提交
6260 6261 6262 6263 6264 6265
        public ImmutableArray<BoundExpression> Arguments { get; }

        public ImmutableArray<string> ArgumentNamesOpt { get; }

        public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; }

6266
        public BoundObjectInitializerExpressionBase InitializerExpressionOpt { get; }
D
DotNet Bot 已提交
6267 6268 6269 6270 6271 6272 6273 6274

        public ImmutableArray<MethodSymbol> ApplicableMethods { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDynamicObjectCreationExpression(this);
        }

6275
        public BoundDynamicObjectCreationExpression Update(string name, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, BoundObjectInitializerExpressionBase initializerExpressionOpt, ImmutableArray<MethodSymbol> applicableMethods, TypeSymbol type)
D
DotNet Bot 已提交
6276
        {
6277
            if (name != this.Name || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || initializerExpressionOpt != this.InitializerExpressionOpt || applicableMethods != this.ApplicableMethods || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6278
            {
6279
                var result = new BoundDynamicObjectCreationExpression(this.Syntax, name, arguments, argumentNamesOpt, argumentRefKindsOpt, initializerExpressionOpt, applicableMethods, type, this.HasErrors);
6280
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6281 6282 6283 6284
                return result;
            }
            return this;
        }
6285 6286 6287 6288 6289 6290 6291

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDynamicObjectCreationExpression(this.Syntax, this.Name, this.Arguments, this.ArgumentNamesOpt, this.ArgumentRefKindsOpt, this.InitializerExpressionOpt, this.ApplicableMethods, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6292 6293 6294 6295
    }

    internal sealed partial class BoundNoPiaObjectCreationExpression : BoundExpression
    {
6296
        public BoundNoPiaObjectCreationExpression(SyntaxNode syntax, string guidString, BoundObjectInitializerExpressionBase initializerExpressionOpt, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
6297 6298 6299
            : base(BoundKind.NoPiaObjectCreationExpression, syntax, type, hasErrors || initializerExpressionOpt.HasErrors())
        {

6300
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6301 6302 6303 6304 6305 6306 6307 6308

            this.GuidString = guidString;
            this.InitializerExpressionOpt = initializerExpressionOpt;
        }


        public string GuidString { get; }

6309
        public BoundObjectInitializerExpressionBase InitializerExpressionOpt { get; }
D
DotNet Bot 已提交
6310 6311 6312 6313 6314 6315

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitNoPiaObjectCreationExpression(this);
        }

6316
        public BoundNoPiaObjectCreationExpression Update(string guidString, BoundObjectInitializerExpressionBase initializerExpressionOpt, TypeSymbol type)
D
DotNet Bot 已提交
6317
        {
6318
            if (guidString != this.GuidString || initializerExpressionOpt != this.InitializerExpressionOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6319 6320
            {
                var result = new BoundNoPiaObjectCreationExpression(this.Syntax, guidString, initializerExpressionOpt, type, this.HasErrors);
6321
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6322 6323 6324 6325
                return result;
            }
            return this;
        }
6326 6327 6328 6329 6330 6331 6332

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundNoPiaObjectCreationExpression(this.Syntax, this.GuidString, this.InitializerExpressionOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6333 6334
    }

6335
    internal abstract partial class BoundObjectInitializerExpressionBase : BoundExpression
D
DotNet Bot 已提交
6336
    {
6337 6338
        protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
            : base(kind, syntax, type, hasErrors)
D
DotNet Bot 已提交
6339 6340 6341
        {

            Debug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6342
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6343 6344 6345 6346 6347 6348

            this.Initializers = initializers;
        }


        public ImmutableArray<BoundExpression> Initializers { get; }
6349 6350 6351 6352 6353 6354 6355 6356 6357
    }

    internal sealed partial class BoundObjectInitializerExpression : BoundObjectInitializerExpressionBase
    {
        public BoundObjectInitializerExpression(SyntaxNode syntax, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ObjectInitializerExpression, syntax, initializers, type, hasErrors || initializers.HasErrors())
        {

            Debug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6358
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6359 6360 6361

        }

D
DotNet Bot 已提交
6362 6363 6364 6365 6366 6367 6368 6369

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitObjectInitializerExpression(this);
        }

        public BoundObjectInitializerExpression Update(ImmutableArray<BoundExpression> initializers, TypeSymbol type)
        {
6370
            if (initializers != this.Initializers || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6371 6372
            {
                var result = new BoundObjectInitializerExpression(this.Syntax, initializers, type, this.HasErrors);
6373
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6374 6375 6376 6377
                return result;
            }
            return this;
        }
6378 6379 6380 6381 6382 6383 6384

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundObjectInitializerExpression(this.Syntax, this.Initializers, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6385 6386 6387 6388
    }

    internal sealed partial class BoundObjectInitializerMember : BoundExpression
    {
6389
        public BoundObjectInitializerMember(SyntaxNode syntax, Symbol memberSymbol, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, LookupResultKind resultKind, TypeSymbol receiverType, Binder binderOpt, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
6390 6391 6392 6393
            : base(BoundKind.ObjectInitializerMember, syntax, type, hasErrors || arguments.HasErrors())
        {

            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6394 6395
            Debug.Assert((object)receiverType != null, "Field 'receiverType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6396 6397 6398 6399 6400 6401 6402 6403

            this.MemberSymbol = memberSymbol;
            this.Arguments = arguments;
            this.ArgumentNamesOpt = argumentNamesOpt;
            this.ArgumentRefKindsOpt = argumentRefKindsOpt;
            this.Expanded = expanded;
            this.ArgsToParamsOpt = argsToParamsOpt;
            this._ResultKind = resultKind;
6404
            this.ReceiverType = receiverType;
6405
            this.BinderOpt = binderOpt;
D
DotNet Bot 已提交
6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423
        }


        public Symbol MemberSymbol { get; }

        public ImmutableArray<BoundExpression> Arguments { get; }

        public ImmutableArray<string> ArgumentNamesOpt { get; }

        public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; }

        public bool Expanded { get; }

        public ImmutableArray<int> ArgsToParamsOpt { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

6424
        public TypeSymbol ReceiverType { get; }
6425

6426 6427
        public Binder BinderOpt { get; }

D
DotNet Bot 已提交
6428 6429 6430 6431 6432
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitObjectInitializerMember(this);
        }

6433
        public BoundObjectInitializerMember Update(Symbol memberSymbol, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, LookupResultKind resultKind, TypeSymbol receiverType, Binder binderOpt, TypeSymbol type)
D
DotNet Bot 已提交
6434
        {
6435
            if (memberSymbol != this.MemberSymbol || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || resultKind != this.ResultKind || !TypeSymbol.Equals(receiverType, this.ReceiverType, TypeCompareKind.ConsiderEverything) || binderOpt != this.BinderOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6436
            {
6437
                var result = new BoundObjectInitializerMember(this.Syntax, memberSymbol, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, argsToParamsOpt, resultKind, receiverType, binderOpt, type, this.HasErrors);
6438
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6439 6440 6441 6442
                return result;
            }
            return this;
        }
6443 6444 6445 6446 6447 6448 6449

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundObjectInitializerMember(this.Syntax, this.MemberSymbol, this.Arguments, this.ArgumentNamesOpt, this.ArgumentRefKindsOpt, this.Expanded, this.ArgsToParamsOpt, this.ResultKind, this.ReceiverType, this.BinderOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6450 6451 6452 6453
    }

    internal sealed partial class BoundDynamicObjectInitializerMember : BoundExpression
    {
6454
        public BoundDynamicObjectInitializerMember(SyntaxNode syntax, string memberName, TypeSymbol receiverType, TypeSymbol type, bool hasErrors)
D
DotNet Bot 已提交
6455 6456 6457
            : base(BoundKind.DynamicObjectInitializerMember, syntax, type, hasErrors)
        {

6458 6459 6460
            Debug.Assert((object)memberName != null, "Field 'memberName' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)receiverType != null, "Field 'receiverType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6461 6462

            this.MemberName = memberName;
6463
            this.ReceiverType = receiverType;
D
DotNet Bot 已提交
6464 6465
        }

6466
        public BoundDynamicObjectInitializerMember(SyntaxNode syntax, string memberName, TypeSymbol receiverType, TypeSymbol type)
D
DotNet Bot 已提交
6467 6468 6469
            : base(BoundKind.DynamicObjectInitializerMember, syntax, type)
        {

6470 6471 6472
            Debug.Assert((object)memberName != null, "Field 'memberName' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)receiverType != null, "Field 'receiverType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6473 6474

            this.MemberName = memberName;
6475
            this.ReceiverType = receiverType;
D
DotNet Bot 已提交
6476 6477 6478 6479 6480
        }


        public string MemberName { get; }

6481 6482
        public TypeSymbol ReceiverType { get; }

D
DotNet Bot 已提交
6483 6484 6485 6486 6487
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDynamicObjectInitializerMember(this);
        }

6488
        public BoundDynamicObjectInitializerMember Update(string memberName, TypeSymbol receiverType, TypeSymbol type)
D
DotNet Bot 已提交
6489
        {
6490
            if (memberName != this.MemberName || !TypeSymbol.Equals(receiverType, this.ReceiverType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6491
            {
6492
                var result = new BoundDynamicObjectInitializerMember(this.Syntax, memberName, receiverType, type, this.HasErrors);
6493
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6494 6495 6496 6497
                return result;
            }
            return this;
        }
6498 6499 6500 6501 6502 6503 6504

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDynamicObjectInitializerMember(this.Syntax, this.MemberName, this.ReceiverType, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6505 6506
    }

6507
    internal sealed partial class BoundCollectionInitializerExpression : BoundObjectInitializerExpressionBase
D
DotNet Bot 已提交
6508 6509
    {
        public BoundCollectionInitializerExpression(SyntaxNode syntax, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6510
            : base(BoundKind.CollectionInitializerExpression, syntax, initializers, type, hasErrors || initializers.HasErrors())
D
DotNet Bot 已提交
6511 6512 6513
        {

            Debug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6514
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitCollectionInitializerExpression(this);
        }

        public BoundCollectionInitializerExpression Update(ImmutableArray<BoundExpression> initializers, TypeSymbol type)
        {
6526
            if (initializers != this.Initializers || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6527 6528
            {
                var result = new BoundCollectionInitializerExpression(this.Syntax, initializers, type, this.HasErrors);
6529
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6530 6531 6532 6533
                return result;
            }
            return this;
        }
6534 6535 6536 6537 6538 6539 6540

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundCollectionInitializerExpression(this.Syntax, this.Initializers, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6541 6542 6543 6544
    }

    internal sealed partial class BoundCollectionElementInitializer : BoundExpression
    {
6545 6546
        public BoundCollectionElementInitializer(SyntaxNode syntax, MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, bool invokedAsExtensionMethod, LookupResultKind resultKind, Binder binderOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.CollectionElementInitializer, syntax, type, hasErrors || arguments.HasErrors() || implicitReceiverOpt.HasErrors())
D
DotNet Bot 已提交
6547 6548
        {

6549
            Debug.Assert((object)addMethod != null, "Field 'addMethod' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6550
            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6551
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6552 6553 6554

            this.AddMethod = addMethod;
            this.Arguments = arguments;
6555
            this.ImplicitReceiverOpt = implicitReceiverOpt;
D
DotNet Bot 已提交
6556 6557 6558 6559
            this.Expanded = expanded;
            this.ArgsToParamsOpt = argsToParamsOpt;
            this.InvokedAsExtensionMethod = invokedAsExtensionMethod;
            this._ResultKind = resultKind;
6560
            this.BinderOpt = binderOpt;
D
DotNet Bot 已提交
6561 6562 6563 6564 6565 6566 6567
        }


        public MethodSymbol AddMethod { get; }

        public ImmutableArray<BoundExpression> Arguments { get; }

6568 6569
        public BoundExpression ImplicitReceiverOpt { get; }

D
DotNet Bot 已提交
6570 6571 6572 6573 6574 6575 6576 6577 6578
        public bool Expanded { get; }

        public ImmutableArray<int> ArgsToParamsOpt { get; }

        public bool InvokedAsExtensionMethod { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

6579 6580
        public Binder BinderOpt { get; }

D
DotNet Bot 已提交
6581 6582 6583 6584 6585
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitCollectionElementInitializer(this);
        }

6586
        public BoundCollectionElementInitializer Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, bool invokedAsExtensionMethod, LookupResultKind resultKind, Binder binderOpt, TypeSymbol type)
D
DotNet Bot 已提交
6587
        {
6588
            if (addMethod != this.AddMethod || arguments != this.Arguments || implicitReceiverOpt != this.ImplicitReceiverOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || invokedAsExtensionMethod != this.InvokedAsExtensionMethod || resultKind != this.ResultKind || binderOpt != this.BinderOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6589
            {
6590
                var result = new BoundCollectionElementInitializer(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, invokedAsExtensionMethod, resultKind, binderOpt, type, this.HasErrors);
6591
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6592 6593 6594 6595
                return result;
            }
            return this;
        }
6596 6597 6598 6599 6600 6601 6602

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundCollectionElementInitializer(this.Syntax, this.AddMethod, this.Arguments, this.ImplicitReceiverOpt, this.Expanded, this.ArgsToParamsOpt, this.InvokedAsExtensionMethod, this.ResultKind, this.BinderOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6603 6604
    }

6605
    internal sealed partial class BoundDynamicCollectionElementInitializer : BoundDynamicInvocableBase
D
DotNet Bot 已提交
6606
    {
6607 6608
        public BoundDynamicCollectionElementInitializer(SyntaxNode syntax, ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.DynamicCollectionElementInitializer, syntax, expression, arguments, type, hasErrors || expression.HasErrors() || arguments.HasErrors())
D
DotNet Bot 已提交
6609 6610 6611
        {

            Debug.Assert(!applicableMethods.IsDefault, "Field 'applicableMethods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6612
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6613
            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6614
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626

            this.ApplicableMethods = applicableMethods;
        }


        public ImmutableArray<MethodSymbol> ApplicableMethods { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDynamicCollectionElementInitializer(this);
        }

6627
        public BoundDynamicCollectionElementInitializer Update(ImmutableArray<MethodSymbol> applicableMethods, BoundExpression expression, ImmutableArray<BoundExpression> arguments, TypeSymbol type)
D
DotNet Bot 已提交
6628
        {
6629
            if (applicableMethods != this.ApplicableMethods || expression != this.Expression || arguments != this.Arguments || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6630
            {
6631
                var result = new BoundDynamicCollectionElementInitializer(this.Syntax, applicableMethods, expression, arguments, type, this.HasErrors);
6632
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6633 6634 6635 6636
                return result;
            }
            return this;
        }
6637 6638 6639 6640 6641 6642 6643

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDynamicCollectionElementInitializer(this.Syntax, this.ApplicableMethods, this.Expression, this.Arguments, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6644 6645 6646 6647 6648 6649 6650 6651
    }

    internal sealed partial class BoundImplicitReceiver : BoundExpression
    {
        public BoundImplicitReceiver(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.ImplicitReceiver, syntax, type, hasErrors)
        {

6652
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6653 6654 6655 6656 6657 6658 6659

        }

        public BoundImplicitReceiver(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.ImplicitReceiver, syntax, type)
        {

6660
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitImplicitReceiver(this);
        }

        public BoundImplicitReceiver Update(TypeSymbol type)
        {
6672
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6673 6674
            {
                var result = new BoundImplicitReceiver(this.Syntax, type, this.HasErrors);
6675
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6676 6677 6678 6679
                return result;
            }
            return this;
        }
6680 6681 6682 6683 6684 6685 6686

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundImplicitReceiver(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6687 6688 6689 6690 6691 6692 6693 6694
    }

    internal sealed partial class BoundAnonymousObjectCreationExpression : BoundExpression
    {
        public BoundAnonymousObjectCreationExpression(SyntaxNode syntax, MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<BoundAnonymousPropertyDeclaration> declarations, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.AnonymousObjectCreationExpression, syntax, type, hasErrors || arguments.HasErrors() || declarations.HasErrors())
        {

6695
            Debug.Assert((object)constructor != null, "Field 'constructor' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6696 6697
            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!declarations.IsDefault, "Field 'declarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6698
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718

            this.Constructor = constructor;
            this.Arguments = arguments;
            this.Declarations = declarations;
        }


        public MethodSymbol Constructor { get; }

        public ImmutableArray<BoundExpression> Arguments { get; }

        public ImmutableArray<BoundAnonymousPropertyDeclaration> Declarations { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitAnonymousObjectCreationExpression(this);
        }

        public BoundAnonymousObjectCreationExpression Update(MethodSymbol constructor, ImmutableArray<BoundExpression> arguments, ImmutableArray<BoundAnonymousPropertyDeclaration> declarations, TypeSymbol type)
        {
6719
            if (constructor != this.Constructor || arguments != this.Arguments || declarations != this.Declarations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6720 6721
            {
                var result = new BoundAnonymousObjectCreationExpression(this.Syntax, constructor, arguments, declarations, type, this.HasErrors);
6722
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6723 6724 6725 6726
                return result;
            }
            return this;
        }
6727 6728 6729 6730 6731 6732 6733

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundAnonymousObjectCreationExpression(this.Syntax, this.Constructor, this.Arguments, this.Declarations, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6734 6735 6736 6737 6738 6739 6740 6741
    }

    internal sealed partial class BoundAnonymousPropertyDeclaration : BoundExpression
    {
        public BoundAnonymousPropertyDeclaration(SyntaxNode syntax, PropertySymbol property, TypeSymbol type, bool hasErrors)
            : base(BoundKind.AnonymousPropertyDeclaration, syntax, type, hasErrors)
        {

6742 6743
            Debug.Assert((object)property != null, "Field 'property' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6744 6745 6746 6747 6748 6749 6750 6751

            this.Property = property;
        }

        public BoundAnonymousPropertyDeclaration(SyntaxNode syntax, PropertySymbol property, TypeSymbol type)
            : base(BoundKind.AnonymousPropertyDeclaration, syntax, type)
        {

6752 6753
            Debug.Assert((object)property != null, "Field 'property' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767

            this.Property = property;
        }


        public PropertySymbol Property { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitAnonymousPropertyDeclaration(this);
        }

        public BoundAnonymousPropertyDeclaration Update(PropertySymbol property, TypeSymbol type)
        {
6768
            if (property != this.Property || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6769 6770
            {
                var result = new BoundAnonymousPropertyDeclaration(this.Syntax, property, type, this.HasErrors);
6771
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6772 6773 6774 6775
                return result;
            }
            return this;
        }
6776 6777 6778 6779 6780 6781 6782

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundAnonymousPropertyDeclaration(this.Syntax, this.Property, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6783 6784 6785 6786
    }

    internal sealed partial class BoundNewT : BoundExpression
    {
6787
        public BoundNewT(SyntaxNode syntax, BoundObjectInitializerExpressionBase initializerExpressionOpt, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
6788 6789 6790
            : base(BoundKind.NewT, syntax, type, hasErrors || initializerExpressionOpt.HasErrors())
        {

6791
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6792 6793 6794 6795 6796

            this.InitializerExpressionOpt = initializerExpressionOpt;
        }


6797
        public BoundObjectInitializerExpressionBase InitializerExpressionOpt { get; }
D
DotNet Bot 已提交
6798 6799 6800 6801 6802 6803

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitNewT(this);
        }

6804
        public BoundNewT Update(BoundObjectInitializerExpressionBase initializerExpressionOpt, TypeSymbol type)
D
DotNet Bot 已提交
6805
        {
6806
            if (initializerExpressionOpt != this.InitializerExpressionOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6807 6808
            {
                var result = new BoundNewT(this.Syntax, initializerExpressionOpt, type, this.HasErrors);
6809
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6810 6811 6812 6813
                return result;
            }
            return this;
        }
6814 6815 6816 6817 6818 6819 6820

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundNewT(this.Syntax, this.InitializerExpressionOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6821 6822 6823 6824 6825 6826 6827 6828
    }

    internal sealed partial class BoundDelegateCreationExpression : BoundExpression
    {
        public BoundDelegateCreationExpression(SyntaxNode syntax, BoundExpression argument, MethodSymbol methodOpt, bool isExtensionMethod, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.DelegateCreationExpression, syntax, type, hasErrors || argument.HasErrors())
        {

6829 6830
            Debug.Assert((object)argument != null, "Field 'argument' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850

            this.Argument = argument;
            this.MethodOpt = methodOpt;
            this.IsExtensionMethod = isExtensionMethod;
        }


        public BoundExpression Argument { get; }

        public MethodSymbol MethodOpt { get; }

        public bool IsExtensionMethod { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDelegateCreationExpression(this);
        }

        public BoundDelegateCreationExpression Update(BoundExpression argument, MethodSymbol methodOpt, bool isExtensionMethod, TypeSymbol type)
        {
6851
            if (argument != this.Argument || methodOpt != this.MethodOpt || isExtensionMethod != this.IsExtensionMethod || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6852 6853
            {
                var result = new BoundDelegateCreationExpression(this.Syntax, argument, methodOpt, isExtensionMethod, type, this.HasErrors);
6854
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6855 6856 6857 6858
                return result;
            }
            return this;
        }
6859 6860 6861 6862 6863 6864 6865

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDelegateCreationExpression(this.Syntax, this.Argument, this.MethodOpt, this.IsExtensionMethod, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6866 6867 6868 6869 6870 6871 6872 6873 6874
    }

    internal sealed partial class BoundArrayCreation : BoundExpression
    {
        public BoundArrayCreation(SyntaxNode syntax, ImmutableArray<BoundExpression> bounds, BoundArrayInitialization initializerOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ArrayCreation, syntax, type, hasErrors || bounds.HasErrors() || initializerOpt.HasErrors())
        {

            Debug.Assert(!bounds.IsDefault, "Field 'bounds' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6875
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892

            this.Bounds = bounds;
            this.InitializerOpt = initializerOpt;
        }


        public ImmutableArray<BoundExpression> Bounds { get; }

        public BoundArrayInitialization InitializerOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitArrayCreation(this);
        }

        public BoundArrayCreation Update(ImmutableArray<BoundExpression> bounds, BoundArrayInitialization initializerOpt, TypeSymbol type)
        {
6893
            if (bounds != this.Bounds || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
6894 6895
            {
                var result = new BoundArrayCreation(this.Syntax, bounds, initializerOpt, type, this.HasErrors);
6896
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6897 6898 6899 6900
                return result;
            }
            return this;
        }
6901 6902 6903 6904 6905 6906 6907

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundArrayCreation(this.Syntax, this.Bounds, this.InitializerOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933
    }

    internal sealed partial class BoundArrayInitialization : BoundExpression
    {
        public BoundArrayInitialization(SyntaxNode syntax, ImmutableArray<BoundExpression> initializers, bool hasErrors = false)
            : base(BoundKind.ArrayInitialization, syntax, null, hasErrors || initializers.HasErrors())
        {

            Debug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.Initializers = initializers;
        }


        public ImmutableArray<BoundExpression> Initializers { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitArrayInitialization(this);
        }

        public BoundArrayInitialization Update(ImmutableArray<BoundExpression> initializers)
        {
            if (initializers != this.Initializers)
            {
                var result = new BoundArrayInitialization(this.Syntax, initializers, this.HasErrors);
6934
                result.CopyAttributes(this);
D
DotNet Bot 已提交
6935 6936 6937 6938
                return result;
            }
            return this;
        }
6939 6940 6941 6942 6943 6944 6945

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundArrayInitialization(this.Syntax, this.Initializers, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
6946 6947
    }

6948
    internal partial class BoundStackAllocArrayCreation : BoundExpression
D
DotNet Bot 已提交
6949
    {
6950
        protected BoundStackAllocArrayCreation(BoundKind kind, SyntaxNode syntax, TypeSymbol elementType, BoundExpression count, BoundArrayInitialization initializerOpt, TypeSymbol type, bool hasErrors = false)
6951 6952 6953
            : base(kind, syntax, type, hasErrors)
        {

6954 6955
            Debug.Assert((object)elementType != null, "Field 'elementType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)count != null, "Field 'count' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
6956 6957 6958

            this.ElementType = elementType;
            this.Count = count;
6959
            this.InitializerOpt = initializerOpt;
6960 6961
        }

6962 6963
        public BoundStackAllocArrayCreation(SyntaxNode syntax, TypeSymbol elementType, BoundExpression count, BoundArrayInitialization initializerOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.StackAllocArrayCreation, syntax, type, hasErrors || count.HasErrors() || initializerOpt.HasErrors())
D
DotNet Bot 已提交
6964 6965
        {

6966 6967
            Debug.Assert((object)elementType != null, "Field 'elementType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)count != null, "Field 'count' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
6968

6969
            this.ElementType = elementType;
D
DotNet Bot 已提交
6970
            this.Count = count;
6971
            this.InitializerOpt = initializerOpt;
D
DotNet Bot 已提交
6972 6973 6974
        }


6975 6976
        public TypeSymbol ElementType { get; }

D
DotNet Bot 已提交
6977 6978
        public BoundExpression Count { get; }

6979 6980
        public BoundArrayInitialization InitializerOpt { get; }

D
DotNet Bot 已提交
6981 6982 6983 6984 6985
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitStackAllocArrayCreation(this);
        }

6986
        public BoundStackAllocArrayCreation Update(TypeSymbol elementType, BoundExpression count, BoundArrayInitialization initializerOpt, TypeSymbol type)
6987
        {
6988
            if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.ConsiderEverything) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
6989
            {
6990
                var result = new BoundStackAllocArrayCreation(this.Syntax, elementType, count, initializerOpt, type, this.HasErrors);
6991
                result.CopyAttributes(this);
6992 6993 6994 6995
                return result;
            }
            return this;
        }
6996 6997 6998 6999 7000 7001 7002

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundStackAllocArrayCreation(this.Syntax, this.ElementType, this.Count, this.InitializerOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
7003 7004
    }

7005
    internal sealed partial class BoundConvertedStackAllocExpression : BoundStackAllocArrayCreation
7006
    {
7007 7008
        public BoundConvertedStackAllocExpression(SyntaxNode syntax, TypeSymbol elementType, BoundExpression count, BoundArrayInitialization initializerOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ConvertedStackAllocExpression, syntax, elementType, count, initializerOpt, type, hasErrors || count.HasErrors() || initializerOpt.HasErrors())
7009 7010
        {

7011 7012 7013
            Debug.Assert((object)elementType != null, "Field 'elementType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)count != null, "Field 'count' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7014 7015 7016 7017 7018

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
D
DotNet Bot 已提交
7019
        {
7020 7021 7022
            return visitor.VisitConvertedStackAllocExpression(this);
        }

7023
        public new BoundConvertedStackAllocExpression Update(TypeSymbol elementType, BoundExpression count, BoundArrayInitialization initializerOpt, TypeSymbol type)
D
DotNet Bot 已提交
7024
        {
7025
            if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.ConsiderEverything) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7026
            {
7027
                var result = new BoundConvertedStackAllocExpression(this.Syntax, elementType, count, initializerOpt, type, this.HasErrors);
7028
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7029 7030 7031 7032
                return result;
            }
            return this;
        }
7033 7034 7035 7036 7037 7038 7039

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundConvertedStackAllocExpression(this.Syntax, this.ElementType, this.Count, this.InitializerOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7040 7041 7042 7043
    }

    internal sealed partial class BoundFieldAccess : BoundExpression
    {
7044
        public BoundFieldAccess(SyntaxNode syntax, BoundExpression receiverOpt, FieldSymbol fieldSymbol, ConstantValue constantValueOpt, LookupResultKind resultKind, bool isByValue, bool isDeclaration, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
7045 7046 7047
            : base(BoundKind.FieldAccess, syntax, type, hasErrors || receiverOpt.HasErrors())
        {

7048 7049
            Debug.Assert((object)fieldSymbol != null, "Field 'fieldSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7050 7051 7052 7053 7054 7055

            this.ReceiverOpt = receiverOpt;
            this.FieldSymbol = fieldSymbol;
            this.ConstantValueOpt = constantValueOpt;
            this._ResultKind = resultKind;
            this.IsByValue = isByValue;
7056
            this.IsDeclaration = isDeclaration;
D
DotNet Bot 已提交
7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070
        }


        public BoundExpression ReceiverOpt { get; }

        public FieldSymbol FieldSymbol { get; }

        public ConstantValue ConstantValueOpt { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public bool IsByValue { get; }

7071 7072
        public bool IsDeclaration { get; }

D
DotNet Bot 已提交
7073 7074 7075 7076 7077
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitFieldAccess(this);
        }

7078
        public BoundFieldAccess Update(BoundExpression receiverOpt, FieldSymbol fieldSymbol, ConstantValue constantValueOpt, LookupResultKind resultKind, bool isByValue, bool isDeclaration, TypeSymbol type)
D
DotNet Bot 已提交
7079
        {
7080
            if (receiverOpt != this.ReceiverOpt || fieldSymbol != this.FieldSymbol || constantValueOpt != this.ConstantValueOpt || resultKind != this.ResultKind || isByValue != this.IsByValue || isDeclaration != this.IsDeclaration || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7081
            {
7082
                var result = new BoundFieldAccess(this.Syntax, receiverOpt, fieldSymbol, constantValueOpt, resultKind, isByValue, isDeclaration, type, this.HasErrors);
7083
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7084 7085 7086 7087
                return result;
            }
            return this;
        }
7088 7089 7090 7091 7092 7093 7094

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundFieldAccess(this.Syntax, this.ReceiverOpt, this.FieldSymbol, this.ConstantValueOpt, this.ResultKind, this.IsByValue, this.IsDeclaration, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7095 7096 7097 7098 7099 7100 7101 7102
    }

    internal sealed partial class BoundHoistedFieldAccess : BoundExpression
    {
        public BoundHoistedFieldAccess(SyntaxNode syntax, FieldSymbol fieldSymbol, TypeSymbol type, bool hasErrors)
            : base(BoundKind.HoistedFieldAccess, syntax, type, hasErrors)
        {

7103 7104
            Debug.Assert((object)fieldSymbol != null, "Field 'fieldSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7105 7106 7107 7108 7109 7110 7111 7112

            this.FieldSymbol = fieldSymbol;
        }

        public BoundHoistedFieldAccess(SyntaxNode syntax, FieldSymbol fieldSymbol, TypeSymbol type)
            : base(BoundKind.HoistedFieldAccess, syntax, type)
        {

7113 7114
            Debug.Assert((object)fieldSymbol != null, "Field 'fieldSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128

            this.FieldSymbol = fieldSymbol;
        }


        public FieldSymbol FieldSymbol { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitHoistedFieldAccess(this);
        }

        public BoundHoistedFieldAccess Update(FieldSymbol fieldSymbol, TypeSymbol type)
        {
7129
            if (fieldSymbol != this.FieldSymbol || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7130 7131
            {
                var result = new BoundHoistedFieldAccess(this.Syntax, fieldSymbol, type, this.HasErrors);
7132
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7133 7134 7135 7136
                return result;
            }
            return this;
        }
7137 7138 7139 7140 7141 7142 7143

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundHoistedFieldAccess(this.Syntax, this.FieldSymbol, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7144 7145 7146 7147 7148 7149 7150 7151
    }

    internal sealed partial class BoundPropertyAccess : BoundExpression
    {
        public BoundPropertyAccess(SyntaxNode syntax, BoundExpression receiverOpt, PropertySymbol propertySymbol, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.PropertyAccess, syntax, type, hasErrors || receiverOpt.HasErrors())
        {

7152 7153
            Debug.Assert((object)propertySymbol != null, "Field 'propertySymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174

            this.ReceiverOpt = receiverOpt;
            this.PropertySymbol = propertySymbol;
            this._ResultKind = resultKind;
        }


        public BoundExpression ReceiverOpt { get; }

        public PropertySymbol PropertySymbol { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitPropertyAccess(this);
        }

        public BoundPropertyAccess Update(BoundExpression receiverOpt, PropertySymbol propertySymbol, LookupResultKind resultKind, TypeSymbol type)
        {
7175
            if (receiverOpt != this.ReceiverOpt || propertySymbol != this.PropertySymbol || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7176 7177
            {
                var result = new BoundPropertyAccess(this.Syntax, receiverOpt, propertySymbol, resultKind, type, this.HasErrors);
7178
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7179 7180 7181 7182
                return result;
            }
            return this;
        }
7183 7184 7185 7186 7187 7188 7189

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundPropertyAccess(this.Syntax, this.ReceiverOpt, this.PropertySymbol, this.ResultKind, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7190 7191 7192 7193 7194 7195 7196 7197
    }

    internal sealed partial class BoundEventAccess : BoundExpression
    {
        public BoundEventAccess(SyntaxNode syntax, BoundExpression receiverOpt, EventSymbol eventSymbol, bool isUsableAsField, LookupResultKind resultKind, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.EventAccess, syntax, type, hasErrors || receiverOpt.HasErrors())
        {

7198 7199
            Debug.Assert((object)eventSymbol != null, "Field 'eventSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223

            this.ReceiverOpt = receiverOpt;
            this.EventSymbol = eventSymbol;
            this.IsUsableAsField = isUsableAsField;
            this._ResultKind = resultKind;
        }


        public BoundExpression ReceiverOpt { get; }

        public EventSymbol EventSymbol { get; }

        public bool IsUsableAsField { get; }

        private readonly LookupResultKind _ResultKind;
        public override LookupResultKind ResultKind { get { return _ResultKind;} }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitEventAccess(this);
        }

        public BoundEventAccess Update(BoundExpression receiverOpt, EventSymbol eventSymbol, bool isUsableAsField, LookupResultKind resultKind, TypeSymbol type)
        {
7224
            if (receiverOpt != this.ReceiverOpt || eventSymbol != this.EventSymbol || isUsableAsField != this.IsUsableAsField || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7225 7226
            {
                var result = new BoundEventAccess(this.Syntax, receiverOpt, eventSymbol, isUsableAsField, resultKind, type, this.HasErrors);
7227
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7228 7229 7230 7231
                return result;
            }
            return this;
        }
7232 7233 7234 7235 7236 7237 7238

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundEventAccess(this.Syntax, this.ReceiverOpt, this.EventSymbol, this.IsUsableAsField, this.ResultKind, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7239 7240 7241 7242
    }

    internal sealed partial class BoundIndexerAccess : BoundExpression
    {
G
Gen Lu 已提交
7243
        public BoundIndexerAccess(SyntaxNode syntax, BoundExpression receiverOpt, PropertySymbol indexer, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, Binder binderOpt, bool useSetterForDefaultArgumentGeneration, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
7244 7245 7246
            : base(BoundKind.IndexerAccess, syntax, type, hasErrors || receiverOpt.HasErrors() || arguments.HasErrors())
        {

7247
            Debug.Assert((object)indexer != null, "Field 'indexer' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7248
            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7249
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7250 7251 7252 7253 7254 7255 7256 7257

            this.ReceiverOpt = receiverOpt;
            this.Indexer = indexer;
            this.Arguments = arguments;
            this.ArgumentNamesOpt = argumentNamesOpt;
            this.ArgumentRefKindsOpt = argumentRefKindsOpt;
            this.Expanded = expanded;
            this.ArgsToParamsOpt = argsToParamsOpt;
7258
            this.BinderOpt = binderOpt;
G
Gen Lu 已提交
7259
            this.UseSetterForDefaultArgumentGeneration = useSetterForDefaultArgumentGeneration;
D
DotNet Bot 已提交
7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276
        }


        public BoundExpression ReceiverOpt { get; }

        public PropertySymbol Indexer { get; }

        public ImmutableArray<BoundExpression> Arguments { get; }

        public ImmutableArray<string> ArgumentNamesOpt { get; }

        public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; }

        public bool Expanded { get; }

        public ImmutableArray<int> ArgsToParamsOpt { get; }

7277 7278
        public Binder BinderOpt { get; }

G
Gen Lu 已提交
7279
        public bool UseSetterForDefaultArgumentGeneration { get; }
7280

D
DotNet Bot 已提交
7281 7282 7283 7284 7285
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitIndexerAccess(this);
        }

G
Gen Lu 已提交
7286
        public BoundIndexerAccess Update(BoundExpression receiverOpt, PropertySymbol indexer, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, Binder binderOpt, bool useSetterForDefaultArgumentGeneration, TypeSymbol type)
D
DotNet Bot 已提交
7287
        {
7288
            if (receiverOpt != this.ReceiverOpt || indexer != this.Indexer || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || binderOpt != this.BinderOpt || useSetterForDefaultArgumentGeneration != this.UseSetterForDefaultArgumentGeneration || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7289
            {
G
Gen Lu 已提交
7290
                var result = new BoundIndexerAccess(this.Syntax, receiverOpt, indexer, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, argsToParamsOpt, binderOpt, useSetterForDefaultArgumentGeneration, type, this.HasErrors);
7291
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7292 7293 7294 7295
                return result;
            }
            return this;
        }
7296 7297 7298 7299 7300 7301 7302

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundIndexerAccess(this.Syntax, this.ReceiverOpt, this.Indexer, this.Arguments, this.ArgumentNamesOpt, this.ArgumentRefKindsOpt, this.Expanded, this.ArgsToParamsOpt, this.BinderOpt, this.UseSetterForDefaultArgumentGeneration, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7303 7304 7305 7306 7307 7308 7309 7310 7311 7312
    }

    internal sealed partial class BoundDynamicIndexerAccess : BoundExpression
    {
        public BoundDynamicIndexerAccess(SyntaxNode syntax, BoundExpression receiverOpt, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<PropertySymbol> applicableIndexers, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.DynamicIndexerAccess, syntax, type, hasErrors || receiverOpt.HasErrors() || arguments.HasErrors())
        {

            Debug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert(!applicableIndexers.IsDefault, "Field 'applicableIndexers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7313
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339

            this.ReceiverOpt = receiverOpt;
            this.Arguments = arguments;
            this.ArgumentNamesOpt = argumentNamesOpt;
            this.ArgumentRefKindsOpt = argumentRefKindsOpt;
            this.ApplicableIndexers = applicableIndexers;
        }


        public BoundExpression ReceiverOpt { get; }

        public ImmutableArray<BoundExpression> Arguments { get; }

        public ImmutableArray<string> ArgumentNamesOpt { get; }

        public ImmutableArray<RefKind> ArgumentRefKindsOpt { get; }

        public ImmutableArray<PropertySymbol> ApplicableIndexers { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDynamicIndexerAccess(this);
        }

        public BoundDynamicIndexerAccess Update(BoundExpression receiverOpt, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, ImmutableArray<PropertySymbol> applicableIndexers, TypeSymbol type)
        {
7340
            if (receiverOpt != this.ReceiverOpt || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || applicableIndexers != this.ApplicableIndexers || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7341 7342
            {
                var result = new BoundDynamicIndexerAccess(this.Syntax, receiverOpt, arguments, argumentNamesOpt, argumentRefKindsOpt, applicableIndexers, type, this.HasErrors);
7343
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7344 7345 7346 7347
                return result;
            }
            return this;
        }
7348 7349 7350 7351 7352 7353 7354

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDynamicIndexerAccess(this.Syntax, this.ReceiverOpt, this.Arguments, this.ArgumentNamesOpt, this.ArgumentRefKindsOpt, this.ApplicableIndexers, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7355 7356 7357 7358
    }

    internal sealed partial class BoundLambda : BoundExpression
    {
7359 7360
        public BoundLambda(SyntaxNode syntax, UnboundLambda unboundLambda, LambdaSymbol symbol, BoundBlock body, ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> diagnostics, Binder binder, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.Lambda, syntax, type, hasErrors || unboundLambda.HasErrors() || body.HasErrors())
D
DotNet Bot 已提交
7361 7362
        {

7363 7364 7365
            Debug.Assert((object)unboundLambda != null, "Field 'unboundLambda' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)symbol != null, "Field 'symbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)body != null, "Field 'body' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7366
            Debug.Assert(!diagnostics.IsDefault, "Field 'diagnostics' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7367
            Debug.Assert((object)binder != null, "Field 'binder' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7368

7369
            this.UnboundLambda = unboundLambda;
D
DotNet Bot 已提交
7370 7371 7372 7373 7374 7375 7376
            this.Symbol = symbol;
            this.Body = body;
            this.Diagnostics = diagnostics;
            this.Binder = binder;
        }


7377 7378
        public UnboundLambda UnboundLambda { get; }

D
DotNet Bot 已提交
7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391
        public LambdaSymbol Symbol { get; }

        public BoundBlock Body { get; }

        public ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> Diagnostics { get; }

        public Binder Binder { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitLambda(this);
        }

7392
        public BoundLambda Update(UnboundLambda unboundLambda, LambdaSymbol symbol, BoundBlock body, ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> diagnostics, Binder binder, TypeSymbol type)
D
DotNet Bot 已提交
7393
        {
7394
            if (unboundLambda != this.UnboundLambda || symbol != this.Symbol || body != this.Body || diagnostics != this.Diagnostics || binder != this.Binder || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7395
            {
7396
                var result = new BoundLambda(this.Syntax, unboundLambda, symbol, body, diagnostics, binder, type, this.HasErrors);
7397
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409
                return result;
            }
            return this;
        }
    }

    internal sealed partial class UnboundLambda : BoundExpression
    {
        public UnboundLambda(SyntaxNode syntax, UnboundLambdaState data, bool hasErrors)
            : base(BoundKind.UnboundLambda, syntax, null, hasErrors)
        {

7410
            Debug.Assert((object)data != null, "Field 'data' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7411 7412 7413 7414 7415 7416 7417 7418

            this.Data = data;
        }

        public UnboundLambda(SyntaxNode syntax, UnboundLambdaState data)
            : base(BoundKind.UnboundLambda, syntax, null)
        {

7419
            Debug.Assert((object)data != null, "Field 'data' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436

            this.Data = data;
        }


        public UnboundLambdaState Data { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitUnboundLambda(this);
        }

        public UnboundLambda Update(UnboundLambdaState data)
        {
            if (data != this.Data)
            {
                var result = new UnboundLambda(this.Syntax, data, this.HasErrors);
7437
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7438 7439 7440 7441
                return result;
            }
            return this;
        }
7442 7443 7444 7445 7446 7447 7448

        protected override BoundExpression ShallowClone()
        {
            var result = new UnboundLambda(this.Syntax, this.Data, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7449 7450 7451 7452 7453 7454 7455 7456
    }

    internal sealed partial class BoundQueryClause : BoundExpression
    {
        public BoundQueryClause(SyntaxNode syntax, BoundExpression value, RangeVariableSymbol definedSymbol, Binder binder, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.QueryClause, syntax, type, hasErrors || value.HasErrors())
        {

7457 7458 7459
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)binder != null, "Field 'binder' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479

            this.Value = value;
            this.DefinedSymbol = definedSymbol;
            this.Binder = binder;
        }


        public BoundExpression Value { get; }

        public RangeVariableSymbol DefinedSymbol { get; }

        public Binder Binder { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitQueryClause(this);
        }

        public BoundQueryClause Update(BoundExpression value, RangeVariableSymbol definedSymbol, Binder binder, TypeSymbol type)
        {
7480
            if (value != this.Value || definedSymbol != this.DefinedSymbol || binder != this.Binder || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7481 7482
            {
                var result = new BoundQueryClause(this.Syntax, value, definedSymbol, binder, type, this.HasErrors);
7483
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundTypeOrInstanceInitializers : BoundStatementList
    {
        public BoundTypeOrInstanceInitializers(SyntaxNode syntax, ImmutableArray<BoundStatement> statements, bool hasErrors = false)
            : base(BoundKind.TypeOrInstanceInitializers, syntax, statements, hasErrors || statements.HasErrors())
        {

            Debug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitTypeOrInstanceInitializers(this);
        }

        public new BoundTypeOrInstanceInitializers Update(ImmutableArray<BoundStatement> statements)
        {
            if (statements != this.Statements)
            {
                var result = new BoundTypeOrInstanceInitializers(this.Syntax, statements, this.HasErrors);
7511
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundNameOfOperator : BoundExpression
    {
        public BoundNameOfOperator(SyntaxNode syntax, BoundExpression argument, ConstantValue constantValueOpt, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.NameOfOperator, syntax, type, hasErrors || argument.HasErrors())
        {

7524 7525 7526
            Debug.Assert((object)argument != null, "Field 'argument' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)constantValueOpt != null, "Field 'constantValueOpt' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)type != null, "Field 'type' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543

            this.Argument = argument;
            this.ConstantValueOpt = constantValueOpt;
        }


        public BoundExpression Argument { get; }

        public ConstantValue ConstantValueOpt { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitNameOfOperator(this);
        }

        public BoundNameOfOperator Update(BoundExpression argument, ConstantValue constantValueOpt, TypeSymbol type)
        {
7544
            if (argument != this.Argument || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7545 7546
            {
                var result = new BoundNameOfOperator(this.Syntax, argument, constantValueOpt, type, this.HasErrors);
7547
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7548 7549 7550 7551
                return result;
            }
            return this;
        }
7552 7553 7554 7555 7556 7557 7558

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundNameOfOperator(this.Syntax, this.Argument, this.ConstantValueOpt, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581
    }

    internal sealed partial class BoundInterpolatedString : BoundExpression
    {
        public BoundInterpolatedString(SyntaxNode syntax, ImmutableArray<BoundExpression> parts, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.InterpolatedString, syntax, type, hasErrors || parts.HasErrors())
        {

            Debug.Assert(!parts.IsDefault, "Field 'parts' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.Parts = parts;
        }


        public ImmutableArray<BoundExpression> Parts { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitInterpolatedString(this);
        }

        public BoundInterpolatedString Update(ImmutableArray<BoundExpression> parts, TypeSymbol type)
        {
7582
            if (parts != this.Parts || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7583 7584
            {
                var result = new BoundInterpolatedString(this.Syntax, parts, type, this.HasErrors);
7585
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7586 7587 7588 7589
                return result;
            }
            return this;
        }
7590 7591 7592 7593 7594 7595 7596

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundInterpolatedString(this.Syntax, this.Parts, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7597 7598 7599 7600
    }

    internal sealed partial class BoundStringInsert : BoundExpression
    {
M
Manish Vasani 已提交
7601
        public BoundStringInsert(SyntaxNode syntax, BoundExpression value, BoundExpression alignment, BoundLiteral format, TypeSymbol type, bool hasErrors = false)
D
DotNet Bot 已提交
7602 7603 7604
            : base(BoundKind.StringInsert, syntax, type, hasErrors || value.HasErrors() || alignment.HasErrors() || format.HasErrors())
        {

7605
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616

            this.Value = value;
            this.Alignment = alignment;
            this.Format = format;
        }


        public BoundExpression Value { get; }

        public BoundExpression Alignment { get; }

M
Manish Vasani 已提交
7617
        public BoundLiteral Format { get; }
D
DotNet Bot 已提交
7618 7619 7620 7621 7622 7623

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitStringInsert(this);
        }

M
Manish Vasani 已提交
7624
        public BoundStringInsert Update(BoundExpression value, BoundExpression alignment, BoundLiteral format, TypeSymbol type)
D
DotNet Bot 已提交
7625
        {
7626
            if (value != this.Value || alignment != this.Alignment || format != this.Format || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7627 7628
            {
                var result = new BoundStringInsert(this.Syntax, value, alignment, format, type, this.HasErrors);
7629
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7630 7631 7632 7633
                return result;
            }
            return this;
        }
7634 7635 7636 7637 7638 7639 7640

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundStringInsert(this.Syntax, this.Value, this.Alignment, this.Format, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7641 7642 7643 7644
    }

    internal sealed partial class BoundIsPatternExpression : BoundExpression
    {
7645 7646
        public BoundIsPatternExpression(SyntaxNode syntax, BoundExpression expression, BoundPattern pattern, BoundDecisionDag decisionDag, LabelSymbol whenTrueLabel, LabelSymbol whenFalseLabel, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.IsPatternExpression, syntax, type, hasErrors || expression.HasErrors() || pattern.HasErrors() || decisionDag.HasErrors())
D
DotNet Bot 已提交
7647 7648
        {

7649 7650
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)pattern != null, "Field 'pattern' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7651 7652 7653
            Debug.Assert((object)decisionDag != null, "Field 'decisionDag' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)whenTrueLabel != null, "Field 'whenTrueLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)whenFalseLabel != null, "Field 'whenFalseLabel' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7654 7655 7656

            this.Expression = expression;
            this.Pattern = pattern;
7657 7658 7659
            this.DecisionDag = decisionDag;
            this.WhenTrueLabel = whenTrueLabel;
            this.WhenFalseLabel = whenFalseLabel;
D
DotNet Bot 已提交
7660 7661 7662 7663 7664 7665 7666
        }


        public BoundExpression Expression { get; }

        public BoundPattern Pattern { get; }

7667 7668 7669 7670 7671 7672
        public BoundDecisionDag DecisionDag { get; }

        public LabelSymbol WhenTrueLabel { get; }

        public LabelSymbol WhenFalseLabel { get; }

D
DotNet Bot 已提交
7673 7674 7675 7676 7677
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitIsPatternExpression(this);
        }

7678
        public BoundIsPatternExpression Update(BoundExpression expression, BoundPattern pattern, BoundDecisionDag decisionDag, LabelSymbol whenTrueLabel, LabelSymbol whenFalseLabel, TypeSymbol type)
D
DotNet Bot 已提交
7679
        {
7680
            if (expression != this.Expression || pattern != this.Pattern || decisionDag != this.DecisionDag || whenTrueLabel != this.WhenTrueLabel || whenFalseLabel != this.WhenFalseLabel || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7681
            {
7682
                var result = new BoundIsPatternExpression(this.Syntax, expression, pattern, decisionDag, whenTrueLabel, whenFalseLabel, type, this.HasErrors);
7683
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7684 7685 7686 7687
                return result;
            }
            return this;
        }
7688 7689 7690 7691 7692 7693 7694

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundIsPatternExpression(this.Syntax, this.Expression, this.Pattern, this.DecisionDag, this.WhenTrueLabel, this.WhenFalseLabel, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7695 7696 7697 7698
    }

    internal abstract partial class BoundPattern : BoundNode
    {
7699
        protected BoundPattern(BoundKind kind, SyntaxNode syntax, TypeSymbol inputType, bool hasErrors)
D
DotNet Bot 已提交
7700 7701
            : base(kind, syntax, hasErrors)
        {
7702

7703
            Debug.Assert((object)inputType != null, "Field 'inputType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7704 7705

            this.InputType = inputType;
D
DotNet Bot 已提交
7706 7707
        }

7708
        protected BoundPattern(BoundKind kind, SyntaxNode syntax, TypeSymbol inputType)
D
DotNet Bot 已提交
7709 7710
            : base(kind, syntax)
        {
7711

7712
            Debug.Assert((object)inputType != null, "Field 'inputType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7713 7714

            this.InputType = inputType;
D
DotNet Bot 已提交
7715 7716
        }

7717 7718

        public TypeSymbol InputType { get; }
D
DotNet Bot 已提交
7719 7720
    }

7721 7722
    internal sealed partial class BoundConstantPattern : BoundPattern
    {
7723 7724
        public BoundConstantPattern(SyntaxNode syntax, BoundExpression value, ConstantValue constantValue, TypeSymbol inputType, bool hasErrors = false)
            : base(BoundKind.ConstantPattern, syntax, inputType, hasErrors || value.HasErrors())
7725 7726
        {

7727 7728 7729
            Debug.Assert((object)value != null, "Field 'value' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)constantValue != null, "Field 'constantValue' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)inputType != null, "Field 'inputType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744

            this.Value = value;
            this.ConstantValue = constantValue;
        }


        public BoundExpression Value { get; }

        public ConstantValue ConstantValue { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitConstantPattern(this);
        }

7745
        public BoundConstantPattern Update(BoundExpression value, ConstantValue constantValue, TypeSymbol inputType)
7746
        {
7747
            if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything))
7748
            {
7749
                var result = new BoundConstantPattern(this.Syntax, value, constantValue, inputType, this.HasErrors);
7750
                result.CopyAttributes(this);
7751 7752 7753 7754 7755 7756 7757 7758
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundDiscardPattern : BoundPattern
    {
7759 7760
        public BoundDiscardPattern(SyntaxNode syntax, TypeSymbol inputType, bool hasErrors)
            : base(BoundKind.DiscardPattern, syntax, inputType, hasErrors)
7761
        {
D
DotNet Bot 已提交
7762

7763
            Debug.Assert((object)inputType != null, "Field 'inputType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7764

7765 7766
        }

7767 7768
        public BoundDiscardPattern(SyntaxNode syntax, TypeSymbol inputType)
            : base(BoundKind.DiscardPattern, syntax, inputType)
7769
        {
D
DotNet Bot 已提交
7770

7771
            Debug.Assert((object)inputType != null, "Field 'inputType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7772

7773 7774 7775 7776 7777 7778
        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDiscardPattern(this);
D
DotNet Bot 已提交
7779 7780
        }

7781
        public BoundDiscardPattern Update(TypeSymbol inputType)
D
DotNet Bot 已提交
7782
        {
7783
            if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7784
            {
7785
                var result = new BoundDiscardPattern(this.Syntax, inputType, this.HasErrors);
7786
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7787 7788 7789 7790 7791 7792 7793 7794
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundDeclarationPattern : BoundPattern
    {
7795 7796
        public BoundDeclarationPattern(SyntaxNode syntax, Symbol variable, BoundExpression variableAccess, BoundTypeExpression declaredType, bool isVar, TypeSymbol inputType, bool hasErrors = false)
            : base(BoundKind.DeclarationPattern, syntax, inputType, hasErrors || variableAccess.HasErrors() || declaredType.HasErrors())
D
DotNet Bot 已提交
7797 7798
        {

7799
            Debug.Assert((object)inputType != null, "Field 'inputType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820

            this.Variable = variable;
            this.VariableAccess = variableAccess;
            this.DeclaredType = declaredType;
            this.IsVar = isVar;
        }


        public Symbol Variable { get; }

        public BoundExpression VariableAccess { get; }

        public BoundTypeExpression DeclaredType { get; }

        public bool IsVar { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDeclarationPattern(this);
        }

7821
        public BoundDeclarationPattern Update(Symbol variable, BoundExpression variableAccess, BoundTypeExpression declaredType, bool isVar, TypeSymbol inputType)
D
DotNet Bot 已提交
7822
        {
7823
            if (variable != this.Variable || variableAccess != this.VariableAccess || declaredType != this.DeclaredType || isVar != this.IsVar || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7824
            {
7825
                var result = new BoundDeclarationPattern(this.Syntax, variable, variableAccess, declaredType, isVar, inputType, this.HasErrors);
7826
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7827 7828 7829 7830 7831 7832
                return result;
            }
            return this;
        }
    }

7833
    internal sealed partial class BoundRecursivePattern : BoundPattern
D
DotNet Bot 已提交
7834
    {
7835 7836
        public BoundRecursivePattern(SyntaxNode syntax, BoundTypeExpression declaredType, MethodSymbol deconstructMethod, ImmutableArray<BoundSubpattern> deconstruction, ImmutableArray<BoundSubpattern> properties, Symbol variable, BoundExpression variableAccess, TypeSymbol inputType, bool hasErrors = false)
            : base(BoundKind.RecursivePattern, syntax, inputType, hasErrors || declaredType.HasErrors() || deconstruction.HasErrors() || properties.HasErrors() || variableAccess.HasErrors())
D
DotNet Bot 已提交
7837 7838
        {

7839
            Debug.Assert((object)inputType != null, "Field 'inputType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7840

7841
            this.DeclaredType = declaredType;
7842
            this.DeconstructMethod = deconstructMethod;
7843
            this.Deconstruction = deconstruction;
7844
            this.Properties = properties;
7845 7846
            this.Variable = variable;
            this.VariableAccess = variableAccess;
D
DotNet Bot 已提交
7847 7848 7849
        }


7850
        public BoundTypeExpression DeclaredType { get; }
D
DotNet Bot 已提交
7851

7852
        public MethodSymbol DeconstructMethod { get; }
7853

7854
        public ImmutableArray<BoundSubpattern> Deconstruction { get; }
7855

7856
        public ImmutableArray<BoundSubpattern> Properties { get; }
7857 7858 7859 7860

        public Symbol Variable { get; }

        public BoundExpression VariableAccess { get; }
D
DotNet Bot 已提交
7861 7862 7863

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
7864
            return visitor.VisitRecursivePattern(this);
D
DotNet Bot 已提交
7865 7866
        }

7867
        public BoundRecursivePattern Update(BoundTypeExpression declaredType, MethodSymbol deconstructMethod, ImmutableArray<BoundSubpattern> deconstruction, ImmutableArray<BoundSubpattern> properties, Symbol variable, BoundExpression variableAccess, TypeSymbol inputType)
D
DotNet Bot 已提交
7868
        {
7869
            if (declaredType != this.DeclaredType || deconstructMethod != this.DeconstructMethod || deconstruction != this.Deconstruction || properties != this.Properties || variable != this.Variable || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7870
            {
7871
                var result = new BoundRecursivePattern(this.Syntax, declaredType, deconstructMethod, deconstruction, properties, variable, variableAccess, inputType, this.HasErrors);
7872
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7873 7874 7875 7876 7877 7878
                return result;
            }
            return this;
        }
    }

7879
    internal sealed partial class BoundITuplePattern : BoundPattern
D
DotNet Bot 已提交
7880
    {
7881 7882
        public BoundITuplePattern(SyntaxNode syntax, MethodSymbol getLengthMethod, MethodSymbol getItemMethod, ImmutableArray<BoundSubpattern> subpatterns, TypeSymbol inputType, bool hasErrors = false)
            : base(BoundKind.ITuplePattern, syntax, inputType, hasErrors || subpatterns.HasErrors())
D
DotNet Bot 已提交
7883
        {
7884

7885 7886
            Debug.Assert((object)getLengthMethod != null, "Field 'getLengthMethod' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
            Debug.Assert((object)getItemMethod != null, "Field 'getItemMethod' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7887
            Debug.Assert(!subpatterns.IsDefault, "Field 'subpatterns' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7888
            Debug.Assert((object)inputType != null, "Field 'inputType' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908

            this.GetLengthMethod = getLengthMethod;
            this.GetItemMethod = getItemMethod;
            this.Subpatterns = subpatterns;
        }


        public MethodSymbol GetLengthMethod { get; }

        public MethodSymbol GetItemMethod { get; }

        public ImmutableArray<BoundSubpattern> Subpatterns { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitITuplePattern(this);
        }

        public BoundITuplePattern Update(MethodSymbol getLengthMethod, MethodSymbol getItemMethod, ImmutableArray<BoundSubpattern> subpatterns, TypeSymbol inputType)
        {
7909
            if (getLengthMethod != this.GetLengthMethod || getItemMethod != this.GetItemMethod || subpatterns != this.Subpatterns || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything))
7910 7911
            {
                var result = new BoundITuplePattern(this.Syntax, getLengthMethod, getItemMethod, subpatterns, inputType, this.HasErrors);
7912
                result.CopyAttributes(this);
7913 7914 7915 7916 7917 7918
                return result;
            }
            return this;
        }
    }

7919 7920 7921 7922 7923 7924
    internal sealed partial class BoundSubpattern : BoundNode
    {
        public BoundSubpattern(SyntaxNode syntax, Symbol symbol, BoundPattern pattern, bool hasErrors = false)
            : base(BoundKind.Subpattern, syntax, hasErrors || pattern.HasErrors())
        {

7925
            Debug.Assert((object)pattern != null, "Field 'pattern' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
7926 7927 7928

            this.Symbol = symbol;
            this.Pattern = pattern;
D
DotNet Bot 已提交
7929 7930
        }

7931 7932 7933 7934 7935 7936

        public Symbol Symbol { get; }

        public BoundPattern Pattern { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
D
DotNet Bot 已提交
7937
        {
7938
            return visitor.VisitSubpattern(this);
D
DotNet Bot 已提交
7939 7940
        }

7941
        public BoundSubpattern Update(Symbol symbol, BoundPattern pattern)
D
DotNet Bot 已提交
7942
        {
7943 7944 7945
            if (symbol != this.Symbol || pattern != this.Pattern)
            {
                var result = new BoundSubpattern(this.Syntax, symbol, pattern, this.HasErrors);
7946
                result.CopyAttributes(this);
7947 7948 7949
                return result;
            }
            return this;
D
DotNet Bot 已提交
7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972
        }
    }

    internal sealed partial class BoundDiscardExpression : BoundExpression
    {
        public BoundDiscardExpression(SyntaxNode syntax, TypeSymbol type, bool hasErrors)
            : base(BoundKind.DiscardExpression, syntax, type, hasErrors)
        {
        }

        public BoundDiscardExpression(SyntaxNode syntax, TypeSymbol type)
            : base(BoundKind.DiscardExpression, syntax, type)
        {
        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDiscardExpression(this);
        }

        public BoundDiscardExpression Update(TypeSymbol type)
        {
7973
            if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
7974 7975
            {
                var result = new BoundDiscardExpression(this.Syntax, type, this.HasErrors);
7976
                result.CopyAttributes(this);
D
DotNet Bot 已提交
7977 7978 7979 7980
                return result;
            }
            return this;
        }
7981 7982 7983 7984 7985 7986 7987

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundDiscardExpression(this.Syntax, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
7988 7989 7990 7991 7992 7993 7994 7995
    }

    internal sealed partial class BoundThrowExpression : BoundExpression
    {
        public BoundThrowExpression(SyntaxNode syntax, BoundExpression expression, TypeSymbol type, bool hasErrors = false)
            : base(BoundKind.ThrowExpression, syntax, type, hasErrors || expression.HasErrors())
        {

7996
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010

            this.Expression = expression;
        }


        public BoundExpression Expression { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitThrowExpression(this);
        }

        public BoundThrowExpression Update(BoundExpression expression, TypeSymbol type)
        {
8011
            if (expression != this.Expression || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
D
DotNet Bot 已提交
8012 8013
            {
                var result = new BoundThrowExpression(this.Syntax, expression, type, this.HasErrors);
8014
                result.CopyAttributes(this);
D
DotNet Bot 已提交
8015 8016 8017 8018
                return result;
            }
            return this;
        }
8019 8020 8021 8022 8023 8024 8025

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundThrowExpression(this.Syntax, this.Expression, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
8026 8027 8028 8029 8030 8031 8032 8033
    }

    internal abstract partial class VariablePendingInference : BoundExpression
    {
        protected VariablePendingInference(BoundKind kind, SyntaxNode syntax, Symbol variableSymbol, BoundExpression receiverOpt, bool hasErrors = false)
            : base(kind, syntax, null, hasErrors)
        {

8034
            Debug.Assert((object)variableSymbol != null, "Field 'variableSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051

            this.VariableSymbol = variableSymbol;
            this.ReceiverOpt = receiverOpt;
        }


        public Symbol VariableSymbol { get; }

        public BoundExpression ReceiverOpt { get; }
    }

    internal sealed partial class OutVariablePendingInference : VariablePendingInference
    {
        public OutVariablePendingInference(SyntaxNode syntax, Symbol variableSymbol, BoundExpression receiverOpt, bool hasErrors = false)
            : base(BoundKind.OutVariablePendingInference, syntax, variableSymbol, receiverOpt, hasErrors || receiverOpt.HasErrors())
        {

8052
            Debug.Assert((object)variableSymbol != null, "Field 'variableSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitOutVariablePendingInference(this);
        }

        public OutVariablePendingInference Update(Symbol variableSymbol, BoundExpression receiverOpt)
        {
            if (variableSymbol != this.VariableSymbol || receiverOpt != this.ReceiverOpt)
            {
                var result = new OutVariablePendingInference(this.Syntax, variableSymbol, receiverOpt, this.HasErrors);
8067
                result.CopyAttributes(this);
D
DotNet Bot 已提交
8068 8069 8070 8071
                return result;
            }
            return this;
        }
8072 8073 8074 8075 8076 8077 8078

        protected override BoundExpression ShallowClone()
        {
            var result = new OutVariablePendingInference(this.Syntax, this.VariableSymbol, this.ReceiverOpt, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
8079 8080 8081 8082 8083 8084 8085 8086
    }

    internal sealed partial class DeconstructionVariablePendingInference : VariablePendingInference
    {
        public DeconstructionVariablePendingInference(SyntaxNode syntax, Symbol variableSymbol, BoundExpression receiverOpt, bool hasErrors = false)
            : base(BoundKind.DeconstructionVariablePendingInference, syntax, variableSymbol, receiverOpt, hasErrors || receiverOpt.HasErrors())
        {

8087
            Debug.Assert((object)variableSymbol != null, "Field 'variableSymbol' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
D
DotNet Bot 已提交
8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101

        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitDeconstructionVariablePendingInference(this);
        }

        public DeconstructionVariablePendingInference Update(Symbol variableSymbol, BoundExpression receiverOpt)
        {
            if (variableSymbol != this.VariableSymbol || receiverOpt != this.ReceiverOpt)
            {
                var result = new DeconstructionVariablePendingInference(this.Syntax, variableSymbol, receiverOpt, this.HasErrors);
8102
                result.CopyAttributes(this);
D
DotNet Bot 已提交
8103 8104 8105 8106
                return result;
            }
            return this;
        }
8107 8108 8109 8110 8111 8112 8113

        protected override BoundExpression ShallowClone()
        {
            var result = new DeconstructionVariablePendingInference(this.Syntax, this.VariableSymbol, this.ReceiverOpt, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
D
DotNet Bot 已提交
8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139
    }

    internal sealed partial class OutDeconstructVarPendingInference : BoundExpression
    {
        public OutDeconstructVarPendingInference(SyntaxNode syntax, bool hasErrors)
            : base(BoundKind.OutDeconstructVarPendingInference, syntax, null, hasErrors)
        {
        }

        public OutDeconstructVarPendingInference(SyntaxNode syntax)
            : base(BoundKind.OutDeconstructVarPendingInference, syntax, null)
        {
        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitOutDeconstructVarPendingInference(this);
        }

        public OutDeconstructVarPendingInference Update()
        {
            return this;
        }
    }

8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172
    internal abstract partial class BoundMethodBodyBase : BoundNode
    {
        protected BoundMethodBodyBase(BoundKind kind, SyntaxNode syntax, BoundBlock blockBody, BoundBlock expressionBody, bool hasErrors = false)
            : base(kind, syntax, hasErrors)
        {
            this.BlockBody = blockBody;
            this.ExpressionBody = expressionBody;
        }


        public BoundBlock BlockBody { get; }

        public BoundBlock ExpressionBody { get; }
    }

    internal sealed partial class BoundNonConstructorMethodBody : BoundMethodBodyBase
    {
        public BoundNonConstructorMethodBody(SyntaxNode syntax, BoundBlock blockBody, BoundBlock expressionBody, bool hasErrors = false)
            : base(BoundKind.NonConstructorMethodBody, syntax, blockBody, expressionBody, hasErrors || blockBody.HasErrors() || expressionBody.HasErrors())
        {
        }


        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitNonConstructorMethodBody(this);
        }

        public BoundNonConstructorMethodBody Update(BoundBlock blockBody, BoundBlock expressionBody)
        {
            if (blockBody != this.BlockBody || expressionBody != this.ExpressionBody)
            {
                var result = new BoundNonConstructorMethodBody(this.Syntax, blockBody, expressionBody, this.HasErrors);
8173
                result.CopyAttributes(this);
8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206
                return result;
            }
            return this;
        }
    }

    internal sealed partial class BoundConstructorMethodBody : BoundMethodBodyBase
    {
        public BoundConstructorMethodBody(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpressionStatement initializer, BoundBlock blockBody, BoundBlock expressionBody, bool hasErrors = false)
            : base(BoundKind.ConstructorMethodBody, syntax, blockBody, expressionBody, hasErrors || initializer.HasErrors() || blockBody.HasErrors() || expressionBody.HasErrors())
        {

            Debug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");

            this.Locals = locals;
            this.Initializer = initializer;
        }


        public ImmutableArray<LocalSymbol> Locals { get; }

        public BoundExpressionStatement Initializer { get; }

        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
            return visitor.VisitConstructorMethodBody(this);
        }

        public BoundConstructorMethodBody Update(ImmutableArray<LocalSymbol> locals, BoundExpressionStatement initializer, BoundBlock blockBody, BoundBlock expressionBody)
        {
            if (locals != this.Locals || initializer != this.Initializer || blockBody != this.BlockBody || expressionBody != this.ExpressionBody)
            {
                var result = new BoundConstructorMethodBody(this.Syntax, locals, initializer, blockBody, expressionBody, this.HasErrors);
8207
                result.CopyAttributes(this);
8208 8209 8210 8211 8212 8213
                return result;
            }
            return this;
        }
    }

8214
    internal sealed partial class BoundExpressionWithNullability : BoundExpression
8215
    {
8216
        public BoundExpressionWithNullability(SyntaxNode syntax, BoundExpression expression, NullableAnnotation nullableAnnotation, TypeSymbol type, bool hasErrors = false)
8217
            : base(BoundKind.ExpressionWithNullability, syntax, type, hasErrors || expression.HasErrors())
8218 8219
        {

8220
            Debug.Assert((object)expression != null, "Field 'expression' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)");
8221 8222

            this.Expression = expression;
8223
            this.NullableAnnotation = nullableAnnotation;
8224 8225 8226
        }


8227 8228
        public BoundExpression Expression { get; }

8229
        public NullableAnnotation NullableAnnotation { get; }
8230

8231 8232
        public override BoundNode Accept(BoundTreeVisitor visitor)
        {
8233
            return visitor.VisitExpressionWithNullability(this);
8234 8235
        }

8236
        public BoundExpressionWithNullability Update(BoundExpression expression, NullableAnnotation nullableAnnotation, TypeSymbol type)
8237
        {
8238
            if (expression != this.Expression || nullableAnnotation != this.NullableAnnotation || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
8239
            {
8240
                var result = new BoundExpressionWithNullability(this.Syntax, expression, nullableAnnotation, type, this.HasErrors);
8241
                result.CopyAttributes(this);
8242 8243 8244 8245
                return result;
            }
            return this;
        }
8246 8247 8248 8249 8250 8251 8252

        protected override BoundExpression ShallowClone()
        {
            var result = new BoundExpressionWithNullability(this.Syntax, this.Expression, this.NullableAnnotation, this.Type, this.HasErrors);
            result.CopyAttributes(this);
            return result;
        }
8253 8254
    }

D
DotNet Bot 已提交
8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272
    internal abstract partial class BoundTreeVisitor<A,R>
    {

        [MethodImpl(MethodImplOptions.NoInlining)]
        internal R VisitInternal(BoundNode node, A arg)
        {
            switch (node.Kind)
            {
                case BoundKind.FieldEqualsValue: 
                    return VisitFieldEqualsValue(node as BoundFieldEqualsValue, arg);
                case BoundKind.PropertyEqualsValue: 
                    return VisitPropertyEqualsValue(node as BoundPropertyEqualsValue, arg);
                case BoundKind.ParameterEqualsValue: 
                    return VisitParameterEqualsValue(node as BoundParameterEqualsValue, arg);
                case BoundKind.GlobalStatementInitializer: 
                    return VisitGlobalStatementInitializer(node as BoundGlobalStatementInitializer, arg);
                case BoundKind.DeconstructValuePlaceholder: 
                    return VisitDeconstructValuePlaceholder(node as BoundDeconstructValuePlaceholder, arg);
8273 8274
                case BoundKind.TupleOperandPlaceholder: 
                    return VisitTupleOperandPlaceholder(node as BoundTupleOperandPlaceholder, arg);
8275 8276
                case BoundKind.AwaitableValuePlaceholder: 
                    return VisitAwaitableValuePlaceholder(node as BoundAwaitableValuePlaceholder, arg);
8277 8278
                case BoundKind.DisposableValuePlaceholder: 
                    return VisitDisposableValuePlaceholder(node as BoundDisposableValuePlaceholder, arg);
D
DotNet Bot 已提交
8279 8280
                case BoundKind.Dup: 
                    return VisitDup(node as BoundDup, arg);
8281 8282
                case BoundKind.PassByCopy: 
                    return VisitPassByCopy(node as BoundPassByCopy, arg);
D
DotNet Bot 已提交
8283 8284 8285 8286
                case BoundKind.BadExpression: 
                    return VisitBadExpression(node as BoundBadExpression, arg);
                case BoundKind.BadStatement: 
                    return VisitBadStatement(node as BoundBadStatement, arg);
8287 8288
                case BoundKind.ExtractedFinallyBlock: 
                    return VisitExtractedFinallyBlock(node as BoundExtractedFinallyBlock, arg);
D
DotNet Bot 已提交
8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310
                case BoundKind.TypeExpression: 
                    return VisitTypeExpression(node as BoundTypeExpression, arg);
                case BoundKind.TypeOrValueExpression: 
                    return VisitTypeOrValueExpression(node as BoundTypeOrValueExpression, arg);
                case BoundKind.NamespaceExpression: 
                    return VisitNamespaceExpression(node as BoundNamespaceExpression, arg);
                case BoundKind.UnaryOperator: 
                    return VisitUnaryOperator(node as BoundUnaryOperator, arg);
                case BoundKind.IncrementOperator: 
                    return VisitIncrementOperator(node as BoundIncrementOperator, arg);
                case BoundKind.AddressOfOperator: 
                    return VisitAddressOfOperator(node as BoundAddressOfOperator, arg);
                case BoundKind.PointerIndirectionOperator: 
                    return VisitPointerIndirectionOperator(node as BoundPointerIndirectionOperator, arg);
                case BoundKind.PointerElementAccess: 
                    return VisitPointerElementAccess(node as BoundPointerElementAccess, arg);
                case BoundKind.RefTypeOperator: 
                    return VisitRefTypeOperator(node as BoundRefTypeOperator, arg);
                case BoundKind.MakeRefOperator: 
                    return VisitMakeRefOperator(node as BoundMakeRefOperator, arg);
                case BoundKind.RefValueOperator: 
                    return VisitRefValueOperator(node as BoundRefValueOperator, arg);
8311 8312
                case BoundKind.FromEndIndexExpression: 
                    return VisitFromEndIndexExpression(node as BoundFromEndIndexExpression, arg);
O
Omar Tawfik 已提交
8313 8314
                case BoundKind.RangeExpression: 
                    return VisitRangeExpression(node as BoundRangeExpression, arg);
D
DotNet Bot 已提交
8315 8316
                case BoundKind.BinaryOperator: 
                    return VisitBinaryOperator(node as BoundBinaryOperator, arg);
8317 8318
                case BoundKind.TupleBinaryOperator: 
                    return VisitTupleBinaryOperator(node as BoundTupleBinaryOperator, arg);
D
DotNet Bot 已提交
8319 8320 8321 8322 8323 8324 8325 8326 8327 8328
                case BoundKind.UserDefinedConditionalLogicalOperator: 
                    return VisitUserDefinedConditionalLogicalOperator(node as BoundUserDefinedConditionalLogicalOperator, arg);
                case BoundKind.CompoundAssignmentOperator: 
                    return VisitCompoundAssignmentOperator(node as BoundCompoundAssignmentOperator, arg);
                case BoundKind.AssignmentOperator: 
                    return VisitAssignmentOperator(node as BoundAssignmentOperator, arg);
                case BoundKind.DeconstructionAssignmentOperator: 
                    return VisitDeconstructionAssignmentOperator(node as BoundDeconstructionAssignmentOperator, arg);
                case BoundKind.NullCoalescingOperator: 
                    return VisitNullCoalescingOperator(node as BoundNullCoalescingOperator, arg);
F
Fredric Silberberg 已提交
8329 8330
                case BoundKind.NullCoalescingAssignmentOperator: 
                    return VisitNullCoalescingAssignmentOperator(node as BoundNullCoalescingAssignmentOperator, arg);
D
DotNet Bot 已提交
8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356
                case BoundKind.ConditionalOperator: 
                    return VisitConditionalOperator(node as BoundConditionalOperator, arg);
                case BoundKind.ArrayAccess: 
                    return VisitArrayAccess(node as BoundArrayAccess, arg);
                case BoundKind.ArrayLength: 
                    return VisitArrayLength(node as BoundArrayLength, arg);
                case BoundKind.AwaitExpression: 
                    return VisitAwaitExpression(node as BoundAwaitExpression, arg);
                case BoundKind.TypeOfOperator: 
                    return VisitTypeOfOperator(node as BoundTypeOfOperator, arg);
                case BoundKind.MethodDefIndex: 
                    return VisitMethodDefIndex(node as BoundMethodDefIndex, arg);
                case BoundKind.MaximumMethodDefIndex: 
                    return VisitMaximumMethodDefIndex(node as BoundMaximumMethodDefIndex, arg);
                case BoundKind.InstrumentationPayloadRoot: 
                    return VisitInstrumentationPayloadRoot(node as BoundInstrumentationPayloadRoot, arg);
                case BoundKind.ModuleVersionId: 
                    return VisitModuleVersionId(node as BoundModuleVersionId, arg);
                case BoundKind.ModuleVersionIdString: 
                    return VisitModuleVersionIdString(node as BoundModuleVersionIdString, arg);
                case BoundKind.SourceDocumentIndex: 
                    return VisitSourceDocumentIndex(node as BoundSourceDocumentIndex, arg);
                case BoundKind.MethodInfo: 
                    return VisitMethodInfo(node as BoundMethodInfo, arg);
                case BoundKind.FieldInfo: 
                    return VisitFieldInfo(node as BoundFieldInfo, arg);
8357 8358
                case BoundKind.DefaultExpression: 
                    return VisitDefaultExpression(node as BoundDefaultExpression, arg);
D
DotNet Bot 已提交
8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386
                case BoundKind.IsOperator: 
                    return VisitIsOperator(node as BoundIsOperator, arg);
                case BoundKind.AsOperator: 
                    return VisitAsOperator(node as BoundAsOperator, arg);
                case BoundKind.SizeOfOperator: 
                    return VisitSizeOfOperator(node as BoundSizeOfOperator, arg);
                case BoundKind.Conversion: 
                    return VisitConversion(node as BoundConversion, arg);
                case BoundKind.ArgList: 
                    return VisitArgList(node as BoundArgList, arg);
                case BoundKind.ArgListOperator: 
                    return VisitArgListOperator(node as BoundArgListOperator, arg);
                case BoundKind.FixedLocalCollectionInitializer: 
                    return VisitFixedLocalCollectionInitializer(node as BoundFixedLocalCollectionInitializer, arg);
                case BoundKind.SequencePoint: 
                    return VisitSequencePoint(node as BoundSequencePoint, arg);
                case BoundKind.SequencePointWithSpan: 
                    return VisitSequencePointWithSpan(node as BoundSequencePointWithSpan, arg);
                case BoundKind.Block: 
                    return VisitBlock(node as BoundBlock, arg);
                case BoundKind.Scope: 
                    return VisitScope(node as BoundScope, arg);
                case BoundKind.StateMachineScope: 
                    return VisitStateMachineScope(node as BoundStateMachineScope, arg);
                case BoundKind.LocalDeclaration: 
                    return VisitLocalDeclaration(node as BoundLocalDeclaration, arg);
                case BoundKind.MultipleLocalDeclarations: 
                    return VisitMultipleLocalDeclarations(node as BoundMultipleLocalDeclarations, arg);
8387 8388
                case BoundKind.UsingLocalDeclarations: 
                    return VisitUsingLocalDeclarations(node as BoundUsingLocalDeclarations, arg);
D
DotNet Bot 已提交
8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406
                case BoundKind.LocalFunctionStatement: 
                    return VisitLocalFunctionStatement(node as BoundLocalFunctionStatement, arg);
                case BoundKind.NoOpStatement: 
                    return VisitNoOpStatement(node as BoundNoOpStatement, arg);
                case BoundKind.ReturnStatement: 
                    return VisitReturnStatement(node as BoundReturnStatement, arg);
                case BoundKind.YieldReturnStatement: 
                    return VisitYieldReturnStatement(node as BoundYieldReturnStatement, arg);
                case BoundKind.YieldBreakStatement: 
                    return VisitYieldBreakStatement(node as BoundYieldBreakStatement, arg);
                case BoundKind.ThrowStatement: 
                    return VisitThrowStatement(node as BoundThrowStatement, arg);
                case BoundKind.ExpressionStatement: 
                    return VisitExpressionStatement(node as BoundExpressionStatement, arg);
                case BoundKind.BreakStatement: 
                    return VisitBreakStatement(node as BoundBreakStatement, arg);
                case BoundKind.ContinueStatement: 
                    return VisitContinueStatement(node as BoundContinueStatement, arg);
8407 8408
                case BoundKind.SwitchStatement: 
                    return VisitSwitchStatement(node as BoundSwitchStatement, arg);
8409 8410
                case BoundKind.SwitchDispatch: 
                    return VisitSwitchDispatch(node as BoundSwitchDispatch, arg);
D
DotNet Bot 已提交
8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462
                case BoundKind.IfStatement: 
                    return VisitIfStatement(node as BoundIfStatement, arg);
                case BoundKind.DoStatement: 
                    return VisitDoStatement(node as BoundDoStatement, arg);
                case BoundKind.WhileStatement: 
                    return VisitWhileStatement(node as BoundWhileStatement, arg);
                case BoundKind.ForStatement: 
                    return VisitForStatement(node as BoundForStatement, arg);
                case BoundKind.ForEachStatement: 
                    return VisitForEachStatement(node as BoundForEachStatement, arg);
                case BoundKind.ForEachDeconstructStep: 
                    return VisitForEachDeconstructStep(node as BoundForEachDeconstructStep, arg);
                case BoundKind.UsingStatement: 
                    return VisitUsingStatement(node as BoundUsingStatement, arg);
                case BoundKind.FixedStatement: 
                    return VisitFixedStatement(node as BoundFixedStatement, arg);
                case BoundKind.LockStatement: 
                    return VisitLockStatement(node as BoundLockStatement, arg);
                case BoundKind.TryStatement: 
                    return VisitTryStatement(node as BoundTryStatement, arg);
                case BoundKind.CatchBlock: 
                    return VisitCatchBlock(node as BoundCatchBlock, arg);
                case BoundKind.Literal: 
                    return VisitLiteral(node as BoundLiteral, arg);
                case BoundKind.ThisReference: 
                    return VisitThisReference(node as BoundThisReference, arg);
                case BoundKind.PreviousSubmissionReference: 
                    return VisitPreviousSubmissionReference(node as BoundPreviousSubmissionReference, arg);
                case BoundKind.HostObjectMemberReference: 
                    return VisitHostObjectMemberReference(node as BoundHostObjectMemberReference, arg);
                case BoundKind.BaseReference: 
                    return VisitBaseReference(node as BoundBaseReference, arg);
                case BoundKind.Local: 
                    return VisitLocal(node as BoundLocal, arg);
                case BoundKind.PseudoVariable: 
                    return VisitPseudoVariable(node as BoundPseudoVariable, arg);
                case BoundKind.RangeVariable: 
                    return VisitRangeVariable(node as BoundRangeVariable, arg);
                case BoundKind.Parameter: 
                    return VisitParameter(node as BoundParameter, arg);
                case BoundKind.LabelStatement: 
                    return VisitLabelStatement(node as BoundLabelStatement, arg);
                case BoundKind.GotoStatement: 
                    return VisitGotoStatement(node as BoundGotoStatement, arg);
                case BoundKind.LabeledStatement: 
                    return VisitLabeledStatement(node as BoundLabeledStatement, arg);
                case BoundKind.Label: 
                    return VisitLabel(node as BoundLabel, arg);
                case BoundKind.StatementList: 
                    return VisitStatementList(node as BoundStatementList, arg);
                case BoundKind.ConditionalGoto: 
                    return VisitConditionalGoto(node as BoundConditionalGoto, arg);
8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494
                case BoundKind.SwitchExpression: 
                    return VisitSwitchExpression(node as BoundSwitchExpression, arg);
                case BoundKind.SwitchExpressionArm: 
                    return VisitSwitchExpressionArm(node as BoundSwitchExpressionArm, arg);
                case BoundKind.DecisionDag: 
                    return VisitDecisionDag(node as BoundDecisionDag, arg);
                case BoundKind.EvaluationDecisionDagNode: 
                    return VisitEvaluationDecisionDagNode(node as BoundEvaluationDecisionDagNode, arg);
                case BoundKind.TestDecisionDagNode: 
                    return VisitTestDecisionDagNode(node as BoundTestDecisionDagNode, arg);
                case BoundKind.WhenDecisionDagNode: 
                    return VisitWhenDecisionDagNode(node as BoundWhenDecisionDagNode, arg);
                case BoundKind.LeafDecisionDagNode: 
                    return VisitLeafDecisionDagNode(node as BoundLeafDecisionDagNode, arg);
                case BoundKind.DagTemp: 
                    return VisitDagTemp(node as BoundDagTemp, arg);
                case BoundKind.DagTypeTest: 
                    return VisitDagTypeTest(node as BoundDagTypeTest, arg);
                case BoundKind.DagNonNullTest: 
                    return VisitDagNonNullTest(node as BoundDagNonNullTest, arg);
                case BoundKind.DagNullTest: 
                    return VisitDagNullTest(node as BoundDagNullTest, arg);
                case BoundKind.DagValueTest: 
                    return VisitDagValueTest(node as BoundDagValueTest, arg);
                case BoundKind.DagDeconstructEvaluation: 
                    return VisitDagDeconstructEvaluation(node as BoundDagDeconstructEvaluation, arg);
                case BoundKind.DagTypeEvaluation: 
                    return VisitDagTypeEvaluation(node as BoundDagTypeEvaluation, arg);
                case BoundKind.DagFieldEvaluation: 
                    return VisitDagFieldEvaluation(node as BoundDagFieldEvaluation, arg);
                case BoundKind.DagPropertyEvaluation: 
                    return VisitDagPropertyEvaluation(node as BoundDagPropertyEvaluation, arg);
8495 8496
                case BoundKind.DagIndexEvaluation: 
                    return VisitDagIndexEvaluation(node as BoundDagIndexEvaluation, arg);
8497 8498
                case BoundKind.SwitchSection: 
                    return VisitSwitchSection(node as BoundSwitchSection, arg);
8499 8500
                case BoundKind.SwitchLabel: 
                    return VisitSwitchLabel(node as BoundSwitchLabel, arg);
8501 8502 8503 8504 8505 8506
                case BoundKind.SequencePointExpression: 
                    return VisitSequencePointExpression(node as BoundSequencePointExpression, arg);
                case BoundKind.Sequence: 
                    return VisitSequence(node as BoundSequence, arg);
                case BoundKind.SpillSequence: 
                    return VisitSpillSequence(node as BoundSpillSequence, arg);
D
DotNet Bot 已提交
8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566
                case BoundKind.DynamicMemberAccess: 
                    return VisitDynamicMemberAccess(node as BoundDynamicMemberAccess, arg);
                case BoundKind.DynamicInvocation: 
                    return VisitDynamicInvocation(node as BoundDynamicInvocation, arg);
                case BoundKind.ConditionalAccess: 
                    return VisitConditionalAccess(node as BoundConditionalAccess, arg);
                case BoundKind.LoweredConditionalAccess: 
                    return VisitLoweredConditionalAccess(node as BoundLoweredConditionalAccess, arg);
                case BoundKind.ConditionalReceiver: 
                    return VisitConditionalReceiver(node as BoundConditionalReceiver, arg);
                case BoundKind.ComplexConditionalReceiver: 
                    return VisitComplexConditionalReceiver(node as BoundComplexConditionalReceiver, arg);
                case BoundKind.MethodGroup: 
                    return VisitMethodGroup(node as BoundMethodGroup, arg);
                case BoundKind.PropertyGroup: 
                    return VisitPropertyGroup(node as BoundPropertyGroup, arg);
                case BoundKind.Call: 
                    return VisitCall(node as BoundCall, arg);
                case BoundKind.EventAssignmentOperator: 
                    return VisitEventAssignmentOperator(node as BoundEventAssignmentOperator, arg);
                case BoundKind.Attribute: 
                    return VisitAttribute(node as BoundAttribute, arg);
                case BoundKind.ObjectCreationExpression: 
                    return VisitObjectCreationExpression(node as BoundObjectCreationExpression, arg);
                case BoundKind.TupleLiteral: 
                    return VisitTupleLiteral(node as BoundTupleLiteral, arg);
                case BoundKind.ConvertedTupleLiteral: 
                    return VisitConvertedTupleLiteral(node as BoundConvertedTupleLiteral, arg);
                case BoundKind.DynamicObjectCreationExpression: 
                    return VisitDynamicObjectCreationExpression(node as BoundDynamicObjectCreationExpression, arg);
                case BoundKind.NoPiaObjectCreationExpression: 
                    return VisitNoPiaObjectCreationExpression(node as BoundNoPiaObjectCreationExpression, arg);
                case BoundKind.ObjectInitializerExpression: 
                    return VisitObjectInitializerExpression(node as BoundObjectInitializerExpression, arg);
                case BoundKind.ObjectInitializerMember: 
                    return VisitObjectInitializerMember(node as BoundObjectInitializerMember, arg);
                case BoundKind.DynamicObjectInitializerMember: 
                    return VisitDynamicObjectInitializerMember(node as BoundDynamicObjectInitializerMember, arg);
                case BoundKind.CollectionInitializerExpression: 
                    return VisitCollectionInitializerExpression(node as BoundCollectionInitializerExpression, arg);
                case BoundKind.CollectionElementInitializer: 
                    return VisitCollectionElementInitializer(node as BoundCollectionElementInitializer, arg);
                case BoundKind.DynamicCollectionElementInitializer: 
                    return VisitDynamicCollectionElementInitializer(node as BoundDynamicCollectionElementInitializer, arg);
                case BoundKind.ImplicitReceiver: 
                    return VisitImplicitReceiver(node as BoundImplicitReceiver, arg);
                case BoundKind.AnonymousObjectCreationExpression: 
                    return VisitAnonymousObjectCreationExpression(node as BoundAnonymousObjectCreationExpression, arg);
                case BoundKind.AnonymousPropertyDeclaration: 
                    return VisitAnonymousPropertyDeclaration(node as BoundAnonymousPropertyDeclaration, arg);
                case BoundKind.NewT: 
                    return VisitNewT(node as BoundNewT, arg);
                case BoundKind.DelegateCreationExpression: 
                    return VisitDelegateCreationExpression(node as BoundDelegateCreationExpression, arg);
                case BoundKind.ArrayCreation: 
                    return VisitArrayCreation(node as BoundArrayCreation, arg);
                case BoundKind.ArrayInitialization: 
                    return VisitArrayInitialization(node as BoundArrayInitialization, arg);
                case BoundKind.StackAllocArrayCreation: 
                    return VisitStackAllocArrayCreation(node as BoundStackAllocArrayCreation, arg);
8567 8568
                case BoundKind.ConvertedStackAllocExpression: 
                    return VisitConvertedStackAllocExpression(node as BoundConvertedStackAllocExpression, arg);
D
DotNet Bot 已提交
8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598
                case BoundKind.FieldAccess: 
                    return VisitFieldAccess(node as BoundFieldAccess, arg);
                case BoundKind.HoistedFieldAccess: 
                    return VisitHoistedFieldAccess(node as BoundHoistedFieldAccess, arg);
                case BoundKind.PropertyAccess: 
                    return VisitPropertyAccess(node as BoundPropertyAccess, arg);
                case BoundKind.EventAccess: 
                    return VisitEventAccess(node as BoundEventAccess, arg);
                case BoundKind.IndexerAccess: 
                    return VisitIndexerAccess(node as BoundIndexerAccess, arg);
                case BoundKind.DynamicIndexerAccess: 
                    return VisitDynamicIndexerAccess(node as BoundDynamicIndexerAccess, arg);
                case BoundKind.Lambda: 
                    return VisitLambda(node as BoundLambda, arg);
                case BoundKind.UnboundLambda: 
                    return VisitUnboundLambda(node as UnboundLambda, arg);
                case BoundKind.QueryClause: 
                    return VisitQueryClause(node as BoundQueryClause, arg);
                case BoundKind.TypeOrInstanceInitializers: 
                    return VisitTypeOrInstanceInitializers(node as BoundTypeOrInstanceInitializers, arg);
                case BoundKind.NameOfOperator: 
                    return VisitNameOfOperator(node as BoundNameOfOperator, arg);
                case BoundKind.InterpolatedString: 
                    return VisitInterpolatedString(node as BoundInterpolatedString, arg);
                case BoundKind.StringInsert: 
                    return VisitStringInsert(node as BoundStringInsert, arg);
                case BoundKind.IsPatternExpression: 
                    return VisitIsPatternExpression(node as BoundIsPatternExpression, arg);
                case BoundKind.ConstantPattern: 
                    return VisitConstantPattern(node as BoundConstantPattern, arg);
8599 8600 8601 8602 8603 8604
                case BoundKind.DiscardPattern: 
                    return VisitDiscardPattern(node as BoundDiscardPattern, arg);
                case BoundKind.DeclarationPattern: 
                    return VisitDeclarationPattern(node as BoundDeclarationPattern, arg);
                case BoundKind.RecursivePattern: 
                    return VisitRecursivePattern(node as BoundRecursivePattern, arg);
8605 8606
                case BoundKind.ITuplePattern: 
                    return VisitITuplePattern(node as BoundITuplePattern, arg);
8607 8608
                case BoundKind.Subpattern: 
                    return VisitSubpattern(node as BoundSubpattern, arg);
D
DotNet Bot 已提交
8609 8610 8611 8612 8613 8614 8615 8616 8617 8618
                case BoundKind.DiscardExpression: 
                    return VisitDiscardExpression(node as BoundDiscardExpression, arg);
                case BoundKind.ThrowExpression: 
                    return VisitThrowExpression(node as BoundThrowExpression, arg);
                case BoundKind.OutVariablePendingInference: 
                    return VisitOutVariablePendingInference(node as OutVariablePendingInference, arg);
                case BoundKind.DeconstructionVariablePendingInference: 
                    return VisitDeconstructionVariablePendingInference(node as DeconstructionVariablePendingInference, arg);
                case BoundKind.OutDeconstructVarPendingInference: 
                    return VisitOutDeconstructVarPendingInference(node as OutDeconstructVarPendingInference, arg);
8619 8620 8621 8622
                case BoundKind.NonConstructorMethodBody: 
                    return VisitNonConstructorMethodBody(node as BoundNonConstructorMethodBody, arg);
                case BoundKind.ConstructorMethodBody: 
                    return VisitConstructorMethodBody(node as BoundConstructorMethodBody, arg);
8623 8624
                case BoundKind.ExpressionWithNullability: 
                    return VisitExpressionWithNullability(node as BoundExpressionWithNullability, arg);
D
DotNet Bot 已提交
8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652
            }

            return default(R);
        }
    }

    internal abstract partial class BoundTreeVisitor<A,R>
    {
        public virtual R VisitFieldEqualsValue(BoundFieldEqualsValue node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitPropertyEqualsValue(BoundPropertyEqualsValue node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitParameterEqualsValue(BoundParameterEqualsValue node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitGlobalStatementInitializer(BoundGlobalStatementInitializer node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8653 8654 8655 8656
        public virtual R VisitTupleOperandPlaceholder(BoundTupleOperandPlaceholder node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8657 8658 8659 8660
        public virtual R VisitAwaitableValuePlaceholder(BoundAwaitableValuePlaceholder node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8661 8662 8663 8664
        public virtual R VisitDisposableValuePlaceholder(BoundDisposableValuePlaceholder node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
8665 8666 8667 8668
        public virtual R VisitDup(BoundDup node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8669 8670 8671 8672
        public virtual R VisitPassByCopy(BoundPassByCopy node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
8673 8674 8675 8676 8677 8678 8679 8680
        public virtual R VisitBadExpression(BoundBadExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitBadStatement(BoundBadStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8681 8682 8683 8684
        public virtual R VisitExtractedFinallyBlock(BoundExtractedFinallyBlock node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728
        public virtual R VisitTypeExpression(BoundTypeExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitTypeOrValueExpression(BoundTypeOrValueExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitNamespaceExpression(BoundNamespaceExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitUnaryOperator(BoundUnaryOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitIncrementOperator(BoundIncrementOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitAddressOfOperator(BoundAddressOfOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitPointerIndirectionOperator(BoundPointerIndirectionOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitPointerElementAccess(BoundPointerElementAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitRefTypeOperator(BoundRefTypeOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitMakeRefOperator(BoundMakeRefOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitRefValueOperator(BoundRefValueOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8729 8730 8731 8732
        public virtual R VisitFromEndIndexExpression(BoundFromEndIndexExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
O
Omar Tawfik 已提交
8733 8734 8735 8736
        public virtual R VisitRangeExpression(BoundRangeExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
8737 8738 8739 8740
        public virtual R VisitBinaryOperator(BoundBinaryOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8741 8742 8743 8744
        public virtual R VisitTupleBinaryOperator(BoundTupleBinaryOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764
        public virtual R VisitUserDefinedConditionalLogicalOperator(BoundUserDefinedConditionalLogicalOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitCompoundAssignmentOperator(BoundCompoundAssignmentOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitAssignmentOperator(BoundAssignmentOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDeconstructionAssignmentOperator(BoundDeconstructionAssignmentOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitNullCoalescingOperator(BoundNullCoalescingOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
F
Fredric Silberberg 已提交
8765
        public virtual R VisitNullCoalescingAssignmentOperator(BoundNullCoalescingAssignmentOperator node, A arg)
8766 8767 8768
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820
        public virtual R VisitConditionalOperator(BoundConditionalOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitArrayAccess(BoundArrayAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitArrayLength(BoundArrayLength node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitAwaitExpression(BoundAwaitExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitTypeOfOperator(BoundTypeOfOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitMethodDefIndex(BoundMethodDefIndex node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitMaximumMethodDefIndex(BoundMaximumMethodDefIndex node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitInstrumentationPayloadRoot(BoundInstrumentationPayloadRoot node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitModuleVersionId(BoundModuleVersionId node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitModuleVersionIdString(BoundModuleVersionIdString node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitSourceDocumentIndex(BoundSourceDocumentIndex node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitMethodInfo(BoundMethodInfo node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitFieldInfo(BoundFieldInfo node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8821
        public virtual R VisitDefaultExpression(BoundDefaultExpression node, A arg)
D
DotNet Bot 已提交
8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitIsOperator(BoundIsOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitAsOperator(BoundAsOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitSizeOfOperator(BoundSizeOfOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitConversion(BoundConversion node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitArgList(BoundArgList node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitArgListOperator(BoundArgListOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitFixedLocalCollectionInitializer(BoundFixedLocalCollectionInitializer node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitSequencePoint(BoundSequencePoint node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitSequencePointWithSpan(BoundSequencePointWithSpan node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitBlock(BoundBlock node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitScope(BoundScope node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitStateMachineScope(BoundStateMachineScope node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitLocalDeclaration(BoundLocalDeclaration node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitMultipleLocalDeclarations(BoundMultipleLocalDeclarations node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8881 8882 8883 8884
        public virtual R VisitUsingLocalDeclarations(BoundUsingLocalDeclarations node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920
        public virtual R VisitLocalFunctionStatement(BoundLocalFunctionStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitNoOpStatement(BoundNoOpStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitReturnStatement(BoundReturnStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitYieldReturnStatement(BoundYieldReturnStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitYieldBreakStatement(BoundYieldBreakStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitThrowStatement(BoundThrowStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitExpressionStatement(BoundExpressionStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitBreakStatement(BoundBreakStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitContinueStatement(BoundContinueStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
8921
        public virtual R VisitSwitchStatement(BoundSwitchStatement node, A arg)
D
DotNet Bot 已提交
8922 8923 8924
        {
            return this.DefaultVisit(node, arg);
        }
8925
        public virtual R VisitSwitchDispatch(BoundSwitchDispatch node, A arg)
D
DotNet Bot 已提交
8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitIfStatement(BoundIfStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDoStatement(BoundDoStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitWhileStatement(BoundWhileStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitForStatement(BoundForStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitForEachStatement(BoundForEachStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitForEachDeconstructStep(BoundForEachDeconstructStep node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitUsingStatement(BoundUsingStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitFixedStatement(BoundFixedStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitLockStatement(BoundLockStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitTryStatement(BoundTryStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitCatchBlock(BoundCatchBlock node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitLiteral(BoundLiteral node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitThisReference(BoundThisReference node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitPreviousSubmissionReference(BoundPreviousSubmissionReference node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitHostObjectMemberReference(BoundHostObjectMemberReference node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitBaseReference(BoundBaseReference node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitLocal(BoundLocal node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitPseudoVariable(BoundPseudoVariable node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitRangeVariable(BoundRangeVariable node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitParameter(BoundParameter node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitLabelStatement(BoundLabelStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitGotoStatement(BoundGotoStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitLabeledStatement(BoundLabeledStatement node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitLabel(BoundLabel node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitStatementList(BoundStatementList node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitConditionalGoto(BoundConditionalGoto node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
9033
        public virtual R VisitSwitchExpression(BoundSwitchExpression node, A arg)
D
DotNet Bot 已提交
9034 9035 9036
        {
            return this.DefaultVisit(node, arg);
        }
9037
        public virtual R VisitSwitchExpressionArm(BoundSwitchExpressionArm node, A arg)
D
DotNet Bot 已提交
9038 9039 9040
        {
            return this.DefaultVisit(node, arg);
        }
9041
        public virtual R VisitDecisionDag(BoundDecisionDag node, A arg)
D
DotNet Bot 已提交
9042 9043 9044
        {
            return this.DefaultVisit(node, arg);
        }
9045
        public virtual R VisitEvaluationDecisionDagNode(BoundEvaluationDecisionDagNode node, A arg)
D
DotNet Bot 已提交
9046 9047 9048
        {
            return this.DefaultVisit(node, arg);
        }
9049
        public virtual R VisitTestDecisionDagNode(BoundTestDecisionDagNode node, A arg)
D
DotNet Bot 已提交
9050 9051 9052
        {
            return this.DefaultVisit(node, arg);
        }
9053
        public virtual R VisitWhenDecisionDagNode(BoundWhenDecisionDagNode node, A arg)
D
DotNet Bot 已提交
9054 9055 9056
        {
            return this.DefaultVisit(node, arg);
        }
9057
        public virtual R VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node, A arg)
D
DotNet Bot 已提交
9058 9059 9060
        {
            return this.DefaultVisit(node, arg);
        }
9061
        public virtual R VisitDagTemp(BoundDagTemp node, A arg)
D
DotNet Bot 已提交
9062 9063 9064
        {
            return this.DefaultVisit(node, arg);
        }
9065
        public virtual R VisitDagTypeTest(BoundDagTypeTest node, A arg)
D
DotNet Bot 已提交
9066 9067 9068
        {
            return this.DefaultVisit(node, arg);
        }
9069
        public virtual R VisitDagNonNullTest(BoundDagNonNullTest node, A arg)
D
DotNet Bot 已提交
9070 9071 9072
        {
            return this.DefaultVisit(node, arg);
        }
9073
        public virtual R VisitDagNullTest(BoundDagNullTest node, A arg)
D
DotNet Bot 已提交
9074 9075 9076
        {
            return this.DefaultVisit(node, arg);
        }
9077
        public virtual R VisitDagValueTest(BoundDagValueTest node, A arg)
D
DotNet Bot 已提交
9078 9079 9080
        {
            return this.DefaultVisit(node, arg);
        }
9081
        public virtual R VisitDagDeconstructEvaluation(BoundDagDeconstructEvaluation node, A arg)
D
DotNet Bot 已提交
9082 9083 9084
        {
            return this.DefaultVisit(node, arg);
        }
9085
        public virtual R VisitDagTypeEvaluation(BoundDagTypeEvaluation node, A arg)
D
DotNet Bot 已提交
9086 9087 9088
        {
            return this.DefaultVisit(node, arg);
        }
9089
        public virtual R VisitDagFieldEvaluation(BoundDagFieldEvaluation node, A arg)
D
DotNet Bot 已提交
9090 9091 9092
        {
            return this.DefaultVisit(node, arg);
        }
9093
        public virtual R VisitDagPropertyEvaluation(BoundDagPropertyEvaluation node, A arg)
D
DotNet Bot 已提交
9094 9095 9096
        {
            return this.DefaultVisit(node, arg);
        }
9097 9098 9099 9100
        public virtual R VisitDagIndexEvaluation(BoundDagIndexEvaluation node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
9101
        public virtual R VisitSwitchSection(BoundSwitchSection node, A arg)
D
DotNet Bot 已提交
9102 9103 9104
        {
            return this.DefaultVisit(node, arg);
        }
9105
        public virtual R VisitSwitchLabel(BoundSwitchLabel node, A arg)
9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitSequencePointExpression(BoundSequencePointExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitSequence(BoundSequence node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitSpillSequence(BoundSpillSequence node, A arg)
D
DotNet Bot 已提交
9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDynamicMemberAccess(BoundDynamicMemberAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDynamicInvocation(BoundDynamicInvocation node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitConditionalAccess(BoundConditionalAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitLoweredConditionalAccess(BoundLoweredConditionalAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitConditionalReceiver(BoundConditionalReceiver node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitComplexConditionalReceiver(BoundComplexConditionalReceiver node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitMethodGroup(BoundMethodGroup node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitPropertyGroup(BoundPropertyGroup node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitCall(BoundCall node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitEventAssignmentOperator(BoundEventAssignmentOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitAttribute(BoundAttribute node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitObjectCreationExpression(BoundObjectCreationExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitTupleLiteral(BoundTupleLiteral node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitConvertedTupleLiteral(BoundConvertedTupleLiteral node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDynamicObjectCreationExpression(BoundDynamicObjectCreationExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitNoPiaObjectCreationExpression(BoundNoPiaObjectCreationExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitObjectInitializerExpression(BoundObjectInitializerExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitObjectInitializerMember(BoundObjectInitializerMember node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDynamicObjectInitializerMember(BoundDynamicObjectInitializerMember node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitCollectionInitializerExpression(BoundCollectionInitializerExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitCollectionElementInitializer(BoundCollectionElementInitializer node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDynamicCollectionElementInitializer(BoundDynamicCollectionElementInitializer node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitImplicitReceiver(BoundImplicitReceiver node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitAnonymousObjectCreationExpression(BoundAnonymousObjectCreationExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitAnonymousPropertyDeclaration(BoundAnonymousPropertyDeclaration node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitNewT(BoundNewT node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDelegateCreationExpression(BoundDelegateCreationExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitArrayCreation(BoundArrayCreation node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitArrayInitialization(BoundArrayInitialization node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitStackAllocArrayCreation(BoundStackAllocArrayCreation node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
9241 9242 9243 9244
        public virtual R VisitConvertedStackAllocExpression(BoundConvertedStackAllocExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300
        public virtual R VisitFieldAccess(BoundFieldAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitHoistedFieldAccess(BoundHoistedFieldAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitPropertyAccess(BoundPropertyAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitEventAccess(BoundEventAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitIndexerAccess(BoundIndexerAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDynamicIndexerAccess(BoundDynamicIndexerAccess node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitLambda(BoundLambda node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitUnboundLambda(UnboundLambda node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitQueryClause(BoundQueryClause node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitTypeOrInstanceInitializers(BoundTypeOrInstanceInitializers node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitNameOfOperator(BoundNameOfOperator node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitInterpolatedString(BoundInterpolatedString node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitStringInsert(BoundStringInsert node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitIsPatternExpression(BoundIsPatternExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
9301
        public virtual R VisitConstantPattern(BoundConstantPattern node, A arg)
D
DotNet Bot 已提交
9302 9303 9304
        {
            return this.DefaultVisit(node, arg);
        }
9305 9306 9307 9308
        public virtual R VisitDiscardPattern(BoundDiscardPattern node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
9309 9310 9311 9312
        public virtual R VisitDeclarationPattern(BoundDeclarationPattern node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
9313
        public virtual R VisitRecursivePattern(BoundRecursivePattern node, A arg)
D
DotNet Bot 已提交
9314 9315 9316
        {
            return this.DefaultVisit(node, arg);
        }
9317 9318 9319 9320
        public virtual R VisitITuplePattern(BoundITuplePattern node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
9321
        public virtual R VisitSubpattern(BoundSubpattern node, A arg)
D
DotNet Bot 已提交
9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDiscardExpression(BoundDiscardExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitThrowExpression(BoundThrowExpression node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitOutVariablePendingInference(OutVariablePendingInference node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitDeconstructionVariablePendingInference(DeconstructionVariablePendingInference node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitOutDeconstructVarPendingInference(OutDeconstructVarPendingInference node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
9345 9346 9347 9348 9349 9350 9351 9352
        public virtual R VisitNonConstructorMethodBody(BoundNonConstructorMethodBody node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
        public virtual R VisitConstructorMethodBody(BoundConstructorMethodBody node, A arg)
        {
            return this.DefaultVisit(node, arg);
        }
9353
        public virtual R VisitExpressionWithNullability(BoundExpressionWithNullability node, A arg)
9354 9355 9356
        {
            return this.DefaultVisit(node, arg);
        }
D
DotNet Bot 已提交
9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380
    }

    internal abstract partial class BoundTreeVisitor
    {
        public virtual BoundNode VisitFieldEqualsValue(BoundFieldEqualsValue node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitPropertyEqualsValue(BoundPropertyEqualsValue node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitParameterEqualsValue(BoundParameterEqualsValue node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitGlobalStatementInitializer(BoundGlobalStatementInitializer node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node)
        {
            return this.DefaultVisit(node);
        }
9381 9382 9383 9384
        public virtual BoundNode VisitTupleOperandPlaceholder(BoundTupleOperandPlaceholder node)
        {
            return this.DefaultVisit(node);
        }
9385 9386 9387 9388
        public virtual BoundNode VisitAwaitableValuePlaceholder(BoundAwaitableValuePlaceholder node)
        {
            return this.DefaultVisit(node);
        }
9389 9390 9391 9392
        public virtual BoundNode VisitDisposableValuePlaceholder(BoundDisposableValuePlaceholder node)
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
9393 9394 9395 9396
        public virtual BoundNode VisitDup(BoundDup node)
        {
            return this.DefaultVisit(node);
        }
9397 9398 9399 9400
        public virtual BoundNode VisitPassByCopy(BoundPassByCopy node)
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
9401 9402 9403 9404 9405 9406 9407 9408
        public virtual BoundNode VisitBadExpression(BoundBadExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitBadStatement(BoundBadStatement node)
        {
            return this.DefaultVisit(node);
        }
9409 9410 9411 9412
        public virtual BoundNode VisitExtractedFinallyBlock(BoundExtractedFinallyBlock node)
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456
        public virtual BoundNode VisitTypeExpression(BoundTypeExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitTypeOrValueExpression(BoundTypeOrValueExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitNamespaceExpression(BoundNamespaceExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitUnaryOperator(BoundUnaryOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitIncrementOperator(BoundIncrementOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitAddressOfOperator(BoundAddressOfOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitPointerIndirectionOperator(BoundPointerIndirectionOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitPointerElementAccess(BoundPointerElementAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitRefTypeOperator(BoundRefTypeOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitMakeRefOperator(BoundMakeRefOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitRefValueOperator(BoundRefValueOperator node)
        {
            return this.DefaultVisit(node);
        }
9457 9458 9459 9460
        public virtual BoundNode VisitFromEndIndexExpression(BoundFromEndIndexExpression node)
        {
            return this.DefaultVisit(node);
        }
O
Omar Tawfik 已提交
9461 9462 9463 9464
        public virtual BoundNode VisitRangeExpression(BoundRangeExpression node)
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
9465 9466 9467 9468
        public virtual BoundNode VisitBinaryOperator(BoundBinaryOperator node)
        {
            return this.DefaultVisit(node);
        }
9469 9470 9471 9472
        public virtual BoundNode VisitTupleBinaryOperator(BoundTupleBinaryOperator node)
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492
        public virtual BoundNode VisitUserDefinedConditionalLogicalOperator(BoundUserDefinedConditionalLogicalOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitCompoundAssignmentOperator(BoundCompoundAssignmentOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitAssignmentOperator(BoundAssignmentOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDeconstructionAssignmentOperator(BoundDeconstructionAssignmentOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitNullCoalescingOperator(BoundNullCoalescingOperator node)
        {
            return this.DefaultVisit(node);
        }
F
Fredric Silberberg 已提交
9493
        public virtual BoundNode VisitNullCoalescingAssignmentOperator(BoundNullCoalescingAssignmentOperator node)
9494 9495 9496
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548
        public virtual BoundNode VisitConditionalOperator(BoundConditionalOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitArrayAccess(BoundArrayAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitArrayLength(BoundArrayLength node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitAwaitExpression(BoundAwaitExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitTypeOfOperator(BoundTypeOfOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitMethodDefIndex(BoundMethodDefIndex node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitMaximumMethodDefIndex(BoundMaximumMethodDefIndex node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitInstrumentationPayloadRoot(BoundInstrumentationPayloadRoot node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitModuleVersionId(BoundModuleVersionId node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitModuleVersionIdString(BoundModuleVersionIdString node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitSourceDocumentIndex(BoundSourceDocumentIndex node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitMethodInfo(BoundMethodInfo node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitFieldInfo(BoundFieldInfo node)
        {
            return this.DefaultVisit(node);
        }
9549
        public virtual BoundNode VisitDefaultExpression(BoundDefaultExpression node)
D
DotNet Bot 已提交
9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitIsOperator(BoundIsOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitAsOperator(BoundAsOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitSizeOfOperator(BoundSizeOfOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitConversion(BoundConversion node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitArgList(BoundArgList node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitArgListOperator(BoundArgListOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitFixedLocalCollectionInitializer(BoundFixedLocalCollectionInitializer node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitSequencePoint(BoundSequencePoint node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitSequencePointWithSpan(BoundSequencePointWithSpan node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitBlock(BoundBlock node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitScope(BoundScope node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitStateMachineScope(BoundStateMachineScope node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitLocalDeclaration(BoundLocalDeclaration node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitMultipleLocalDeclarations(BoundMultipleLocalDeclarations node)
        {
            return this.DefaultVisit(node);
        }
9609 9610 9611 9612
        public virtual BoundNode VisitUsingLocalDeclarations(BoundUsingLocalDeclarations node)
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648
        public virtual BoundNode VisitLocalFunctionStatement(BoundLocalFunctionStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitNoOpStatement(BoundNoOpStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitReturnStatement(BoundReturnStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitYieldReturnStatement(BoundYieldReturnStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitYieldBreakStatement(BoundYieldBreakStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitThrowStatement(BoundThrowStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitExpressionStatement(BoundExpressionStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitBreakStatement(BoundBreakStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitContinueStatement(BoundContinueStatement node)
        {
            return this.DefaultVisit(node);
        }
9649
        public virtual BoundNode VisitSwitchStatement(BoundSwitchStatement node)
D
DotNet Bot 已提交
9650 9651 9652
        {
            return this.DefaultVisit(node);
        }
9653
        public virtual BoundNode VisitSwitchDispatch(BoundSwitchDispatch node)
D
DotNet Bot 已提交
9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitIfStatement(BoundIfStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDoStatement(BoundDoStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitWhileStatement(BoundWhileStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitForStatement(BoundForStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitForEachStatement(BoundForEachStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitForEachDeconstructStep(BoundForEachDeconstructStep node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitUsingStatement(BoundUsingStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitFixedStatement(BoundFixedStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitLockStatement(BoundLockStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitTryStatement(BoundTryStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitCatchBlock(BoundCatchBlock node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitLiteral(BoundLiteral node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitThisReference(BoundThisReference node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitPreviousSubmissionReference(BoundPreviousSubmissionReference node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitHostObjectMemberReference(BoundHostObjectMemberReference node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitBaseReference(BoundBaseReference node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitLocal(BoundLocal node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitPseudoVariable(BoundPseudoVariable node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitRangeVariable(BoundRangeVariable node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitParameter(BoundParameter node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitLabelStatement(BoundLabelStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitGotoStatement(BoundGotoStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitLabeledStatement(BoundLabeledStatement node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitLabel(BoundLabel node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitStatementList(BoundStatementList node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitConditionalGoto(BoundConditionalGoto node)
        {
            return this.DefaultVisit(node);
        }
9761
        public virtual BoundNode VisitSwitchExpression(BoundSwitchExpression node)
D
DotNet Bot 已提交
9762 9763 9764
        {
            return this.DefaultVisit(node);
        }
9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777
        public virtual BoundNode VisitSwitchExpressionArm(BoundSwitchExpressionArm node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDecisionDag(BoundDecisionDag node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitEvaluationDecisionDagNode(BoundEvaluationDecisionDagNode node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitTestDecisionDagNode(BoundTestDecisionDagNode node)
D
DotNet Bot 已提交
9778 9779 9780
        {
            return this.DefaultVisit(node);
        }
9781
        public virtual BoundNode VisitWhenDecisionDagNode(BoundWhenDecisionDagNode node)
D
DotNet Bot 已提交
9782 9783 9784
        {
            return this.DefaultVisit(node);
        }
9785
        public virtual BoundNode VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node)
D
DotNet Bot 已提交
9786 9787 9788
        {
            return this.DefaultVisit(node);
        }
9789
        public virtual BoundNode VisitDagTemp(BoundDagTemp node)
D
DotNet Bot 已提交
9790 9791 9792
        {
            return this.DefaultVisit(node);
        }
9793
        public virtual BoundNode VisitDagTypeTest(BoundDagTypeTest node)
D
DotNet Bot 已提交
9794 9795 9796
        {
            return this.DefaultVisit(node);
        }
9797
        public virtual BoundNode VisitDagNonNullTest(BoundDagNonNullTest node)
D
DotNet Bot 已提交
9798 9799 9800
        {
            return this.DefaultVisit(node);
        }
9801
        public virtual BoundNode VisitDagNullTest(BoundDagNullTest node)
D
DotNet Bot 已提交
9802 9803 9804
        {
            return this.DefaultVisit(node);
        }
9805
        public virtual BoundNode VisitDagValueTest(BoundDagValueTest node)
D
DotNet Bot 已提交
9806 9807 9808
        {
            return this.DefaultVisit(node);
        }
9809
        public virtual BoundNode VisitDagDeconstructEvaluation(BoundDagDeconstructEvaluation node)
D
DotNet Bot 已提交
9810 9811 9812
        {
            return this.DefaultVisit(node);
        }
9813
        public virtual BoundNode VisitDagTypeEvaluation(BoundDagTypeEvaluation node)
D
DotNet Bot 已提交
9814 9815 9816
        {
            return this.DefaultVisit(node);
        }
9817
        public virtual BoundNode VisitDagFieldEvaluation(BoundDagFieldEvaluation node)
D
DotNet Bot 已提交
9818 9819 9820
        {
            return this.DefaultVisit(node);
        }
9821
        public virtual BoundNode VisitDagPropertyEvaluation(BoundDagPropertyEvaluation node)
D
DotNet Bot 已提交
9822 9823 9824
        {
            return this.DefaultVisit(node);
        }
9825 9826 9827 9828
        public virtual BoundNode VisitDagIndexEvaluation(BoundDagIndexEvaluation node)
        {
            return this.DefaultVisit(node);
        }
9829
        public virtual BoundNode VisitSwitchSection(BoundSwitchSection node)
D
DotNet Bot 已提交
9830 9831 9832
        {
            return this.DefaultVisit(node);
        }
9833
        public virtual BoundNode VisitSwitchLabel(BoundSwitchLabel node)
D
DotNet Bot 已提交
9834 9835 9836
        {
            return this.DefaultVisit(node);
        }
9837
        public virtual BoundNode VisitSequencePointExpression(BoundSequencePointExpression node)
D
DotNet Bot 已提交
9838 9839 9840
        {
            return this.DefaultVisit(node);
        }
9841
        public virtual BoundNode VisitSequence(BoundSequence node)
D
DotNet Bot 已提交
9842 9843 9844
        {
            return this.DefaultVisit(node);
        }
9845
        public virtual BoundNode VisitSpillSequence(BoundSpillSequence node)
D
DotNet Bot 已提交
9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDynamicMemberAccess(BoundDynamicMemberAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDynamicInvocation(BoundDynamicInvocation node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitConditionalAccess(BoundConditionalAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitLoweredConditionalAccess(BoundLoweredConditionalAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitConditionalReceiver(BoundConditionalReceiver node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitComplexConditionalReceiver(BoundComplexConditionalReceiver node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitMethodGroup(BoundMethodGroup node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitPropertyGroup(BoundPropertyGroup node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitCall(BoundCall node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitEventAssignmentOperator(BoundEventAssignmentOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitAttribute(BoundAttribute node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitObjectCreationExpression(BoundObjectCreationExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitTupleLiteral(BoundTupleLiteral node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitConvertedTupleLiteral(BoundConvertedTupleLiteral node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDynamicObjectCreationExpression(BoundDynamicObjectCreationExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitNoPiaObjectCreationExpression(BoundNoPiaObjectCreationExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitObjectInitializerExpression(BoundObjectInitializerExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitObjectInitializerMember(BoundObjectInitializerMember node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDynamicObjectInitializerMember(BoundDynamicObjectInitializerMember node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitCollectionInitializerExpression(BoundCollectionInitializerExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitCollectionElementInitializer(BoundCollectionElementInitializer node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDynamicCollectionElementInitializer(BoundDynamicCollectionElementInitializer node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitImplicitReceiver(BoundImplicitReceiver node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitAnonymousObjectCreationExpression(BoundAnonymousObjectCreationExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitAnonymousPropertyDeclaration(BoundAnonymousPropertyDeclaration node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitNewT(BoundNewT node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitArrayCreation(BoundArrayCreation node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitArrayInitialization(BoundArrayInitialization node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitStackAllocArrayCreation(BoundStackAllocArrayCreation node)
        {
            return this.DefaultVisit(node);
        }
9969 9970 9971 9972
        public virtual BoundNode VisitConvertedStackAllocExpression(BoundConvertedStackAllocExpression node)
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028
        public virtual BoundNode VisitFieldAccess(BoundFieldAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitHoistedFieldAccess(BoundHoistedFieldAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitPropertyAccess(BoundPropertyAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitEventAccess(BoundEventAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitIndexerAccess(BoundIndexerAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDynamicIndexerAccess(BoundDynamicIndexerAccess node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitLambda(BoundLambda node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitUnboundLambda(UnboundLambda node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitQueryClause(BoundQueryClause node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitTypeOrInstanceInitializers(BoundTypeOrInstanceInitializers node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitNameOfOperator(BoundNameOfOperator node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitInterpolatedString(BoundInterpolatedString node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitStringInsert(BoundStringInsert node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitIsPatternExpression(BoundIsPatternExpression node)
        {
            return this.DefaultVisit(node);
        }
10029
        public virtual BoundNode VisitConstantPattern(BoundConstantPattern node)
D
DotNet Bot 已提交
10030 10031 10032
        {
            return this.DefaultVisit(node);
        }
10033 10034 10035 10036
        public virtual BoundNode VisitDiscardPattern(BoundDiscardPattern node)
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
10037 10038 10039 10040
        public virtual BoundNode VisitDeclarationPattern(BoundDeclarationPattern node)
        {
            return this.DefaultVisit(node);
        }
10041
        public virtual BoundNode VisitRecursivePattern(BoundRecursivePattern node)
D
DotNet Bot 已提交
10042 10043 10044
        {
            return this.DefaultVisit(node);
        }
10045 10046 10047 10048
        public virtual BoundNode VisitITuplePattern(BoundITuplePattern node)
        {
            return this.DefaultVisit(node);
        }
10049
        public virtual BoundNode VisitSubpattern(BoundSubpattern node)
D
DotNet Bot 已提交
10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDiscardExpression(BoundDiscardExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitThrowExpression(BoundThrowExpression node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitOutVariablePendingInference(OutVariablePendingInference node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitDeconstructionVariablePendingInference(DeconstructionVariablePendingInference node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitOutDeconstructVarPendingInference(OutDeconstructVarPendingInference node)
        {
            return this.DefaultVisit(node);
        }
10073 10074 10075 10076 10077 10078 10079 10080
        public virtual BoundNode VisitNonConstructorMethodBody(BoundNonConstructorMethodBody node)
        {
            return this.DefaultVisit(node);
        }
        public virtual BoundNode VisitConstructorMethodBody(BoundConstructorMethodBody node)
        {
            return this.DefaultVisit(node);
        }
10081
        public virtual BoundNode VisitExpressionWithNullability(BoundExpressionWithNullability node)
10082 10083 10084
        {
            return this.DefaultVisit(node);
        }
D
DotNet Bot 已提交
10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112
    }

    internal abstract partial class BoundTreeWalker: BoundTreeVisitor
    {
        public override BoundNode VisitFieldEqualsValue(BoundFieldEqualsValue node)
        {
            this.Visit(node.Value);
            return null;
        }
        public override BoundNode VisitPropertyEqualsValue(BoundPropertyEqualsValue node)
        {
            this.Visit(node.Value);
            return null;
        }
        public override BoundNode VisitParameterEqualsValue(BoundParameterEqualsValue node)
        {
            this.Visit(node.Value);
            return null;
        }
        public override BoundNode VisitGlobalStatementInitializer(BoundGlobalStatementInitializer node)
        {
            this.Visit(node.Statement);
            return null;
        }
        public override BoundNode VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node)
        {
            return null;
        }
10113 10114 10115 10116
        public override BoundNode VisitTupleOperandPlaceholder(BoundTupleOperandPlaceholder node)
        {
            return null;
        }
10117 10118 10119 10120
        public override BoundNode VisitAwaitableValuePlaceholder(BoundAwaitableValuePlaceholder node)
        {
            return null;
        }
10121 10122 10123 10124
        public override BoundNode VisitDisposableValuePlaceholder(BoundDisposableValuePlaceholder node)
        {
            return null;
        }
D
DotNet Bot 已提交
10125 10126 10127 10128
        public override BoundNode VisitDup(BoundDup node)
        {
            return null;
        }
10129 10130 10131 10132 10133
        public override BoundNode VisitPassByCopy(BoundPassByCopy node)
        {
            this.Visit(node.Expression);
            return null;
        }
D
DotNet Bot 已提交
10134 10135 10136 10137 10138 10139 10140 10141 10142 10143
        public override BoundNode VisitBadExpression(BoundBadExpression node)
        {
            this.VisitList(node.ChildBoundNodes);
            return null;
        }
        public override BoundNode VisitBadStatement(BoundBadStatement node)
        {
            this.VisitList(node.ChildBoundNodes);
            return null;
        }
10144 10145 10146 10147 10148
        public override BoundNode VisitExtractedFinallyBlock(BoundExtractedFinallyBlock node)
        {
            this.Visit(node.FinallyBlock);
            return null;
        }
D
DotNet Bot 已提交
10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202
        public override BoundNode VisitTypeExpression(BoundTypeExpression node)
        {
            this.Visit(node.BoundContainingTypeOpt);
            return null;
        }
        public override BoundNode VisitTypeOrValueExpression(BoundTypeOrValueExpression node)
        {
            return null;
        }
        public override BoundNode VisitNamespaceExpression(BoundNamespaceExpression node)
        {
            return null;
        }
        public override BoundNode VisitUnaryOperator(BoundUnaryOperator node)
        {
            this.Visit(node.Operand);
            return null;
        }
        public override BoundNode VisitIncrementOperator(BoundIncrementOperator node)
        {
            this.Visit(node.Operand);
            return null;
        }
        public override BoundNode VisitAddressOfOperator(BoundAddressOfOperator node)
        {
            this.Visit(node.Operand);
            return null;
        }
        public override BoundNode VisitPointerIndirectionOperator(BoundPointerIndirectionOperator node)
        {
            this.Visit(node.Operand);
            return null;
        }
        public override BoundNode VisitPointerElementAccess(BoundPointerElementAccess node)
        {
            this.Visit(node.Expression);
            this.Visit(node.Index);
            return null;
        }
        public override BoundNode VisitRefTypeOperator(BoundRefTypeOperator node)
        {
            this.Visit(node.Operand);
            return null;
        }
        public override BoundNode VisitMakeRefOperator(BoundMakeRefOperator node)
        {
            this.Visit(node.Operand);
            return null;
        }
        public override BoundNode VisitRefValueOperator(BoundRefValueOperator node)
        {
            this.Visit(node.Operand);
            return null;
        }
10203 10204 10205 10206 10207
        public override BoundNode VisitFromEndIndexExpression(BoundFromEndIndexExpression node)
        {
            this.Visit(node.Operand);
            return null;
        }
O
Omar Tawfik 已提交
10208 10209
        public override BoundNode VisitRangeExpression(BoundRangeExpression node)
        {
10210 10211
            this.Visit(node.LeftOperandOpt);
            this.Visit(node.RightOperandOpt);
O
Omar Tawfik 已提交
10212 10213
            return null;
        }
D
DotNet Bot 已提交
10214 10215 10216 10217 10218 10219
        public override BoundNode VisitBinaryOperator(BoundBinaryOperator node)
        {
            this.Visit(node.Left);
            this.Visit(node.Right);
            return null;
        }
10220 10221 10222 10223 10224 10225
        public override BoundNode VisitTupleBinaryOperator(BoundTupleBinaryOperator node)
        {
            this.Visit(node.Left);
            this.Visit(node.Right);
            return null;
        }
D
DotNet Bot 已提交
10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255
        public override BoundNode VisitUserDefinedConditionalLogicalOperator(BoundUserDefinedConditionalLogicalOperator node)
        {
            this.Visit(node.Left);
            this.Visit(node.Right);
            return null;
        }
        public override BoundNode VisitCompoundAssignmentOperator(BoundCompoundAssignmentOperator node)
        {
            this.Visit(node.Left);
            this.Visit(node.Right);
            return null;
        }
        public override BoundNode VisitAssignmentOperator(BoundAssignmentOperator node)
        {
            this.Visit(node.Left);
            this.Visit(node.Right);
            return null;
        }
        public override BoundNode VisitDeconstructionAssignmentOperator(BoundDeconstructionAssignmentOperator node)
        {
            this.Visit(node.Left);
            this.Visit(node.Right);
            return null;
        }
        public override BoundNode VisitNullCoalescingOperator(BoundNullCoalescingOperator node)
        {
            this.Visit(node.LeftOperand);
            this.Visit(node.RightOperand);
            return null;
        }
F
Fredric Silberberg 已提交
10256
        public override BoundNode VisitNullCoalescingAssignmentOperator(BoundNullCoalescingAssignmentOperator node)
10257 10258 10259 10260 10261
        {
            this.Visit(node.LeftOperand);
            this.Visit(node.RightOperand);
            return null;
        }
D
DotNet Bot 已提交
10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321
        public override BoundNode VisitConditionalOperator(BoundConditionalOperator node)
        {
            this.Visit(node.Condition);
            this.Visit(node.Consequence);
            this.Visit(node.Alternative);
            return null;
        }
        public override BoundNode VisitArrayAccess(BoundArrayAccess node)
        {
            this.Visit(node.Expression);
            this.VisitList(node.Indices);
            return null;
        }
        public override BoundNode VisitArrayLength(BoundArrayLength node)
        {
            this.Visit(node.Expression);
            return null;
        }
        public override BoundNode VisitAwaitExpression(BoundAwaitExpression node)
        {
            this.Visit(node.Expression);
            return null;
        }
        public override BoundNode VisitTypeOfOperator(BoundTypeOfOperator node)
        {
            this.Visit(node.SourceType);
            return null;
        }
        public override BoundNode VisitMethodDefIndex(BoundMethodDefIndex node)
        {
            return null;
        }
        public override BoundNode VisitMaximumMethodDefIndex(BoundMaximumMethodDefIndex node)
        {
            return null;
        }
        public override BoundNode VisitInstrumentationPayloadRoot(BoundInstrumentationPayloadRoot node)
        {
            return null;
        }
        public override BoundNode VisitModuleVersionId(BoundModuleVersionId node)
        {
            return null;
        }
        public override BoundNode VisitModuleVersionIdString(BoundModuleVersionIdString node)
        {
            return null;
        }
        public override BoundNode VisitSourceDocumentIndex(BoundSourceDocumentIndex node)
        {
            return null;
        }
        public override BoundNode VisitMethodInfo(BoundMethodInfo node)
        {
            return null;
        }
        public override BoundNode VisitFieldInfo(BoundFieldInfo node)
        {
            return null;
        }
10322
        public override BoundNode VisitDefaultExpression(BoundDefaultExpression node)
D
DotNet Bot 已提交
10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
        {
            return null;
        }
        public override BoundNode VisitIsOperator(BoundIsOperator node)
        {
            this.Visit(node.Operand);
            this.Visit(node.TargetType);
            return null;
        }
        public override BoundNode VisitAsOperator(BoundAsOperator node)
        {
            this.Visit(node.Operand);
            this.Visit(node.TargetType);
            return null;
        }
        public override BoundNode VisitSizeOfOperator(BoundSizeOfOperator node)
        {
            this.Visit(node.SourceType);
            return null;
        }
        public override BoundNode VisitConversion(BoundConversion node)
        {
            this.Visit(node.Operand);
            return null;
        }
        public override BoundNode VisitArgList(BoundArgList node)
        {
            return null;
        }
        public override BoundNode VisitArgListOperator(BoundArgListOperator node)
        {
            this.VisitList(node.Arguments);
            return null;
        }
        public override BoundNode VisitFixedLocalCollectionInitializer(BoundFixedLocalCollectionInitializer node)
        {
            this.Visit(node.Expression);
            return null;
        }
        public override BoundNode VisitSequencePoint(BoundSequencePoint node)
        {
            this.Visit(node.StatementOpt);
            return null;
        }
        public override BoundNode VisitSequencePointWithSpan(BoundSequencePointWithSpan node)
        {
            this.Visit(node.StatementOpt);
            return null;
        }
        public override BoundNode VisitBlock(BoundBlock node)
        {
            this.VisitList(node.Statements);
            return null;
        }
        public override BoundNode VisitScope(BoundScope node)
        {
            this.VisitList(node.Statements);
            return null;
        }
        public override BoundNode VisitStateMachineScope(BoundStateMachineScope node)
        {
            this.Visit(node.Statement);
            return null;
        }
        public override BoundNode VisitLocalDeclaration(BoundLocalDeclaration node)
        {
            this.Visit(node.DeclaredType);
            this.Visit(node.InitializerOpt);
            this.VisitList(node.ArgumentsOpt);
            return null;
        }
        public override BoundNode VisitMultipleLocalDeclarations(BoundMultipleLocalDeclarations node)
        {
            this.VisitList(node.LocalDeclarations);
            return null;
        }
10399 10400 10401 10402 10403
        public override BoundNode VisitUsingLocalDeclarations(BoundUsingLocalDeclarations node)
        {
            this.VisitList(node.LocalDeclarations);
            return null;
        }
D
DotNet Bot 已提交
10404 10405
        public override BoundNode VisitLocalFunctionStatement(BoundLocalFunctionStatement node)
        {
10406 10407
            this.Visit(node.BlockBody);
            this.Visit(node.ExpressionBody);
D
DotNet Bot 已提交
10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445
            return null;
        }
        public override BoundNode VisitNoOpStatement(BoundNoOpStatement node)
        {
            return null;
        }
        public override BoundNode VisitReturnStatement(BoundReturnStatement node)
        {
            this.Visit(node.ExpressionOpt);
            return null;
        }
        public override BoundNode VisitYieldReturnStatement(BoundYieldReturnStatement node)
        {
            this.Visit(node.Expression);
            return null;
        }
        public override BoundNode VisitYieldBreakStatement(BoundYieldBreakStatement node)
        {
            return null;
        }
        public override BoundNode VisitThrowStatement(BoundThrowStatement node)
        {
            this.Visit(node.ExpressionOpt);
            return null;
        }
        public override BoundNode VisitExpressionStatement(BoundExpressionStatement node)
        {
            this.Visit(node.Expression);
            return null;
        }
        public override BoundNode VisitBreakStatement(BoundBreakStatement node)
        {
            return null;
        }
        public override BoundNode VisitContinueStatement(BoundContinueStatement node)
        {
            return null;
        }
10446
        public override BoundNode VisitSwitchStatement(BoundSwitchStatement node)
D
DotNet Bot 已提交
10447 10448 10449 10450 10451 10452
        {
            this.Visit(node.Expression);
            this.VisitList(node.SwitchSections);
            this.Visit(node.DefaultLabel);
            return null;
        }
10453
        public override BoundNode VisitSwitchDispatch(BoundSwitchDispatch node)
D
DotNet Bot 已提交
10454
        {
10455
            this.Visit(node.Expression);
D
DotNet Bot 已提交
10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487
            return null;
        }
        public override BoundNode VisitIfStatement(BoundIfStatement node)
        {
            this.Visit(node.Condition);
            this.Visit(node.Consequence);
            this.Visit(node.AlternativeOpt);
            return null;
        }
        public override BoundNode VisitDoStatement(BoundDoStatement node)
        {
            this.Visit(node.Condition);
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitWhileStatement(BoundWhileStatement node)
        {
            this.Visit(node.Condition);
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitForStatement(BoundForStatement node)
        {
            this.Visit(node.Initializer);
            this.Visit(node.Condition);
            this.Visit(node.Increment);
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitForEachStatement(BoundForEachStatement node)
        {
            this.Visit(node.IterationVariableType);
10488
            this.Visit(node.IterationErrorExpressionOpt);
D
DotNet Bot 已提交
10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598
            this.Visit(node.Expression);
            this.Visit(node.DeconstructionOpt);
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitForEachDeconstructStep(BoundForEachDeconstructStep node)
        {
            this.Visit(node.DeconstructionAssignment);
            this.Visit(node.TargetPlaceholder);
            return null;
        }
        public override BoundNode VisitUsingStatement(BoundUsingStatement node)
        {
            this.Visit(node.DeclarationsOpt);
            this.Visit(node.ExpressionOpt);
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitFixedStatement(BoundFixedStatement node)
        {
            this.Visit(node.Declarations);
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitLockStatement(BoundLockStatement node)
        {
            this.Visit(node.Argument);
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitTryStatement(BoundTryStatement node)
        {
            this.Visit(node.TryBlock);
            this.VisitList(node.CatchBlocks);
            this.Visit(node.FinallyBlockOpt);
            return null;
        }
        public override BoundNode VisitCatchBlock(BoundCatchBlock node)
        {
            this.Visit(node.ExceptionSourceOpt);
            this.Visit(node.ExceptionFilterOpt);
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitLiteral(BoundLiteral node)
        {
            return null;
        }
        public override BoundNode VisitThisReference(BoundThisReference node)
        {
            return null;
        }
        public override BoundNode VisitPreviousSubmissionReference(BoundPreviousSubmissionReference node)
        {
            return null;
        }
        public override BoundNode VisitHostObjectMemberReference(BoundHostObjectMemberReference node)
        {
            return null;
        }
        public override BoundNode VisitBaseReference(BoundBaseReference node)
        {
            return null;
        }
        public override BoundNode VisitLocal(BoundLocal node)
        {
            return null;
        }
        public override BoundNode VisitPseudoVariable(BoundPseudoVariable node)
        {
            return null;
        }
        public override BoundNode VisitRangeVariable(BoundRangeVariable node)
        {
            this.Visit(node.Value);
            return null;
        }
        public override BoundNode VisitParameter(BoundParameter node)
        {
            return null;
        }
        public override BoundNode VisitLabelStatement(BoundLabelStatement node)
        {
            return null;
        }
        public override BoundNode VisitGotoStatement(BoundGotoStatement node)
        {
            this.Visit(node.CaseExpressionOpt);
            this.Visit(node.LabelExpressionOpt);
            return null;
        }
        public override BoundNode VisitLabeledStatement(BoundLabeledStatement node)
        {
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitLabel(BoundLabel node)
        {
            return null;
        }
        public override BoundNode VisitStatementList(BoundStatementList node)
        {
            this.VisitList(node.Statements);
            return null;
        }
        public override BoundNode VisitConditionalGoto(BoundConditionalGoto node)
        {
            this.Visit(node.Condition);
            return null;
        }
10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684
        public override BoundNode VisitSwitchExpression(BoundSwitchExpression node)
        {
            this.Visit(node.Expression);
            this.VisitList(node.SwitchArms);
            return null;
        }
        public override BoundNode VisitSwitchExpressionArm(BoundSwitchExpressionArm node)
        {
            this.Visit(node.Pattern);
            this.Visit(node.WhenClause);
            this.Visit(node.Value);
            return null;
        }
        public override BoundNode VisitDecisionDag(BoundDecisionDag node)
        {
            return null;
        }
        public override BoundNode VisitEvaluationDecisionDagNode(BoundEvaluationDecisionDagNode node)
        {
            this.Visit(node.Evaluation);
            this.Visit(node.Next);
            return null;
        }
        public override BoundNode VisitTestDecisionDagNode(BoundTestDecisionDagNode node)
        {
            this.Visit(node.Test);
            this.Visit(node.WhenTrue);
            this.Visit(node.WhenFalse);
            return null;
        }
        public override BoundNode VisitWhenDecisionDagNode(BoundWhenDecisionDagNode node)
        {
            this.Visit(node.WhenExpression);
            this.Visit(node.WhenTrue);
            this.Visit(node.WhenFalse);
            return null;
        }
        public override BoundNode VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node)
        {
            return null;
        }
        public override BoundNode VisitDagTemp(BoundDagTemp node)
        {
            this.Visit(node.Source);
            return null;
        }
        public override BoundNode VisitDagTypeTest(BoundDagTypeTest node)
        {
            this.Visit(node.Input);
            return null;
        }
        public override BoundNode VisitDagNonNullTest(BoundDagNonNullTest node)
        {
            this.Visit(node.Input);
            return null;
        }
        public override BoundNode VisitDagNullTest(BoundDagNullTest node)
        {
            this.Visit(node.Input);
            return null;
        }
        public override BoundNode VisitDagValueTest(BoundDagValueTest node)
        {
            this.Visit(node.Input);
            return null;
        }
        public override BoundNode VisitDagDeconstructEvaluation(BoundDagDeconstructEvaluation node)
        {
            this.Visit(node.Input);
            return null;
        }
        public override BoundNode VisitDagTypeEvaluation(BoundDagTypeEvaluation node)
        {
            this.Visit(node.Input);
            return null;
        }
        public override BoundNode VisitDagFieldEvaluation(BoundDagFieldEvaluation node)
        {
            this.Visit(node.Input);
            return null;
        }
        public override BoundNode VisitDagPropertyEvaluation(BoundDagPropertyEvaluation node)
        {
            this.Visit(node.Input);
            return null;
        }
10685 10686 10687 10688 10689
        public override BoundNode VisitDagIndexEvaluation(BoundDagIndexEvaluation node)
        {
            this.Visit(node.Input);
            return null;
        }
10690
        public override BoundNode VisitSwitchSection(BoundSwitchSection node)
10691 10692 10693 10694 10695
        {
            this.VisitList(node.SwitchLabels);
            this.VisitList(node.Statements);
            return null;
        }
10696
        public override BoundNode VisitSwitchLabel(BoundSwitchLabel node)
D
DotNet Bot 已提交
10697
        {
10698 10699
            this.Visit(node.Pattern);
            this.Visit(node.WhenClause);
D
DotNet Bot 已提交
10700 10701
            return null;
        }
10702
        public override BoundNode VisitSequencePointExpression(BoundSequencePointExpression node)
D
DotNet Bot 已提交
10703
        {
10704
            this.Visit(node.Expression);
D
DotNet Bot 已提交
10705 10706
            return null;
        }
10707
        public override BoundNode VisitSequence(BoundSequence node)
D
DotNet Bot 已提交
10708
        {
10709 10710
            this.VisitList(node.SideEffects);
            this.Visit(node.Value);
D
DotNet Bot 已提交
10711 10712
            return null;
        }
10713
        public override BoundNode VisitSpillSequence(BoundSpillSequence node)
D
DotNet Bot 已提交
10714
        {
10715 10716
            this.VisitList(node.SideEffects);
            this.Visit(node.Value);
D
DotNet Bot 已提交
10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829
            return null;
        }
        public override BoundNode VisitDynamicMemberAccess(BoundDynamicMemberAccess node)
        {
            this.Visit(node.Receiver);
            return null;
        }
        public override BoundNode VisitDynamicInvocation(BoundDynamicInvocation node)
        {
            this.Visit(node.Expression);
            this.VisitList(node.Arguments);
            return null;
        }
        public override BoundNode VisitConditionalAccess(BoundConditionalAccess node)
        {
            this.Visit(node.Receiver);
            this.Visit(node.AccessExpression);
            return null;
        }
        public override BoundNode VisitLoweredConditionalAccess(BoundLoweredConditionalAccess node)
        {
            this.Visit(node.Receiver);
            this.Visit(node.WhenNotNull);
            this.Visit(node.WhenNullOpt);
            return null;
        }
        public override BoundNode VisitConditionalReceiver(BoundConditionalReceiver node)
        {
            return null;
        }
        public override BoundNode VisitComplexConditionalReceiver(BoundComplexConditionalReceiver node)
        {
            this.Visit(node.ValueTypeReceiver);
            this.Visit(node.ReferenceTypeReceiver);
            return null;
        }
        public override BoundNode VisitMethodGroup(BoundMethodGroup node)
        {
            this.Visit(node.ReceiverOpt);
            return null;
        }
        public override BoundNode VisitPropertyGroup(BoundPropertyGroup node)
        {
            this.Visit(node.ReceiverOpt);
            return null;
        }
        public override BoundNode VisitCall(BoundCall node)
        {
            this.Visit(node.ReceiverOpt);
            this.VisitList(node.Arguments);
            return null;
        }
        public override BoundNode VisitEventAssignmentOperator(BoundEventAssignmentOperator node)
        {
            this.Visit(node.ReceiverOpt);
            this.Visit(node.Argument);
            return null;
        }
        public override BoundNode VisitAttribute(BoundAttribute node)
        {
            this.VisitList(node.ConstructorArguments);
            this.VisitList(node.NamedArguments);
            return null;
        }
        public override BoundNode VisitObjectCreationExpression(BoundObjectCreationExpression node)
        {
            this.VisitList(node.Arguments);
            this.Visit(node.InitializerExpressionOpt);
            return null;
        }
        public override BoundNode VisitTupleLiteral(BoundTupleLiteral node)
        {
            this.VisitList(node.Arguments);
            return null;
        }
        public override BoundNode VisitConvertedTupleLiteral(BoundConvertedTupleLiteral node)
        {
            this.VisitList(node.Arguments);
            return null;
        }
        public override BoundNode VisitDynamicObjectCreationExpression(BoundDynamicObjectCreationExpression node)
        {
            this.VisitList(node.Arguments);
            this.Visit(node.InitializerExpressionOpt);
            return null;
        }
        public override BoundNode VisitNoPiaObjectCreationExpression(BoundNoPiaObjectCreationExpression node)
        {
            this.Visit(node.InitializerExpressionOpt);
            return null;
        }
        public override BoundNode VisitObjectInitializerExpression(BoundObjectInitializerExpression node)
        {
            this.VisitList(node.Initializers);
            return null;
        }
        public override BoundNode VisitObjectInitializerMember(BoundObjectInitializerMember node)
        {
            this.VisitList(node.Arguments);
            return null;
        }
        public override BoundNode VisitDynamicObjectInitializerMember(BoundDynamicObjectInitializerMember node)
        {
            return null;
        }
        public override BoundNode VisitCollectionInitializerExpression(BoundCollectionInitializerExpression node)
        {
            this.VisitList(node.Initializers);
            return null;
        }
        public override BoundNode VisitCollectionElementInitializer(BoundCollectionElementInitializer node)
        {
            this.VisitList(node.Arguments);
10830
            this.Visit(node.ImplicitReceiverOpt);
D
DotNet Bot 已提交
10831 10832 10833 10834
            return null;
        }
        public override BoundNode VisitDynamicCollectionElementInitializer(BoundDynamicCollectionElementInitializer node)
        {
10835
            this.Visit(node.Expression);
D
DotNet Bot 已提交
10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876
            this.VisitList(node.Arguments);
            return null;
        }
        public override BoundNode VisitImplicitReceiver(BoundImplicitReceiver node)
        {
            return null;
        }
        public override BoundNode VisitAnonymousObjectCreationExpression(BoundAnonymousObjectCreationExpression node)
        {
            this.VisitList(node.Arguments);
            this.VisitList(node.Declarations);
            return null;
        }
        public override BoundNode VisitAnonymousPropertyDeclaration(BoundAnonymousPropertyDeclaration node)
        {
            return null;
        }
        public override BoundNode VisitNewT(BoundNewT node)
        {
            this.Visit(node.InitializerExpressionOpt);
            return null;
        }
        public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
        {
            this.Visit(node.Argument);
            return null;
        }
        public override BoundNode VisitArrayCreation(BoundArrayCreation node)
        {
            this.VisitList(node.Bounds);
            this.Visit(node.InitializerOpt);
            return null;
        }
        public override BoundNode VisitArrayInitialization(BoundArrayInitialization node)
        {
            this.VisitList(node.Initializers);
            return null;
        }
        public override BoundNode VisitStackAllocArrayCreation(BoundStackAllocArrayCreation node)
        {
            this.Visit(node.Count);
10877
            this.Visit(node.InitializerOpt);
D
DotNet Bot 已提交
10878 10879
            return null;
        }
10880 10881 10882
        public override BoundNode VisitConvertedStackAllocExpression(BoundConvertedStackAllocExpression node)
        {
            this.Visit(node.Count);
10883
            this.Visit(node.InitializerOpt);
10884 10885
            return null;
        }
D
DotNet Bot 已提交
10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958
        public override BoundNode VisitFieldAccess(BoundFieldAccess node)
        {
            this.Visit(node.ReceiverOpt);
            return null;
        }
        public override BoundNode VisitHoistedFieldAccess(BoundHoistedFieldAccess node)
        {
            return null;
        }
        public override BoundNode VisitPropertyAccess(BoundPropertyAccess node)
        {
            this.Visit(node.ReceiverOpt);
            return null;
        }
        public override BoundNode VisitEventAccess(BoundEventAccess node)
        {
            this.Visit(node.ReceiverOpt);
            return null;
        }
        public override BoundNode VisitIndexerAccess(BoundIndexerAccess node)
        {
            this.Visit(node.ReceiverOpt);
            this.VisitList(node.Arguments);
            return null;
        }
        public override BoundNode VisitDynamicIndexerAccess(BoundDynamicIndexerAccess node)
        {
            this.Visit(node.ReceiverOpt);
            this.VisitList(node.Arguments);
            return null;
        }
        public override BoundNode VisitLambda(BoundLambda node)
        {
            this.Visit(node.Body);
            return null;
        }
        public override BoundNode VisitUnboundLambda(UnboundLambda node)
        {
            return null;
        }
        public override BoundNode VisitQueryClause(BoundQueryClause node)
        {
            this.Visit(node.Value);
            return null;
        }
        public override BoundNode VisitTypeOrInstanceInitializers(BoundTypeOrInstanceInitializers node)
        {
            this.VisitList(node.Statements);
            return null;
        }
        public override BoundNode VisitNameOfOperator(BoundNameOfOperator node)
        {
            this.Visit(node.Argument);
            return null;
        }
        public override BoundNode VisitInterpolatedString(BoundInterpolatedString node)
        {
            this.VisitList(node.Parts);
            return null;
        }
        public override BoundNode VisitStringInsert(BoundStringInsert node)
        {
            this.Visit(node.Value);
            this.Visit(node.Alignment);
            this.Visit(node.Format);
            return null;
        }
        public override BoundNode VisitIsPatternExpression(BoundIsPatternExpression node)
        {
            this.Visit(node.Expression);
            this.Visit(node.Pattern);
            return null;
        }
10959
        public override BoundNode VisitConstantPattern(BoundConstantPattern node)
D
DotNet Bot 已提交
10960
        {
10961
            this.Visit(node.Value);
D
DotNet Bot 已提交
10962 10963
            return null;
        }
10964
        public override BoundNode VisitDiscardPattern(BoundDiscardPattern node)
D
DotNet Bot 已提交
10965 10966 10967 10968 10969 10970 10971 10972 10973
        {
            return null;
        }
        public override BoundNode VisitDeclarationPattern(BoundDeclarationPattern node)
        {
            this.Visit(node.VariableAccess);
            this.Visit(node.DeclaredType);
            return null;
        }
10974
        public override BoundNode VisitRecursivePattern(BoundRecursivePattern node)
D
DotNet Bot 已提交
10975
        {
10976 10977
            this.Visit(node.DeclaredType);
            this.VisitList(node.Deconstruction);
10978
            this.VisitList(node.Properties);
10979
            this.Visit(node.VariableAccess);
D
DotNet Bot 已提交
10980 10981
            return null;
        }
10982
        public override BoundNode VisitITuplePattern(BoundITuplePattern node)
D
DotNet Bot 已提交
10983
        {
10984 10985 10986
            this.VisitList(node.Subpatterns);
            return null;
        }
10987 10988 10989
        public override BoundNode VisitSubpattern(BoundSubpattern node)
        {
            this.Visit(node.Pattern);
D
DotNet Bot 已提交
10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014
            return null;
        }
        public override BoundNode VisitDiscardExpression(BoundDiscardExpression node)
        {
            return null;
        }
        public override BoundNode VisitThrowExpression(BoundThrowExpression node)
        {
            this.Visit(node.Expression);
            return null;
        }
        public override BoundNode VisitOutVariablePendingInference(OutVariablePendingInference node)
        {
            this.Visit(node.ReceiverOpt);
            return null;
        }
        public override BoundNode VisitDeconstructionVariablePendingInference(DeconstructionVariablePendingInference node)
        {
            this.Visit(node.ReceiverOpt);
            return null;
        }
        public override BoundNode VisitOutDeconstructVarPendingInference(OutDeconstructVarPendingInference node)
        {
            return null;
        }
11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027
        public override BoundNode VisitNonConstructorMethodBody(BoundNonConstructorMethodBody node)
        {
            this.Visit(node.BlockBody);
            this.Visit(node.ExpressionBody);
            return null;
        }
        public override BoundNode VisitConstructorMethodBody(BoundConstructorMethodBody node)
        {
            this.Visit(node.Initializer);
            this.Visit(node.BlockBody);
            this.Visit(node.ExpressionBody);
            return null;
        }
11028
        public override BoundNode VisitExpressionWithNullability(BoundExpressionWithNullability node)
11029
        {
11030
            this.Visit(node.Expression);
11031 11032
            return null;
        }
D
DotNet Bot 已提交
11033 11034 11035 11036 11037 11038 11039
    }

    internal abstract partial class BoundTreeRewriter : BoundTreeVisitor
    {
        public override BoundNode VisitFieldEqualsValue(BoundFieldEqualsValue node)
        {
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
11040
            return node.Update(node.Field, node.Locals, value);
D
DotNet Bot 已提交
11041 11042 11043 11044
        }
        public override BoundNode VisitPropertyEqualsValue(BoundPropertyEqualsValue node)
        {
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
11045
            return node.Update(node.Property, node.Locals, value);
D
DotNet Bot 已提交
11046 11047 11048 11049
        }
        public override BoundNode VisitParameterEqualsValue(BoundParameterEqualsValue node)
        {
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
11050
            return node.Update(node.Parameter, node.Locals, value);
D
DotNet Bot 已提交
11051 11052 11053 11054 11055 11056 11057 11058 11059
        }
        public override BoundNode VisitGlobalStatementInitializer(BoundGlobalStatementInitializer node)
        {
            BoundStatement statement = (BoundStatement)this.Visit(node.Statement);
            return node.Update(statement);
        }
        public override BoundNode VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node)
        {
            TypeSymbol type = this.VisitType(node.Type);
11060
            return node.Update(node.ValEscape, type);
D
DotNet Bot 已提交
11061
        }
11062 11063 11064 11065 11066
        public override BoundNode VisitTupleOperandPlaceholder(BoundTupleOperandPlaceholder node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
11067 11068 11069 11070 11071
        public override BoundNode VisitAwaitableValuePlaceholder(BoundAwaitableValuePlaceholder node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
11072 11073 11074 11075 11076
        public override BoundNode VisitDisposableValuePlaceholder(BoundDisposableValuePlaceholder node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
D
DotNet Bot 已提交
11077 11078 11079 11080 11081
        public override BoundNode VisitDup(BoundDup node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.RefKind, type);
        }
11082 11083 11084 11085 11086 11087
        public override BoundNode VisitPassByCopy(BoundPassByCopy node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(expression, type);
        }
D
DotNet Bot 已提交
11088 11089
        public override BoundNode VisitBadExpression(BoundBadExpression node)
        {
11090
            ImmutableArray<BoundExpression> childBoundNodes = (ImmutableArray<BoundExpression>)this.VisitList(node.ChildBoundNodes);
D
DotNet Bot 已提交
11091 11092 11093 11094 11095 11096 11097 11098
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.ResultKind, node.Symbols, childBoundNodes, type);
        }
        public override BoundNode VisitBadStatement(BoundBadStatement node)
        {
            ImmutableArray<BoundNode> childBoundNodes = (ImmutableArray<BoundNode>)this.VisitList(node.ChildBoundNodes);
            return node.Update(childBoundNodes);
        }
11099 11100 11101 11102 11103
        public override BoundNode VisitExtractedFinallyBlock(BoundExtractedFinallyBlock node)
        {
            BoundBlock finallyBlock = (BoundBlock)this.Visit(node.FinallyBlock);
            return node.Update(finallyBlock);
        }
D
DotNet Bot 已提交
11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135
        public override BoundNode VisitTypeExpression(BoundTypeExpression node)
        {
            BoundTypeExpression boundContainingTypeOpt = (BoundTypeExpression)this.Visit(node.BoundContainingTypeOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.AliasOpt, node.InferredType, boundContainingTypeOpt, type);
        }
        public override BoundNode VisitTypeOrValueExpression(BoundTypeOrValueExpression node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Data, type);
        }
        public override BoundNode VisitNamespaceExpression(BoundNamespaceExpression node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.NamespaceSymbol, node.AliasOpt);
        }
        public override BoundNode VisitUnaryOperator(BoundUnaryOperator node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.MethodOpt, node.ResultKind, type);
        }
        public override BoundNode VisitIncrementOperator(BoundIncrementOperator node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.OperatorKind, operand, node.MethodOpt, node.OperandConversion, node.ResultConversion, node.ResultKind, type);
        }
        public override BoundNode VisitAddressOfOperator(BoundAddressOfOperator node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            TypeSymbol type = this.VisitType(node.Type);
11136
            return node.Update(operand, node.IsManaged, type);
D
DotNet Bot 已提交
11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168
        }
        public override BoundNode VisitPointerIndirectionOperator(BoundPointerIndirectionOperator node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(operand, type);
        }
        public override BoundNode VisitPointerElementAccess(BoundPointerElementAccess node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            BoundExpression index = (BoundExpression)this.Visit(node.Index);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(expression, index, node.Checked, type);
        }
        public override BoundNode VisitRefTypeOperator(BoundRefTypeOperator node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(operand, node.GetTypeFromHandle, type);
        }
        public override BoundNode VisitMakeRefOperator(BoundMakeRefOperator node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(operand, type);
        }
        public override BoundNode VisitRefValueOperator(BoundRefValueOperator node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(operand, type);
        }
11169 11170 11171 11172 11173 11174
        public override BoundNode VisitFromEndIndexExpression(BoundFromEndIndexExpression node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(operand, node.MethodOpt, type);
        }
O
Omar Tawfik 已提交
11175 11176
        public override BoundNode VisitRangeExpression(BoundRangeExpression node)
        {
11177 11178
            BoundExpression leftOperandOpt = (BoundExpression)this.Visit(node.LeftOperandOpt);
            BoundExpression rightOperandOpt = (BoundExpression)this.Visit(node.RightOperandOpt);
O
Omar Tawfik 已提交
11179
            TypeSymbol type = this.VisitType(node.Type);
11180
            return node.Update(leftOperandOpt, rightOperandOpt, node.MethodOpt, type);
O
Omar Tawfik 已提交
11181
        }
D
DotNet Bot 已提交
11182 11183 11184 11185 11186
        public override BoundNode VisitBinaryOperator(BoundBinaryOperator node)
        {
            BoundExpression left = (BoundExpression)this.Visit(node.Left);
            BoundExpression right = (BoundExpression)this.Visit(node.Right);
            TypeSymbol type = this.VisitType(node.Type);
11187
            return node.Update(node.OperatorKind, node.ConstantValueOpt, node.MethodOpt, node.ResultKind, left, right, type);
D
DotNet Bot 已提交
11188
        }
11189 11190 11191 11192
        public override BoundNode VisitTupleBinaryOperator(BoundTupleBinaryOperator node)
        {
            BoundExpression left = (BoundExpression)this.Visit(node.Left);
            BoundExpression right = (BoundExpression)this.Visit(node.Right);
11193 11194
            BoundExpression convertedLeft = node.ConvertedLeft;
            BoundExpression convertedRight = node.ConvertedRight;
11195
            TypeSymbol type = this.VisitType(node.Type);
11196
            return node.Update(left, right, convertedLeft, convertedRight, node.OperatorKind, node.Operators, type);
11197
        }
D
DotNet Bot 已提交
11198 11199 11200 11201 11202
        public override BoundNode VisitUserDefinedConditionalLogicalOperator(BoundUserDefinedConditionalLogicalOperator node)
        {
            BoundExpression left = (BoundExpression)this.Visit(node.Left);
            BoundExpression right = (BoundExpression)this.Visit(node.Right);
            TypeSymbol type = this.VisitType(node.Type);
11203
            return node.Update(node.OperatorKind, node.LogicalOperator, node.TrueOperator, node.FalseOperator, node.ResultKind, left, right, type);
D
DotNet Bot 已提交
11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216
        }
        public override BoundNode VisitCompoundAssignmentOperator(BoundCompoundAssignmentOperator node)
        {
            BoundExpression left = (BoundExpression)this.Visit(node.Left);
            BoundExpression right = (BoundExpression)this.Visit(node.Right);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Operator, left, right, node.LeftConversion, node.FinalConversion, node.ResultKind, type);
        }
        public override BoundNode VisitAssignmentOperator(BoundAssignmentOperator node)
        {
            BoundExpression left = (BoundExpression)this.Visit(node.Left);
            BoundExpression right = (BoundExpression)this.Visit(node.Right);
            TypeSymbol type = this.VisitType(node.Type);
11217
            return node.Update(left, right, node.IsRef, type);
D
DotNet Bot 已提交
11218 11219 11220 11221 11222 11223
        }
        public override BoundNode VisitDeconstructionAssignmentOperator(BoundDeconstructionAssignmentOperator node)
        {
            BoundTupleExpression left = (BoundTupleExpression)this.Visit(node.Left);
            BoundConversion right = (BoundConversion)this.Visit(node.Right);
            TypeSymbol type = this.VisitType(node.Type);
11224
            return node.Update(left, right, node.IsUsed, type);
D
DotNet Bot 已提交
11225 11226 11227 11228 11229 11230
        }
        public override BoundNode VisitNullCoalescingOperator(BoundNullCoalescingOperator node)
        {
            BoundExpression leftOperand = (BoundExpression)this.Visit(node.LeftOperand);
            BoundExpression rightOperand = (BoundExpression)this.Visit(node.RightOperand);
            TypeSymbol type = this.VisitType(node.Type);
11231
            return node.Update(leftOperand, rightOperand, node.LeftConversion, node.OperatorResultKind, type);
D
DotNet Bot 已提交
11232
        }
F
Fredric Silberberg 已提交
11233
        public override BoundNode VisitNullCoalescingAssignmentOperator(BoundNullCoalescingAssignmentOperator node)
11234 11235 11236 11237
        {
            BoundExpression leftOperand = (BoundExpression)this.Visit(node.LeftOperand);
            BoundExpression rightOperand = (BoundExpression)this.Visit(node.RightOperand);
            TypeSymbol type = this.VisitType(node.Type);
F
Fredric Silberberg 已提交
11238
            return node.Update(leftOperand, rightOperand, type);
D
DotNet Bot 已提交
11239 11240 11241 11242 11243 11244 11245
        }
        public override BoundNode VisitConditionalOperator(BoundConditionalOperator node)
        {
            BoundExpression condition = (BoundExpression)this.Visit(node.Condition);
            BoundExpression consequence = (BoundExpression)this.Visit(node.Consequence);
            BoundExpression alternative = (BoundExpression)this.Visit(node.Alternative);
            TypeSymbol type = this.VisitType(node.Type);
11246
            return node.Update(node.IsRef, condition, consequence, alternative, node.ConstantValueOpt, type);
D
DotNet Bot 已提交
11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264
        }
        public override BoundNode VisitArrayAccess(BoundArrayAccess node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            ImmutableArray<BoundExpression> indices = (ImmutableArray<BoundExpression>)this.VisitList(node.Indices);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(expression, indices, type);
        }
        public override BoundNode VisitArrayLength(BoundArrayLength node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(expression, type);
        }
        public override BoundNode VisitAwaitExpression(BoundAwaitExpression node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            TypeSymbol type = this.VisitType(node.Type);
11265
            return node.Update(expression, node.AwaitableInfo, type);
D
DotNet Bot 已提交
11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312
        }
        public override BoundNode VisitTypeOfOperator(BoundTypeOfOperator node)
        {
            BoundTypeExpression sourceType = (BoundTypeExpression)this.Visit(node.SourceType);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(sourceType, node.GetTypeFromHandle, type);
        }
        public override BoundNode VisitMethodDefIndex(BoundMethodDefIndex node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Method, type);
        }
        public override BoundNode VisitMaximumMethodDefIndex(BoundMaximumMethodDefIndex node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitInstrumentationPayloadRoot(BoundInstrumentationPayloadRoot node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.AnalysisKind, type);
        }
        public override BoundNode VisitModuleVersionId(BoundModuleVersionId node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitModuleVersionIdString(BoundModuleVersionIdString node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitSourceDocumentIndex(BoundSourceDocumentIndex node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Document, type);
        }
        public override BoundNode VisitMethodInfo(BoundMethodInfo node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Method, node.GetMethodFromHandle, type);
        }
        public override BoundNode VisitFieldInfo(BoundFieldInfo node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Field, node.GetFieldFromHandle, type);
        }
11313
        public override BoundNode VisitDefaultExpression(BoundDefaultExpression node)
D
DotNet Bot 已提交
11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.ConstantValueOpt, type);
        }
        public override BoundNode VisitIsOperator(BoundIsOperator node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            BoundTypeExpression targetType = (BoundTypeExpression)this.Visit(node.TargetType);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(operand, targetType, node.Conversion, type);
        }
        public override BoundNode VisitAsOperator(BoundAsOperator node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            BoundTypeExpression targetType = (BoundTypeExpression)this.Visit(node.TargetType);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(operand, targetType, node.Conversion, type);
        }
        public override BoundNode VisitSizeOfOperator(BoundSizeOfOperator node)
        {
            BoundTypeExpression sourceType = (BoundTypeExpression)this.Visit(node.SourceType);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(sourceType, node.ConstantValueOpt, type);
        }
        public override BoundNode VisitConversion(BoundConversion node)
        {
            BoundExpression operand = (BoundExpression)this.Visit(node.Operand);
            TypeSymbol type = this.VisitType(node.Type);
11342
            return node.Update(operand, node.Conversion, node.IsBaseConversion, node.Checked, node.ExplicitCastInCode, node.ConstantValueOpt, node.ConversionGroupOpt, type);
D
DotNet Bot 已提交
11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359
        }
        public override BoundNode VisitArgList(BoundArgList node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitArgListOperator(BoundArgListOperator node)
        {
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(arguments, node.ArgumentRefKindsOpt, type);
        }
        public override BoundNode VisitFixedLocalCollectionInitializer(BoundFixedLocalCollectionInitializer node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            TypeSymbol elementPointerType = this.VisitType(node.ElementPointerType);
            TypeSymbol type = this.VisitType(node.Type);
V
vsadov 已提交
11360
            return node.Update(elementPointerType, node.ElementPointerTypeConversion, expression, node.GetPinnableOpt, type);
D
DotNet Bot 已提交
11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398
        }
        public override BoundNode VisitSequencePoint(BoundSequencePoint node)
        {
            BoundStatement statementOpt = (BoundStatement)this.Visit(node.StatementOpt);
            return node.Update(statementOpt);
        }
        public override BoundNode VisitSequencePointWithSpan(BoundSequencePointWithSpan node)
        {
            BoundStatement statementOpt = (BoundStatement)this.Visit(node.StatementOpt);
            return node.Update(statementOpt, node.Span);
        }
        public override BoundNode VisitBlock(BoundBlock node)
        {
            ImmutableArray<BoundStatement> statements = (ImmutableArray<BoundStatement>)this.VisitList(node.Statements);
            return node.Update(node.Locals, node.LocalFunctions, statements);
        }
        public override BoundNode VisitScope(BoundScope node)
        {
            ImmutableArray<BoundStatement> statements = (ImmutableArray<BoundStatement>)this.VisitList(node.Statements);
            return node.Update(node.Locals, statements);
        }
        public override BoundNode VisitStateMachineScope(BoundStateMachineScope node)
        {
            BoundStatement statement = (BoundStatement)this.Visit(node.Statement);
            return node.Update(node.Fields, statement);
        }
        public override BoundNode VisitLocalDeclaration(BoundLocalDeclaration node)
        {
            BoundTypeExpression declaredType = (BoundTypeExpression)this.Visit(node.DeclaredType);
            BoundExpression initializerOpt = (BoundExpression)this.Visit(node.InitializerOpt);
            ImmutableArray<BoundExpression> argumentsOpt = (ImmutableArray<BoundExpression>)this.VisitList(node.ArgumentsOpt);
            return node.Update(node.LocalSymbol, declaredType, initializerOpt, argumentsOpt);
        }
        public override BoundNode VisitMultipleLocalDeclarations(BoundMultipleLocalDeclarations node)
        {
            ImmutableArray<BoundLocalDeclaration> localDeclarations = (ImmutableArray<BoundLocalDeclaration>)this.VisitList(node.LocalDeclarations);
            return node.Update(localDeclarations);
        }
11399 11400 11401
        public override BoundNode VisitUsingLocalDeclarations(BoundUsingLocalDeclarations node)
        {
            ImmutableArray<BoundLocalDeclaration> localDeclarations = (ImmutableArray<BoundLocalDeclaration>)this.VisitList(node.LocalDeclarations);
11402
            return node.Update(node.DisposeMethodOpt, node.IDisposableConversion, node.AwaitOpt, localDeclarations);
11403
        }
D
DotNet Bot 已提交
11404 11405
        public override BoundNode VisitLocalFunctionStatement(BoundLocalFunctionStatement node)
        {
11406 11407 11408
            BoundBlock blockBody = (BoundBlock)this.Visit(node.BlockBody);
            BoundBlock expressionBody = (BoundBlock)this.Visit(node.ExpressionBody);
            return node.Update(node.Symbol, blockBody, expressionBody);
D
DotNet Bot 已提交
11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445
        }
        public override BoundNode VisitNoOpStatement(BoundNoOpStatement node)
        {
            return node;
        }
        public override BoundNode VisitReturnStatement(BoundReturnStatement node)
        {
            BoundExpression expressionOpt = (BoundExpression)this.Visit(node.ExpressionOpt);
            return node.Update(node.RefKind, expressionOpt);
        }
        public override BoundNode VisitYieldReturnStatement(BoundYieldReturnStatement node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            return node.Update(expression);
        }
        public override BoundNode VisitYieldBreakStatement(BoundYieldBreakStatement node)
        {
            return node;
        }
        public override BoundNode VisitThrowStatement(BoundThrowStatement node)
        {
            BoundExpression expressionOpt = (BoundExpression)this.Visit(node.ExpressionOpt);
            return node.Update(expressionOpt);
        }
        public override BoundNode VisitExpressionStatement(BoundExpressionStatement node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            return node.Update(expression);
        }
        public override BoundNode VisitBreakStatement(BoundBreakStatement node)
        {
            return node;
        }
        public override BoundNode VisitContinueStatement(BoundContinueStatement node)
        {
            return node;
        }
11446
        public override BoundNode VisitSwitchStatement(BoundSwitchStatement node)
D
DotNet Bot 已提交
11447 11448
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
11449
            ImmutableArray<BoundSwitchSection> switchSections = (ImmutableArray<BoundSwitchSection>)this.VisitList(node.SwitchSections);
11450
            BoundDecisionDag decisionDag = node.DecisionDag;
11451
            BoundSwitchLabel defaultLabel = (BoundSwitchLabel)this.Visit(node.DefaultLabel);
11452
            return node.Update(expression, node.InnerLocals, node.InnerLocalFunctions, switchSections, decisionDag, defaultLabel, node.BreakLabel);
D
DotNet Bot 已提交
11453
        }
11454
        public override BoundNode VisitSwitchDispatch(BoundSwitchDispatch node)
D
DotNet Bot 已提交
11455
        {
11456 11457
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            return node.Update(expression, node.Cases, node.DefaultLabel, node.EqualityMethod);
D
DotNet Bot 已提交
11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488
        }
        public override BoundNode VisitIfStatement(BoundIfStatement node)
        {
            BoundExpression condition = (BoundExpression)this.Visit(node.Condition);
            BoundStatement consequence = (BoundStatement)this.Visit(node.Consequence);
            BoundStatement alternativeOpt = (BoundStatement)this.Visit(node.AlternativeOpt);
            return node.Update(condition, consequence, alternativeOpt);
        }
        public override BoundNode VisitDoStatement(BoundDoStatement node)
        {
            BoundExpression condition = (BoundExpression)this.Visit(node.Condition);
            BoundStatement body = (BoundStatement)this.Visit(node.Body);
            return node.Update(node.Locals, condition, body, node.BreakLabel, node.ContinueLabel);
        }
        public override BoundNode VisitWhileStatement(BoundWhileStatement node)
        {
            BoundExpression condition = (BoundExpression)this.Visit(node.Condition);
            BoundStatement body = (BoundStatement)this.Visit(node.Body);
            return node.Update(node.Locals, condition, body, node.BreakLabel, node.ContinueLabel);
        }
        public override BoundNode VisitForStatement(BoundForStatement node)
        {
            BoundStatement initializer = (BoundStatement)this.Visit(node.Initializer);
            BoundExpression condition = (BoundExpression)this.Visit(node.Condition);
            BoundStatement increment = (BoundStatement)this.Visit(node.Increment);
            BoundStatement body = (BoundStatement)this.Visit(node.Body);
            return node.Update(node.OuterLocals, initializer, node.InnerLocals, condition, increment, body, node.BreakLabel, node.ContinueLabel);
        }
        public override BoundNode VisitForEachStatement(BoundForEachStatement node)
        {
            BoundTypeExpression iterationVariableType = (BoundTypeExpression)this.Visit(node.IterationVariableType);
11489
            BoundExpression iterationErrorExpressionOpt = (BoundExpression)this.Visit(node.IterationErrorExpressionOpt);
D
DotNet Bot 已提交
11490 11491 11492
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            BoundForEachDeconstructStep deconstructionOpt = (BoundForEachDeconstructStep)this.Visit(node.DeconstructionOpt);
            BoundStatement body = (BoundStatement)this.Visit(node.Body);
11493
            return node.Update(node.EnumeratorInfoOpt, node.ElementConversion, iterationVariableType, node.IterationVariables, iterationErrorExpressionOpt, expression, deconstructionOpt, node.AwaitOpt, body, node.Checked, node.BreakLabel, node.ContinueLabel);
D
DotNet Bot 已提交
11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505
        }
        public override BoundNode VisitForEachDeconstructStep(BoundForEachDeconstructStep node)
        {
            BoundDeconstructionAssignmentOperator deconstructionAssignment = (BoundDeconstructionAssignmentOperator)this.Visit(node.DeconstructionAssignment);
            BoundDeconstructValuePlaceholder targetPlaceholder = (BoundDeconstructValuePlaceholder)this.Visit(node.TargetPlaceholder);
            return node.Update(deconstructionAssignment, targetPlaceholder);
        }
        public override BoundNode VisitUsingStatement(BoundUsingStatement node)
        {
            BoundMultipleLocalDeclarations declarationsOpt = (BoundMultipleLocalDeclarations)this.Visit(node.DeclarationsOpt);
            BoundExpression expressionOpt = (BoundExpression)this.Visit(node.ExpressionOpt);
            BoundStatement body = (BoundStatement)this.Visit(node.Body);
11506
            return node.Update(node.Locals, declarationsOpt, expressionOpt, node.IDisposableConversion, body, node.AwaitOpt, node.DisposeMethodOpt);
D
DotNet Bot 已提交
11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524
        }
        public override BoundNode VisitFixedStatement(BoundFixedStatement node)
        {
            BoundMultipleLocalDeclarations declarations = (BoundMultipleLocalDeclarations)this.Visit(node.Declarations);
            BoundStatement body = (BoundStatement)this.Visit(node.Body);
            return node.Update(node.Locals, declarations, body);
        }
        public override BoundNode VisitLockStatement(BoundLockStatement node)
        {
            BoundExpression argument = (BoundExpression)this.Visit(node.Argument);
            BoundStatement body = (BoundStatement)this.Visit(node.Body);
            return node.Update(argument, body);
        }
        public override BoundNode VisitTryStatement(BoundTryStatement node)
        {
            BoundBlock tryBlock = (BoundBlock)this.Visit(node.TryBlock);
            ImmutableArray<BoundCatchBlock> catchBlocks = (ImmutableArray<BoundCatchBlock>)this.VisitList(node.CatchBlocks);
            BoundBlock finallyBlockOpt = (BoundBlock)this.Visit(node.FinallyBlockOpt);
11525
            return node.Update(tryBlock, catchBlocks, finallyBlockOpt, node.FinallyLabelOpt, node.PreferFaultHandler);
D
DotNet Bot 已提交
11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562
        }
        public override BoundNode VisitCatchBlock(BoundCatchBlock node)
        {
            BoundExpression exceptionSourceOpt = (BoundExpression)this.Visit(node.ExceptionSourceOpt);
            BoundExpression exceptionFilterOpt = (BoundExpression)this.Visit(node.ExceptionFilterOpt);
            BoundBlock body = (BoundBlock)this.Visit(node.Body);
            TypeSymbol exceptionTypeOpt = this.VisitType(node.ExceptionTypeOpt);
            return node.Update(node.Locals, exceptionSourceOpt, exceptionTypeOpt, exceptionFilterOpt, body, node.IsSynthesizedAsyncCatchAll);
        }
        public override BoundNode VisitLiteral(BoundLiteral node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.ConstantValueOpt, type);
        }
        public override BoundNode VisitThisReference(BoundThisReference node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitPreviousSubmissionReference(BoundPreviousSubmissionReference node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitHostObjectMemberReference(BoundHostObjectMemberReference node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitBaseReference(BoundBaseReference node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitLocal(BoundLocal node)
        {
            TypeSymbol type = this.VisitType(node.Type);
11563
            return node.Update(node.LocalSymbol, node.DeclarationKind, node.ConstantValueOpt, node.IsNullableUnknown, type);
D
DotNet Bot 已提交
11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610
        }
        public override BoundNode VisitPseudoVariable(BoundPseudoVariable node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.LocalSymbol, node.EmitExpressions, type);
        }
        public override BoundNode VisitRangeVariable(BoundRangeVariable node)
        {
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.RangeVariableSymbol, value, type);
        }
        public override BoundNode VisitParameter(BoundParameter node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.ParameterSymbol, type);
        }
        public override BoundNode VisitLabelStatement(BoundLabelStatement node)
        {
            return node;
        }
        public override BoundNode VisitGotoStatement(BoundGotoStatement node)
        {
            BoundExpression caseExpressionOpt = (BoundExpression)this.Visit(node.CaseExpressionOpt);
            BoundLabel labelExpressionOpt = (BoundLabel)this.Visit(node.LabelExpressionOpt);
            return node.Update(node.Label, caseExpressionOpt, labelExpressionOpt);
        }
        public override BoundNode VisitLabeledStatement(BoundLabeledStatement node)
        {
            BoundStatement body = (BoundStatement)this.Visit(node.Body);
            return node.Update(node.Label, body);
        }
        public override BoundNode VisitLabel(BoundLabel node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Label, type);
        }
        public override BoundNode VisitStatementList(BoundStatementList node)
        {
            ImmutableArray<BoundStatement> statements = (ImmutableArray<BoundStatement>)this.VisitList(node.Statements);
            return node.Update(statements);
        }
        public override BoundNode VisitConditionalGoto(BoundConditionalGoto node)
        {
            BoundExpression condition = (BoundExpression)this.Visit(node.Condition);
            return node.Update(condition, node.JumpIfTrue, node.Label);
        }
11611 11612 11613 11614
        public override BoundNode VisitSwitchExpression(BoundSwitchExpression node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            ImmutableArray<BoundSwitchExpressionArm> switchArms = (ImmutableArray<BoundSwitchExpressionArm>)this.VisitList(node.SwitchArms);
11615
            BoundDecisionDag decisionDag = node.DecisionDag;
11616
            TypeSymbol type = this.VisitType(node.Type);
11617
            return node.Update(expression, switchArms, decisionDag, node.DefaultLabel, node.ReportedNotExhaustive, type);
11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688
        }
        public override BoundNode VisitSwitchExpressionArm(BoundSwitchExpressionArm node)
        {
            BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern);
            BoundExpression whenClause = (BoundExpression)this.Visit(node.WhenClause);
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
            return node.Update(node.Locals, pattern, whenClause, value, node.Label);
        }
        public override BoundNode VisitDecisionDag(BoundDecisionDag node)
        {
            return node;
        }
        public override BoundNode VisitEvaluationDecisionDagNode(BoundEvaluationDecisionDagNode node)
        {
            BoundDagEvaluation evaluation = (BoundDagEvaluation)this.Visit(node.Evaluation);
            BoundDecisionDagNode  next = (BoundDecisionDagNode )this.Visit(node.Next);
            return node.Update(evaluation, next);
        }
        public override BoundNode VisitTestDecisionDagNode(BoundTestDecisionDagNode node)
        {
            BoundDagTest test = (BoundDagTest)this.Visit(node.Test);
            BoundDecisionDagNode  whenTrue = (BoundDecisionDagNode )this.Visit(node.WhenTrue);
            BoundDecisionDagNode  whenFalse = (BoundDecisionDagNode )this.Visit(node.WhenFalse);
            return node.Update(test, whenTrue, whenFalse);
        }
        public override BoundNode VisitWhenDecisionDagNode(BoundWhenDecisionDagNode node)
        {
            BoundExpression whenExpression = (BoundExpression)this.Visit(node.WhenExpression);
            BoundDecisionDagNode  whenTrue = (BoundDecisionDagNode )this.Visit(node.WhenTrue);
            BoundDecisionDagNode  whenFalse = (BoundDecisionDagNode )this.Visit(node.WhenFalse);
            return node.Update(node.Bindings, whenExpression, whenTrue, whenFalse);
        }
        public override BoundNode VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node)
        {
            return node;
        }
        public override BoundNode VisitDagTemp(BoundDagTemp node)
        {
            BoundDagEvaluation source = (BoundDagEvaluation)this.Visit(node.Source);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type, source, node.Index);
        }
        public override BoundNode VisitDagTypeTest(BoundDagTypeTest node)
        {
            BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type, input);
        }
        public override BoundNode VisitDagNonNullTest(BoundDagNonNullTest node)
        {
            BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input);
            return node.Update(input);
        }
        public override BoundNode VisitDagNullTest(BoundDagNullTest node)
        {
            BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input);
            return node.Update(input);
        }
        public override BoundNode VisitDagValueTest(BoundDagValueTest node)
        {
            BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input);
            return node.Update(node.Value, input);
        }
        public override BoundNode VisitDagDeconstructEvaluation(BoundDagDeconstructEvaluation node)
        {
            BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input);
            return node.Update(node.DeconstructMethod, input);
        }
        public override BoundNode VisitDagTypeEvaluation(BoundDagTypeEvaluation node)
        {
            BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input);
D
DotNet Bot 已提交
11689
            TypeSymbol type = this.VisitType(node.Type);
11690
            return node.Update(type, input);
D
DotNet Bot 已提交
11691
        }
11692
        public override BoundNode VisitDagFieldEvaluation(BoundDagFieldEvaluation node)
D
DotNet Bot 已提交
11693
        {
11694 11695
            BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input);
            return node.Update(node.Field, input);
D
DotNet Bot 已提交
11696
        }
11697
        public override BoundNode VisitDagPropertyEvaluation(BoundDagPropertyEvaluation node)
D
DotNet Bot 已提交
11698
        {
11699 11700
            BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input);
            return node.Update(node.Property, input);
D
DotNet Bot 已提交
11701
        }
11702 11703 11704 11705 11706
        public override BoundNode VisitDagIndexEvaluation(BoundDagIndexEvaluation node)
        {
            BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input);
            return node.Update(node.Property, node.Index, input);
        }
11707
        public override BoundNode VisitSwitchSection(BoundSwitchSection node)
D
DotNet Bot 已提交
11708
        {
11709
            ImmutableArray<BoundSwitchLabel> switchLabels = (ImmutableArray<BoundSwitchLabel>)this.VisitList(node.SwitchLabels);
11710 11711
            ImmutableArray<BoundStatement> statements = (ImmutableArray<BoundStatement>)this.VisitList(node.Statements);
            return node.Update(node.Locals, switchLabels, statements);
D
DotNet Bot 已提交
11712
        }
11713
        public override BoundNode VisitSwitchLabel(BoundSwitchLabel node)
D
DotNet Bot 已提交
11714
        {
11715 11716 11717
            BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern);
            BoundExpression whenClause = (BoundExpression)this.Visit(node.WhenClause);
            return node.Update(node.Label, pattern, whenClause);
D
DotNet Bot 已提交
11718
        }
11719
        public override BoundNode VisitSequencePointExpression(BoundSequencePointExpression node)
D
DotNet Bot 已提交
11720
        {
11721
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
D
DotNet Bot 已提交
11722
            TypeSymbol type = this.VisitType(node.Type);
11723
            return node.Update(expression, type);
D
DotNet Bot 已提交
11724
        }
11725
        public override BoundNode VisitSequence(BoundSequence node)
D
DotNet Bot 已提交
11726
        {
11727 11728 11729 11730
            ImmutableArray<BoundExpression> sideEffects = (ImmutableArray<BoundExpression>)this.VisitList(node.SideEffects);
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Locals, sideEffects, value, type);
D
DotNet Bot 已提交
11731
        }
11732
        public override BoundNode VisitSpillSequence(BoundSpillSequence node)
D
DotNet Bot 已提交
11733
        {
11734 11735 11736 11737
            ImmutableArray<BoundStatement> sideEffects = (ImmutableArray<BoundStatement>)this.VisitList(node.SideEffects);
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Locals, sideEffects, value, type);
D
DotNet Bot 已提交
11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749
        }
        public override BoundNode VisitDynamicMemberAccess(BoundDynamicMemberAccess node)
        {
            BoundExpression receiver = (BoundExpression)this.Visit(node.Receiver);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(receiver, node.TypeArgumentsOpt, node.Name, node.Invoked, node.Indexed, type);
        }
        public override BoundNode VisitDynamicInvocation(BoundDynamicInvocation node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
            TypeSymbol type = this.VisitType(node.Type);
11750
            return node.Update(node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.ApplicableMethods, expression, arguments, type);
D
DotNet Bot 已提交
11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795
        }
        public override BoundNode VisitConditionalAccess(BoundConditionalAccess node)
        {
            BoundExpression receiver = (BoundExpression)this.Visit(node.Receiver);
            BoundExpression accessExpression = (BoundExpression)this.Visit(node.AccessExpression);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(receiver, accessExpression, type);
        }
        public override BoundNode VisitLoweredConditionalAccess(BoundLoweredConditionalAccess node)
        {
            BoundExpression receiver = (BoundExpression)this.Visit(node.Receiver);
            BoundExpression whenNotNull = (BoundExpression)this.Visit(node.WhenNotNull);
            BoundExpression whenNullOpt = (BoundExpression)this.Visit(node.WhenNullOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(receiver, node.HasValueMethodOpt, whenNotNull, whenNullOpt, node.Id, type);
        }
        public override BoundNode VisitConditionalReceiver(BoundConditionalReceiver node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Id, type);
        }
        public override BoundNode VisitComplexConditionalReceiver(BoundComplexConditionalReceiver node)
        {
            BoundExpression valueTypeReceiver = (BoundExpression)this.Visit(node.ValueTypeReceiver);
            BoundExpression referenceTypeReceiver = (BoundExpression)this.Visit(node.ReferenceTypeReceiver);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(valueTypeReceiver, referenceTypeReceiver, type);
        }
        public override BoundNode VisitMethodGroup(BoundMethodGroup node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.TypeArgumentsOpt, node.Name, node.Methods, node.LookupSymbolOpt, node.LookupError, node.Flags, receiverOpt, node.ResultKind);
        }
        public override BoundNode VisitPropertyGroup(BoundPropertyGroup node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Properties, receiverOpt, node.ResultKind);
        }
        public override BoundNode VisitCall(BoundCall node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
            TypeSymbol type = this.VisitType(node.Type);
11796
            return node.Update(receiverOpt, node.Method, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.IsDelegateCall, node.Expanded, node.InvokedAsExtensionMethod, node.ArgsToParamsOpt, node.ResultKind, node.BinderOpt, type);
D
DotNet Bot 已提交
11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809
        }
        public override BoundNode VisitEventAssignmentOperator(BoundEventAssignmentOperator node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            BoundExpression argument = (BoundExpression)this.Visit(node.Argument);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Event, node.IsAddition, node.IsDynamic, receiverOpt, argument, type);
        }
        public override BoundNode VisitAttribute(BoundAttribute node)
        {
            ImmutableArray<BoundExpression> constructorArguments = (ImmutableArray<BoundExpression>)this.VisitList(node.ConstructorArguments);
            ImmutableArray<BoundExpression> namedArguments = (ImmutableArray<BoundExpression>)this.VisitList(node.NamedArguments);
            TypeSymbol type = this.VisitType(node.Type);
11810
            return node.Update(node.Constructor, constructorArguments, node.ConstructorArgumentNamesOpt, node.ConstructorArgumentsToParamsOpt, node.ConstructorExpanded, namedArguments, node.ResultKind, type);
D
DotNet Bot 已提交
11811 11812 11813 11814
        }
        public override BoundNode VisitObjectCreationExpression(BoundObjectCreationExpression node)
        {
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
11815
            BoundObjectInitializerExpressionBase initializerExpressionOpt = (BoundObjectInitializerExpressionBase)this.Visit(node.InitializerExpressionOpt);
D
DotNet Bot 已提交
11816
            TypeSymbol type = this.VisitType(node.Type);
11817
            return node.Update(node.Constructor, node.ConstructorsGroup, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.ArgsToParamsOpt, node.ConstantValueOpt, initializerExpressionOpt, node.BinderOpt, type);
D
DotNet Bot 已提交
11818 11819 11820 11821 11822
        }
        public override BoundNode VisitTupleLiteral(BoundTupleLiteral node)
        {
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
            TypeSymbol type = this.VisitType(node.Type);
11823
            return node.Update(node.ArgumentNamesOpt, node.InferredNamesOpt, arguments, type);
D
DotNet Bot 已提交
11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834
        }
        public override BoundNode VisitConvertedTupleLiteral(BoundConvertedTupleLiteral node)
        {
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
            TypeSymbol naturalTypeOpt = this.VisitType(node.NaturalTypeOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(naturalTypeOpt, arguments, type);
        }
        public override BoundNode VisitDynamicObjectCreationExpression(BoundDynamicObjectCreationExpression node)
        {
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
11835
            BoundObjectInitializerExpressionBase initializerExpressionOpt = (BoundObjectInitializerExpressionBase)this.Visit(node.InitializerExpressionOpt);
D
DotNet Bot 已提交
11836
            TypeSymbol type = this.VisitType(node.Type);
11837
            return node.Update(node.Name, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, initializerExpressionOpt, node.ApplicableMethods, type);
D
DotNet Bot 已提交
11838 11839 11840
        }
        public override BoundNode VisitNoPiaObjectCreationExpression(BoundNoPiaObjectCreationExpression node)
        {
11841
            BoundObjectInitializerExpressionBase initializerExpressionOpt = (BoundObjectInitializerExpressionBase)this.Visit(node.InitializerExpressionOpt);
D
DotNet Bot 已提交
11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.GuidString, initializerExpressionOpt, type);
        }
        public override BoundNode VisitObjectInitializerExpression(BoundObjectInitializerExpression node)
        {
            ImmutableArray<BoundExpression> initializers = (ImmutableArray<BoundExpression>)this.VisitList(node.Initializers);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(initializers, type);
        }
        public override BoundNode VisitObjectInitializerMember(BoundObjectInitializerMember node)
        {
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
11854
            TypeSymbol receiverType = this.VisitType(node.ReceiverType);
D
DotNet Bot 已提交
11855
            TypeSymbol type = this.VisitType(node.Type);
11856
            return node.Update(node.MemberSymbol, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.ArgsToParamsOpt, node.ResultKind, receiverType, node.BinderOpt, type);
D
DotNet Bot 已提交
11857 11858 11859
        }
        public override BoundNode VisitDynamicObjectInitializerMember(BoundDynamicObjectInitializerMember node)
        {
11860
            TypeSymbol receiverType = this.VisitType(node.ReceiverType);
D
DotNet Bot 已提交
11861
            TypeSymbol type = this.VisitType(node.Type);
11862
            return node.Update(node.MemberName, receiverType, type);
D
DotNet Bot 已提交
11863 11864 11865 11866 11867 11868 11869 11870 11871 11872
        }
        public override BoundNode VisitCollectionInitializerExpression(BoundCollectionInitializerExpression node)
        {
            ImmutableArray<BoundExpression> initializers = (ImmutableArray<BoundExpression>)this.VisitList(node.Initializers);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(initializers, type);
        }
        public override BoundNode VisitCollectionElementInitializer(BoundCollectionElementInitializer node)
        {
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
11873
            BoundExpression implicitReceiverOpt = (BoundExpression)this.Visit(node.ImplicitReceiverOpt);
D
DotNet Bot 已提交
11874
            TypeSymbol type = this.VisitType(node.Type);
11875
            return node.Update(node.AddMethod, arguments, implicitReceiverOpt, node.Expanded, node.ArgsToParamsOpt, node.InvokedAsExtensionMethod, node.ResultKind, node.BinderOpt, type);
D
DotNet Bot 已提交
11876 11877 11878
        }
        public override BoundNode VisitDynamicCollectionElementInitializer(BoundDynamicCollectionElementInitializer node)
        {
11879
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
D
DotNet Bot 已提交
11880 11881
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
            TypeSymbol type = this.VisitType(node.Type);
11882
            return node.Update(node.ApplicableMethods, expression, arguments, type);
D
DotNet Bot 已提交
11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902
        }
        public override BoundNode VisitImplicitReceiver(BoundImplicitReceiver node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitAnonymousObjectCreationExpression(BoundAnonymousObjectCreationExpression node)
        {
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
            ImmutableArray<BoundAnonymousPropertyDeclaration> declarations = (ImmutableArray<BoundAnonymousPropertyDeclaration>)this.VisitList(node.Declarations);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Constructor, arguments, declarations, type);
        }
        public override BoundNode VisitAnonymousPropertyDeclaration(BoundAnonymousPropertyDeclaration node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Property, type);
        }
        public override BoundNode VisitNewT(BoundNewT node)
        {
11903
            BoundObjectInitializerExpressionBase initializerExpressionOpt = (BoundObjectInitializerExpressionBase)this.Visit(node.InitializerExpressionOpt);
D
DotNet Bot 已提交
11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(initializerExpressionOpt, type);
        }
        public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
        {
            BoundExpression argument = (BoundExpression)this.Visit(node.Argument);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(argument, node.MethodOpt, node.IsExtensionMethod, type);
        }
        public override BoundNode VisitArrayCreation(BoundArrayCreation node)
        {
            ImmutableArray<BoundExpression> bounds = (ImmutableArray<BoundExpression>)this.VisitList(node.Bounds);
            BoundArrayInitialization initializerOpt = (BoundArrayInitialization)this.Visit(node.InitializerOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(bounds, initializerOpt, type);
        }
        public override BoundNode VisitArrayInitialization(BoundArrayInitialization node)
        {
            ImmutableArray<BoundExpression> initializers = (ImmutableArray<BoundExpression>)this.VisitList(node.Initializers);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(initializers);
        }
        public override BoundNode VisitStackAllocArrayCreation(BoundStackAllocArrayCreation node)
        {
            BoundExpression count = (BoundExpression)this.Visit(node.Count);
11929
            BoundArrayInitialization initializerOpt = (BoundArrayInitialization)this.Visit(node.InitializerOpt);
11930
            TypeSymbol elementType = this.VisitType(node.ElementType);
D
DotNet Bot 已提交
11931
            TypeSymbol type = this.VisitType(node.Type);
11932
            return node.Update(elementType, count, initializerOpt, type);
11933 11934 11935 11936
        }
        public override BoundNode VisitConvertedStackAllocExpression(BoundConvertedStackAllocExpression node)
        {
            BoundExpression count = (BoundExpression)this.Visit(node.Count);
11937
            BoundArrayInitialization initializerOpt = (BoundArrayInitialization)this.Visit(node.InitializerOpt);
11938 11939
            TypeSymbol elementType = this.VisitType(node.ElementType);
            TypeSymbol type = this.VisitType(node.Type);
11940
            return node.Update(elementType, count, initializerOpt, type);
D
DotNet Bot 已提交
11941 11942 11943 11944 11945
        }
        public override BoundNode VisitFieldAccess(BoundFieldAccess node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            TypeSymbol type = this.VisitType(node.Type);
11946
            return node.Update(receiverOpt, node.FieldSymbol, node.ConstantValueOpt, node.ResultKind, node.IsByValue, node.IsDeclaration, type);
D
DotNet Bot 已提交
11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969
        }
        public override BoundNode VisitHoistedFieldAccess(BoundHoistedFieldAccess node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.FieldSymbol, type);
        }
        public override BoundNode VisitPropertyAccess(BoundPropertyAccess node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(receiverOpt, node.PropertySymbol, node.ResultKind, type);
        }
        public override BoundNode VisitEventAccess(BoundEventAccess node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(receiverOpt, node.EventSymbol, node.IsUsableAsField, node.ResultKind, type);
        }
        public override BoundNode VisitIndexerAccess(BoundIndexerAccess node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
            TypeSymbol type = this.VisitType(node.Type);
G
Gen Lu 已提交
11970
            return node.Update(receiverOpt, node.Indexer, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.ArgsToParamsOpt, node.BinderOpt, node.UseSetterForDefaultArgumentGeneration, type);
D
DotNet Bot 已提交
11971 11972 11973 11974 11975 11976 11977 11978 11979 11980
        }
        public override BoundNode VisitDynamicIndexerAccess(BoundDynamicIndexerAccess node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            ImmutableArray<BoundExpression> arguments = (ImmutableArray<BoundExpression>)this.VisitList(node.Arguments);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(receiverOpt, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.ApplicableIndexers, type);
        }
        public override BoundNode VisitLambda(BoundLambda node)
        {
11981
            UnboundLambda unboundLambda = node.UnboundLambda;
D
DotNet Bot 已提交
11982 11983
            BoundBlock body = (BoundBlock)this.Visit(node.Body);
            TypeSymbol type = this.VisitType(node.Type);
11984
            return node.Update(unboundLambda, node.Symbol, body, node.Diagnostics, node.Binder, type);
D
DotNet Bot 已提交
11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017
        }
        public override BoundNode VisitUnboundLambda(UnboundLambda node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.Data);
        }
        public override BoundNode VisitQueryClause(BoundQueryClause node)
        {
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(value, node.DefinedSymbol, node.Binder, type);
        }
        public override BoundNode VisitTypeOrInstanceInitializers(BoundTypeOrInstanceInitializers node)
        {
            ImmutableArray<BoundStatement> statements = (ImmutableArray<BoundStatement>)this.VisitList(node.Statements);
            return node.Update(statements);
        }
        public override BoundNode VisitNameOfOperator(BoundNameOfOperator node)
        {
            BoundExpression argument = (BoundExpression)this.Visit(node.Argument);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(argument, node.ConstantValueOpt, type);
        }
        public override BoundNode VisitInterpolatedString(BoundInterpolatedString node)
        {
            ImmutableArray<BoundExpression> parts = (ImmutableArray<BoundExpression>)this.VisitList(node.Parts);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(parts, type);
        }
        public override BoundNode VisitStringInsert(BoundStringInsert node)
        {
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
            BoundExpression alignment = (BoundExpression)this.Visit(node.Alignment);
M
Manish Vasani 已提交
12018
            BoundLiteral format = (BoundLiteral)this.Visit(node.Format);
D
DotNet Bot 已提交
12019 12020 12021 12022 12023 12024 12025
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(value, alignment, format, type);
        }
        public override BoundNode VisitIsPatternExpression(BoundIsPatternExpression node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern);
12026
            BoundDecisionDag decisionDag = node.DecisionDag;
D
DotNet Bot 已提交
12027
            TypeSymbol type = this.VisitType(node.Type);
12028
            return node.Update(expression, pattern, decisionDag, node.WhenTrueLabel, node.WhenFalseLabel, type);
D
DotNet Bot 已提交
12029 12030 12031 12032
        }
        public override BoundNode VisitConstantPattern(BoundConstantPattern node)
        {
            BoundExpression value = (BoundExpression)this.Visit(node.Value);
12033 12034
            TypeSymbol inputType = this.VisitType(node.InputType);
            return node.Update(value, node.ConstantValue, inputType);
D
DotNet Bot 已提交
12035
        }
12036
        public override BoundNode VisitDiscardPattern(BoundDiscardPattern node)
D
DotNet Bot 已提交
12037
        {
12038 12039
            TypeSymbol inputType = this.VisitType(node.InputType);
            return node.Update(inputType);
D
DotNet Bot 已提交
12040 12041 12042 12043 12044
        }
        public override BoundNode VisitDeclarationPattern(BoundDeclarationPattern node)
        {
            BoundExpression variableAccess = (BoundExpression)this.Visit(node.VariableAccess);
            BoundTypeExpression declaredType = (BoundTypeExpression)this.Visit(node.DeclaredType);
12045 12046
            TypeSymbol inputType = this.VisitType(node.InputType);
            return node.Update(node.Variable, variableAccess, declaredType, node.IsVar, inputType);
D
DotNet Bot 已提交
12047
        }
12048
        public override BoundNode VisitRecursivePattern(BoundRecursivePattern node)
D
DotNet Bot 已提交
12049
        {
12050
            BoundTypeExpression declaredType = (BoundTypeExpression)this.Visit(node.DeclaredType);
12051
            ImmutableArray<BoundSubpattern> deconstruction = (ImmutableArray<BoundSubpattern>)this.VisitList(node.Deconstruction);
12052
            ImmutableArray<BoundSubpattern> properties = (ImmutableArray<BoundSubpattern>)this.VisitList(node.Properties);
12053 12054
            BoundExpression variableAccess = (BoundExpression)this.Visit(node.VariableAccess);
            TypeSymbol inputType = this.VisitType(node.InputType);
12055
            return node.Update(declaredType, node.DeconstructMethod, deconstruction, properties, node.Variable, variableAccess, inputType);
D
DotNet Bot 已提交
12056
        }
12057
        public override BoundNode VisitITuplePattern(BoundITuplePattern node)
D
DotNet Bot 已提交
12058
        {
12059 12060 12061 12062
            ImmutableArray<BoundSubpattern> subpatterns = (ImmutableArray<BoundSubpattern>)this.VisitList(node.Subpatterns);
            TypeSymbol inputType = this.VisitType(node.InputType);
            return node.Update(node.GetLengthMethod, node.GetItemMethod, subpatterns, inputType);
        }
12063 12064 12065 12066
        public override BoundNode VisitSubpattern(BoundSubpattern node)
        {
            BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern);
            return node.Update(node.Symbol, pattern);
D
DotNet Bot 已提交
12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095
        }
        public override BoundNode VisitDiscardExpression(BoundDiscardExpression node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(type);
        }
        public override BoundNode VisitThrowExpression(BoundThrowExpression node)
        {
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(expression, type);
        }
        public override BoundNode VisitOutVariablePendingInference(OutVariablePendingInference node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.VariableSymbol, receiverOpt);
        }
        public override BoundNode VisitDeconstructionVariablePendingInference(DeconstructionVariablePendingInference node)
        {
            BoundExpression receiverOpt = (BoundExpression)this.Visit(node.ReceiverOpt);
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update(node.VariableSymbol, receiverOpt);
        }
        public override BoundNode VisitOutDeconstructVarPendingInference(OutDeconstructVarPendingInference node)
        {
            TypeSymbol type = this.VisitType(node.Type);
            return node.Update();
        }
12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108
        public override BoundNode VisitNonConstructorMethodBody(BoundNonConstructorMethodBody node)
        {
            BoundBlock blockBody = (BoundBlock)this.Visit(node.BlockBody);
            BoundBlock expressionBody = (BoundBlock)this.Visit(node.ExpressionBody);
            return node.Update(blockBody, expressionBody);
        }
        public override BoundNode VisitConstructorMethodBody(BoundConstructorMethodBody node)
        {
            BoundExpressionStatement initializer = (BoundExpressionStatement)this.Visit(node.Initializer);
            BoundBlock blockBody = (BoundBlock)this.Visit(node.BlockBody);
            BoundBlock expressionBody = (BoundBlock)this.Visit(node.ExpressionBody);
            return node.Update(node.Locals, initializer, blockBody, expressionBody);
        }
12109
        public override BoundNode VisitExpressionWithNullability(BoundExpressionWithNullability node)
12110
        {
12111
            BoundExpression expression = (BoundExpression)this.Visit(node.Expression);
12112
            TypeSymbol type = this.VisitType(node.Type);
12113
            return node.Update(expression, node.NullableAnnotation, type);
12114
        }
D
DotNet Bot 已提交
12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130
    }

    internal sealed class BoundTreeDumperNodeProducer : BoundTreeVisitor<object, TreeDumperNode>
    {
        private BoundTreeDumperNodeProducer()
        {
        }
        public static TreeDumperNode MakeTree(BoundNode node)
        {
            return (new BoundTreeDumperNodeProducer()).Visit(node, null);
        }
        public override TreeDumperNode VisitFieldEqualsValue(BoundFieldEqualsValue node, object arg)
        {
            return new TreeDumperNode("fieldEqualsValue", null, new TreeDumperNode[]
            {
                new TreeDumperNode("field", node.Field, null),
12131
                new TreeDumperNode("locals", node.Locals, null),
D
DotNet Bot 已提交
12132 12133 12134 12135 12136 12137 12138 12139 12140
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) })
            }
            );
        }
        public override TreeDumperNode VisitPropertyEqualsValue(BoundPropertyEqualsValue node, object arg)
        {
            return new TreeDumperNode("propertyEqualsValue", null, new TreeDumperNode[]
            {
                new TreeDumperNode("property", node.Property, null),
12141
                new TreeDumperNode("locals", node.Locals, null),
D
DotNet Bot 已提交
12142 12143 12144 12145 12146 12147 12148 12149 12150
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) })
            }
            );
        }
        public override TreeDumperNode VisitParameterEqualsValue(BoundParameterEqualsValue node, object arg)
        {
            return new TreeDumperNode("parameterEqualsValue", null, new TreeDumperNode[]
            {
                new TreeDumperNode("parameter", node.Parameter, null),
12151
                new TreeDumperNode("locals", node.Locals, null),
D
DotNet Bot 已提交
12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) })
            }
            );
        }
        public override TreeDumperNode VisitGlobalStatementInitializer(BoundGlobalStatementInitializer node, object arg)
        {
            return new TreeDumperNode("globalStatementInitializer", null, new TreeDumperNode[]
            {
                new TreeDumperNode("statement", null, new TreeDumperNode[] { Visit(node.Statement, null) })
            }
            );
        }
        public override TreeDumperNode VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node, object arg)
        {
            return new TreeDumperNode("deconstructValuePlaceholder", null, new TreeDumperNode[]
            {
12168
                new TreeDumperNode("valEscape", node.ValEscape, null),
12169 12170
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12171 12172 12173
            }
            );
        }
12174 12175 12176 12177
        public override TreeDumperNode VisitTupleOperandPlaceholder(BoundTupleOperandPlaceholder node, object arg)
        {
            return new TreeDumperNode("tupleOperandPlaceholder", null, new TreeDumperNode[]
            {
12178 12179
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
12180 12181 12182
            }
            );
        }
12183 12184 12185 12186
        public override TreeDumperNode VisitAwaitableValuePlaceholder(BoundAwaitableValuePlaceholder node, object arg)
        {
            return new TreeDumperNode("awaitableValuePlaceholder", null, new TreeDumperNode[]
            {
12187 12188
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
12189 12190 12191
            }
            );
        }
12192 12193 12194 12195
        public override TreeDumperNode VisitDisposableValuePlaceholder(BoundDisposableValuePlaceholder node, object arg)
        {
            return new TreeDumperNode("disposableValuePlaceholder", null, new TreeDumperNode[]
            {
12196 12197
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
12198 12199 12200
            }
            );
        }
D
DotNet Bot 已提交
12201 12202 12203 12204 12205
        public override TreeDumperNode VisitDup(BoundDup node, object arg)
        {
            return new TreeDumperNode("dup", null, new TreeDumperNode[]
            {
                new TreeDumperNode("refKind", node.RefKind, null),
12206 12207
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12208 12209 12210
            }
            );
        }
12211 12212 12213 12214 12215
        public override TreeDumperNode VisitPassByCopy(BoundPassByCopy node, object arg)
        {
            return new TreeDumperNode("passByCopy", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
12216 12217
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
12218 12219 12220
            }
            );
        }
D
DotNet Bot 已提交
12221 12222 12223 12224 12225 12226 12227
        public override TreeDumperNode VisitBadExpression(BoundBadExpression node, object arg)
        {
            return new TreeDumperNode("badExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("resultKind", node.ResultKind, null),
                new TreeDumperNode("symbols", node.Symbols, null),
                new TreeDumperNode("childBoundNodes", null, from x in node.ChildBoundNodes select Visit(x, null)),
12228 12229
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240
            }
            );
        }
        public override TreeDumperNode VisitBadStatement(BoundBadStatement node, object arg)
        {
            return new TreeDumperNode("badStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("childBoundNodes", null, from x in node.ChildBoundNodes select Visit(x, null))
            }
            );
        }
12241 12242 12243 12244 12245 12246 12247 12248
        public override TreeDumperNode VisitExtractedFinallyBlock(BoundExtractedFinallyBlock node, object arg)
        {
            return new TreeDumperNode("extractedFinallyBlock", null, new TreeDumperNode[]
            {
                new TreeDumperNode("finallyBlock", null, new TreeDumperNode[] { Visit(node.FinallyBlock, null) })
            }
            );
        }
D
DotNet Bot 已提交
12249 12250 12251 12252 12253 12254 12255
        public override TreeDumperNode VisitTypeExpression(BoundTypeExpression node, object arg)
        {
            return new TreeDumperNode("typeExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("aliasOpt", node.AliasOpt, null),
                new TreeDumperNode("inferredType", node.InferredType, null),
                new TreeDumperNode("boundContainingTypeOpt", null, new TreeDumperNode[] { Visit(node.BoundContainingTypeOpt, null) }),
12256 12257
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12258 12259 12260 12261 12262 12263 12264 12265
            }
            );
        }
        public override TreeDumperNode VisitTypeOrValueExpression(BoundTypeOrValueExpression node, object arg)
        {
            return new TreeDumperNode("typeOrValueExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("data", node.Data, null),
12266 12267
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12268 12269 12270 12271 12272 12273 12274 12275 12276
            }
            );
        }
        public override TreeDumperNode VisitNamespaceExpression(BoundNamespaceExpression node, object arg)
        {
            return new TreeDumperNode("namespaceExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("namespaceSymbol", node.NamespaceSymbol, null),
                new TreeDumperNode("aliasOpt", node.AliasOpt, null),
12277 12278
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290
            }
            );
        }
        public override TreeDumperNode VisitUnaryOperator(BoundUnaryOperator node, object arg)
        {
            return new TreeDumperNode("unaryOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operatorKind", node.OperatorKind, null),
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
                new TreeDumperNode("methodOpt", node.MethodOpt, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
12291 12292
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
C
Charles Stoner 已提交
12293 12294 12295
            }
            );
        }
D
DotNet Bot 已提交
12296 12297 12298 12299 12300 12301 12302 12303 12304 12305
        public override TreeDumperNode VisitIncrementOperator(BoundIncrementOperator node, object arg)
        {
            return new TreeDumperNode("incrementOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operatorKind", node.OperatorKind, null),
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
                new TreeDumperNode("methodOpt", node.MethodOpt, null),
                new TreeDumperNode("operandConversion", node.OperandConversion, null),
                new TreeDumperNode("resultConversion", node.ResultConversion, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
12306 12307
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12308 12309 12310 12311 12312 12313 12314 12315
            }
            );
        }
        public override TreeDumperNode VisitAddressOfOperator(BoundAddressOfOperator node, object arg)
        {
            return new TreeDumperNode("addressOfOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
12316
                new TreeDumperNode("isManaged", node.IsManaged, null),
12317 12318
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12319 12320 12321 12322 12323 12324 12325 12326
            }
            );
        }
        public override TreeDumperNode VisitPointerIndirectionOperator(BoundPointerIndirectionOperator node, object arg)
        {
            return new TreeDumperNode("pointerIndirectionOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
12327 12328
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12329 12330 12331 12332 12333 12334 12335 12336 12337 12338
            }
            );
        }
        public override TreeDumperNode VisitPointerElementAccess(BoundPointerElementAccess node, object arg)
        {
            return new TreeDumperNode("pointerElementAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
                new TreeDumperNode("index", null, new TreeDumperNode[] { Visit(node.Index, null) }),
                new TreeDumperNode("@checked", node.Checked, null),
12339 12340
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12341 12342 12343 12344 12345 12346 12347 12348 12349
            }
            );
        }
        public override TreeDumperNode VisitRefTypeOperator(BoundRefTypeOperator node, object arg)
        {
            return new TreeDumperNode("refTypeOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
                new TreeDumperNode("getTypeFromHandle", node.GetTypeFromHandle, null),
12350 12351
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12352 12353 12354 12355 12356 12357 12358 12359
            }
            );
        }
        public override TreeDumperNode VisitMakeRefOperator(BoundMakeRefOperator node, object arg)
        {
            return new TreeDumperNode("makeRefOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
12360 12361
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12362 12363 12364 12365 12366 12367 12368 12369
            }
            );
        }
        public override TreeDumperNode VisitRefValueOperator(BoundRefValueOperator node, object arg)
        {
            return new TreeDumperNode("refValueOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
12370 12371
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12372 12373 12374
            }
            );
        }
12375 12376 12377 12378 12379 12380
        public override TreeDumperNode VisitFromEndIndexExpression(BoundFromEndIndexExpression node, object arg)
        {
            return new TreeDumperNode("fromEndIndexExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
                new TreeDumperNode("methodOpt", node.MethodOpt, null),
12381 12382
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
12383 12384 12385
            }
            );
        }
O
Omar Tawfik 已提交
12386 12387 12388 12389
        public override TreeDumperNode VisitRangeExpression(BoundRangeExpression node, object arg)
        {
            return new TreeDumperNode("rangeExpression", null, new TreeDumperNode[]
            {
12390 12391
                new TreeDumperNode("leftOperandOpt", null, new TreeDumperNode[] { Visit(node.LeftOperandOpt, null) }),
                new TreeDumperNode("rightOperandOpt", null, new TreeDumperNode[] { Visit(node.RightOperandOpt, null) }),
12392
                new TreeDumperNode("methodOpt", node.MethodOpt, null),
12393 12394
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
O
Omar Tawfik 已提交
12395 12396 12397
            }
            );
        }
D
DotNet Bot 已提交
12398 12399 12400 12401 12402 12403 12404 12405
        public override TreeDumperNode VisitBinaryOperator(BoundBinaryOperator node, object arg)
        {
            return new TreeDumperNode("binaryOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operatorKind", node.OperatorKind, null),
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
                new TreeDumperNode("methodOpt", node.MethodOpt, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
12406 12407
                new TreeDumperNode("left", null, new TreeDumperNode[] { Visit(node.Left, null) }),
                new TreeDumperNode("right", null, new TreeDumperNode[] { Visit(node.Right, null) }),
12408 12409
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12410 12411 12412
            }
            );
        }
12413 12414 12415 12416 12417 12418
        public override TreeDumperNode VisitTupleBinaryOperator(BoundTupleBinaryOperator node, object arg)
        {
            return new TreeDumperNode("tupleBinaryOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("left", null, new TreeDumperNode[] { Visit(node.Left, null) }),
                new TreeDumperNode("right", null, new TreeDumperNode[] { Visit(node.Right, null) }),
12419 12420
                new TreeDumperNode("convertedLeft", null, new TreeDumperNode[] { Visit(node.ConvertedLeft, null) }),
                new TreeDumperNode("convertedRight", null, new TreeDumperNode[] { Visit(node.ConvertedRight, null) }),
12421 12422
                new TreeDumperNode("operatorKind", node.OperatorKind, null),
                new TreeDumperNode("operators", node.Operators, null),
12423 12424
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
12425 12426
            }
            );
D
DotNet Bot 已提交
12427 12428 12429 12430 12431 12432 12433 12434 12435 12436
        }
        public override TreeDumperNode VisitUserDefinedConditionalLogicalOperator(BoundUserDefinedConditionalLogicalOperator node, object arg)
        {
            return new TreeDumperNode("userDefinedConditionalLogicalOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operatorKind", node.OperatorKind, null),
                new TreeDumperNode("logicalOperator", node.LogicalOperator, null),
                new TreeDumperNode("trueOperator", node.TrueOperator, null),
                new TreeDumperNode("falseOperator", node.FalseOperator, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
12437 12438
                new TreeDumperNode("left", null, new TreeDumperNode[] { Visit(node.Left, null) }),
                new TreeDumperNode("right", null, new TreeDumperNode[] { Visit(node.Right, null) }),
12439 12440
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453
            }
            );
        }
        public override TreeDumperNode VisitCompoundAssignmentOperator(BoundCompoundAssignmentOperator node, object arg)
        {
            return new TreeDumperNode("compoundAssignmentOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("@operator", node.Operator, null),
                new TreeDumperNode("left", null, new TreeDumperNode[] { Visit(node.Left, null) }),
                new TreeDumperNode("right", null, new TreeDumperNode[] { Visit(node.Right, null) }),
                new TreeDumperNode("leftConversion", node.LeftConversion, null),
                new TreeDumperNode("finalConversion", node.FinalConversion, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
12454 12455
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12456 12457 12458 12459 12460 12461 12462 12463 12464
            }
            );
        }
        public override TreeDumperNode VisitAssignmentOperator(BoundAssignmentOperator node, object arg)
        {
            return new TreeDumperNode("assignmentOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("left", null, new TreeDumperNode[] { Visit(node.Left, null) }),
                new TreeDumperNode("right", null, new TreeDumperNode[] { Visit(node.Right, null) }),
12465
                new TreeDumperNode("isRef", node.IsRef, null),
12466 12467
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12468 12469 12470 12471 12472 12473 12474 12475 12476
            }
            );
        }
        public override TreeDumperNode VisitDeconstructionAssignmentOperator(BoundDeconstructionAssignmentOperator node, object arg)
        {
            return new TreeDumperNode("deconstructionAssignmentOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("left", null, new TreeDumperNode[] { Visit(node.Left, null) }),
                new TreeDumperNode("right", null, new TreeDumperNode[] { Visit(node.Right, null) }),
12477
                new TreeDumperNode("isUsed", node.IsUsed, null),
12478 12479
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12480 12481 12482 12483 12484 12485 12486 12487 12488 12489
            }
            );
        }
        public override TreeDumperNode VisitNullCoalescingOperator(BoundNullCoalescingOperator node, object arg)
        {
            return new TreeDumperNode("nullCoalescingOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("leftOperand", null, new TreeDumperNode[] { Visit(node.LeftOperand, null) }),
                new TreeDumperNode("rightOperand", null, new TreeDumperNode[] { Visit(node.RightOperand, null) }),
                new TreeDumperNode("leftConversion", node.LeftConversion, null),
12490
                new TreeDumperNode("operatorResultKind", node.OperatorResultKind, null),
12491 12492
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12493 12494 12495
            }
            );
        }
F
Fredric Silberberg 已提交
12496
        public override TreeDumperNode VisitNullCoalescingAssignmentOperator(BoundNullCoalescingAssignmentOperator node, object arg)
12497
        {
F
Fredric Silberberg 已提交
12498
            return new TreeDumperNode("nullCoalescingAssignmentOperator", null, new TreeDumperNode[]
12499 12500 12501
            {
                new TreeDumperNode("leftOperand", null, new TreeDumperNode[] { Visit(node.LeftOperand, null) }),
                new TreeDumperNode("rightOperand", null, new TreeDumperNode[] { Visit(node.RightOperand, null) }),
12502 12503
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12504 12505 12506 12507 12508 12509 12510
            }
            );
        }
        public override TreeDumperNode VisitConditionalOperator(BoundConditionalOperator node, object arg)
        {
            return new TreeDumperNode("conditionalOperator", null, new TreeDumperNode[]
            {
12511
                new TreeDumperNode("isRef", node.IsRef, null),
D
DotNet Bot 已提交
12512 12513 12514 12515
                new TreeDumperNode("condition", null, new TreeDumperNode[] { Visit(node.Condition, null) }),
                new TreeDumperNode("consequence", null, new TreeDumperNode[] { Visit(node.Consequence, null) }),
                new TreeDumperNode("alternative", null, new TreeDumperNode[] { Visit(node.Alternative, null) }),
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
12516 12517
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12518 12519 12520 12521 12522 12523 12524 12525 12526
            }
            );
        }
        public override TreeDumperNode VisitArrayAccess(BoundArrayAccess node, object arg)
        {
            return new TreeDumperNode("arrayAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
                new TreeDumperNode("indices", null, from x in node.Indices select Visit(x, null)),
12527 12528
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12529 12530 12531 12532 12533 12534 12535 12536
            }
            );
        }
        public override TreeDumperNode VisitArrayLength(BoundArrayLength node, object arg)
        {
            return new TreeDumperNode("arrayLength", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
12537 12538
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12539 12540 12541 12542 12543 12544 12545 12546
            }
            );
        }
        public override TreeDumperNode VisitAwaitExpression(BoundAwaitExpression node, object arg)
        {
            return new TreeDumperNode("awaitExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
12547
                new TreeDumperNode("awaitableInfo", node.AwaitableInfo, null),
12548 12549
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12550 12551 12552 12553 12554 12555 12556 12557 12558
            }
            );
        }
        public override TreeDumperNode VisitTypeOfOperator(BoundTypeOfOperator node, object arg)
        {
            return new TreeDumperNode("typeOfOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("sourceType", null, new TreeDumperNode[] { Visit(node.SourceType, null) }),
                new TreeDumperNode("getTypeFromHandle", node.GetTypeFromHandle, null),
12559 12560
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12561 12562 12563 12564 12565 12566 12567 12568
            }
            );
        }
        public override TreeDumperNode VisitMethodDefIndex(BoundMethodDefIndex node, object arg)
        {
            return new TreeDumperNode("methodDefIndex", null, new TreeDumperNode[]
            {
                new TreeDumperNode("method", node.Method, null),
12569 12570
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12571 12572 12573 12574 12575 12576 12577
            }
            );
        }
        public override TreeDumperNode VisitMaximumMethodDefIndex(BoundMaximumMethodDefIndex node, object arg)
        {
            return new TreeDumperNode("maximumMethodDefIndex", null, new TreeDumperNode[]
            {
12578 12579
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12580 12581 12582 12583 12584 12585 12586 12587
            }
            );
        }
        public override TreeDumperNode VisitInstrumentationPayloadRoot(BoundInstrumentationPayloadRoot node, object arg)
        {
            return new TreeDumperNode("instrumentationPayloadRoot", null, new TreeDumperNode[]
            {
                new TreeDumperNode("analysisKind", node.AnalysisKind, null),
12588 12589
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12590 12591 12592 12593 12594 12595 12596
            }
            );
        }
        public override TreeDumperNode VisitModuleVersionId(BoundModuleVersionId node, object arg)
        {
            return new TreeDumperNode("moduleVersionId", null, new TreeDumperNode[]
            {
12597 12598
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12599 12600 12601 12602 12603 12604 12605
            }
            );
        }
        public override TreeDumperNode VisitModuleVersionIdString(BoundModuleVersionIdString node, object arg)
        {
            return new TreeDumperNode("moduleVersionIdString", null, new TreeDumperNode[]
            {
12606 12607
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12608 12609 12610 12611 12612 12613 12614 12615
            }
            );
        }
        public override TreeDumperNode VisitSourceDocumentIndex(BoundSourceDocumentIndex node, object arg)
        {
            return new TreeDumperNode("sourceDocumentIndex", null, new TreeDumperNode[]
            {
                new TreeDumperNode("document", node.Document, null),
12616 12617
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12618 12619 12620 12621 12622 12623 12624 12625 12626
            }
            );
        }
        public override TreeDumperNode VisitMethodInfo(BoundMethodInfo node, object arg)
        {
            return new TreeDumperNode("methodInfo", null, new TreeDumperNode[]
            {
                new TreeDumperNode("method", node.Method, null),
                new TreeDumperNode("getMethodFromHandle", node.GetMethodFromHandle, null),
12627 12628
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12629 12630 12631 12632 12633 12634 12635 12636 12637
            }
            );
        }
        public override TreeDumperNode VisitFieldInfo(BoundFieldInfo node, object arg)
        {
            return new TreeDumperNode("fieldInfo", null, new TreeDumperNode[]
            {
                new TreeDumperNode("field", node.Field, null),
                new TreeDumperNode("getFieldFromHandle", node.GetFieldFromHandle, null),
12638 12639
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12640 12641 12642
            }
            );
        }
12643
        public override TreeDumperNode VisitDefaultExpression(BoundDefaultExpression node, object arg)
D
DotNet Bot 已提交
12644
        {
12645
            return new TreeDumperNode("defaultExpression", null, new TreeDumperNode[]
D
DotNet Bot 已提交
12646 12647
            {
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
12648 12649
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12650 12651 12652 12653 12654 12655 12656 12657 12658 12659
            }
            );
        }
        public override TreeDumperNode VisitIsOperator(BoundIsOperator node, object arg)
        {
            return new TreeDumperNode("isOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
                new TreeDumperNode("targetType", null, new TreeDumperNode[] { Visit(node.TargetType, null) }),
                new TreeDumperNode("conversion", node.Conversion, null),
12660 12661
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12662 12663 12664 12665 12666 12667 12668 12669 12670 12671
            }
            );
        }
        public override TreeDumperNode VisitAsOperator(BoundAsOperator node, object arg)
        {
            return new TreeDumperNode("asOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
                new TreeDumperNode("targetType", null, new TreeDumperNode[] { Visit(node.TargetType, null) }),
                new TreeDumperNode("conversion", node.Conversion, null),
12672 12673
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12674 12675 12676 12677 12678 12679 12680 12681 12682
            }
            );
        }
        public override TreeDumperNode VisitSizeOfOperator(BoundSizeOfOperator node, object arg)
        {
            return new TreeDumperNode("sizeOfOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("sourceType", null, new TreeDumperNode[] { Visit(node.SourceType, null) }),
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
12683 12684
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697
            }
            );
        }
        public override TreeDumperNode VisitConversion(BoundConversion node, object arg)
        {
            return new TreeDumperNode("conversion", null, new TreeDumperNode[]
            {
                new TreeDumperNode("operand", null, new TreeDumperNode[] { Visit(node.Operand, null) }),
                new TreeDumperNode("conversion", node.Conversion, null),
                new TreeDumperNode("isBaseConversion", node.IsBaseConversion, null),
                new TreeDumperNode("@checked", node.Checked, null),
                new TreeDumperNode("explicitCastInCode", node.ExplicitCastInCode, null),
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
12698
                new TreeDumperNode("conversionGroupOpt", node.ConversionGroupOpt, null),
12699 12700
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12701 12702 12703 12704 12705 12706 12707
            }
            );
        }
        public override TreeDumperNode VisitArgList(BoundArgList node, object arg)
        {
            return new TreeDumperNode("argList", null, new TreeDumperNode[]
            {
12708 12709
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12710 12711 12712 12713 12714 12715 12716 12717 12718
            }
            );
        }
        public override TreeDumperNode VisitArgListOperator(BoundArgListOperator node, object arg)
        {
            return new TreeDumperNode("argListOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
                new TreeDumperNode("argumentRefKindsOpt", node.ArgumentRefKindsOpt, null),
12719 12720
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12721 12722 12723 12724 12725 12726 12727 12728 12729 12730
            }
            );
        }
        public override TreeDumperNode VisitFixedLocalCollectionInitializer(BoundFixedLocalCollectionInitializer node, object arg)
        {
            return new TreeDumperNode("fixedLocalCollectionInitializer", null, new TreeDumperNode[]
            {
                new TreeDumperNode("elementPointerType", node.ElementPointerType, null),
                new TreeDumperNode("elementPointerTypeConversion", node.ElementPointerTypeConversion, null),
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
V
vsadov 已提交
12731
                new TreeDumperNode("getPinnableOpt", node.GetPinnableOpt, null),
12732 12733
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800
            }
            );
        }
        public override TreeDumperNode VisitSequencePoint(BoundSequencePoint node, object arg)
        {
            return new TreeDumperNode("sequencePoint", null, new TreeDumperNode[]
            {
                new TreeDumperNode("statementOpt", null, new TreeDumperNode[] { Visit(node.StatementOpt, null) })
            }
            );
        }
        public override TreeDumperNode VisitSequencePointWithSpan(BoundSequencePointWithSpan node, object arg)
        {
            return new TreeDumperNode("sequencePointWithSpan", null, new TreeDumperNode[]
            {
                new TreeDumperNode("statementOpt", null, new TreeDumperNode[] { Visit(node.StatementOpt, null) }),
                new TreeDumperNode("span", node.Span, null)
            }
            );
        }
        public override TreeDumperNode VisitBlock(BoundBlock node, object arg)
        {
            return new TreeDumperNode("block", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("localFunctions", node.LocalFunctions, null),
                new TreeDumperNode("statements", null, from x in node.Statements select Visit(x, null))
            }
            );
        }
        public override TreeDumperNode VisitScope(BoundScope node, object arg)
        {
            return new TreeDumperNode("scope", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("statements", null, from x in node.Statements select Visit(x, null))
            }
            );
        }
        public override TreeDumperNode VisitStateMachineScope(BoundStateMachineScope node, object arg)
        {
            return new TreeDumperNode("stateMachineScope", null, new TreeDumperNode[]
            {
                new TreeDumperNode("fields", node.Fields, null),
                new TreeDumperNode("statement", null, new TreeDumperNode[] { Visit(node.Statement, null) })
            }
            );
        }
        public override TreeDumperNode VisitLocalDeclaration(BoundLocalDeclaration node, object arg)
        {
            return new TreeDumperNode("localDeclaration", null, new TreeDumperNode[]
            {
                new TreeDumperNode("localSymbol", node.LocalSymbol, null),
                new TreeDumperNode("declaredType", null, new TreeDumperNode[] { Visit(node.DeclaredType, null) }),
                new TreeDumperNode("initializerOpt", null, new TreeDumperNode[] { Visit(node.InitializerOpt, null) }),
                new TreeDumperNode("argumentsOpt", null, node.ArgumentsOpt.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.ArgumentsOpt select Visit(x, null))
            }
            );
        }
        public override TreeDumperNode VisitMultipleLocalDeclarations(BoundMultipleLocalDeclarations node, object arg)
        {
            return new TreeDumperNode("multipleLocalDeclarations", null, new TreeDumperNode[]
            {
                new TreeDumperNode("localDeclarations", null, from x in node.LocalDeclarations select Visit(x, null))
            }
            );
        }
12801 12802 12803 12804 12805 12806
        public override TreeDumperNode VisitUsingLocalDeclarations(BoundUsingLocalDeclarations node, object arg)
        {
            return new TreeDumperNode("usingLocalDeclarations", null, new TreeDumperNode[]
            {
                new TreeDumperNode("disposeMethodOpt", node.DisposeMethodOpt, null),
                new TreeDumperNode("iDisposableConversion", node.IDisposableConversion, null),
12807
                new TreeDumperNode("awaitOpt", node.AwaitOpt, null),
12808 12809 12810 12811
                new TreeDumperNode("localDeclarations", null, from x in node.LocalDeclarations select Visit(x, null))
            }
            );
        }
D
DotNet Bot 已提交
12812 12813 12814 12815 12816
        public override TreeDumperNode VisitLocalFunctionStatement(BoundLocalFunctionStatement node, object arg)
        {
            return new TreeDumperNode("localFunctionStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("symbol", node.Symbol, null),
12817 12818
                new TreeDumperNode("blockBody", null, new TreeDumperNode[] { Visit(node.BlockBody, null) }),
                new TreeDumperNode("expressionBody", null, new TreeDumperNode[] { Visit(node.ExpressionBody, null) })
D
DotNet Bot 已提交
12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883
            }
            );
        }
        public override TreeDumperNode VisitNoOpStatement(BoundNoOpStatement node, object arg)
        {
            return new TreeDumperNode("noOpStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("flavor", node.Flavor, null)
            }
            );
        }
        public override TreeDumperNode VisitReturnStatement(BoundReturnStatement node, object arg)
        {
            return new TreeDumperNode("returnStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("refKind", node.RefKind, null),
                new TreeDumperNode("expressionOpt", null, new TreeDumperNode[] { Visit(node.ExpressionOpt, null) })
            }
            );
        }
        public override TreeDumperNode VisitYieldReturnStatement(BoundYieldReturnStatement node, object arg)
        {
            return new TreeDumperNode("yieldReturnStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) })
            }
            );
        }
        public override TreeDumperNode VisitYieldBreakStatement(BoundYieldBreakStatement node, object arg)
        {
            return new TreeDumperNode("yieldBreakStatement", null, Array.Empty<TreeDumperNode>()
            );
        }
        public override TreeDumperNode VisitThrowStatement(BoundThrowStatement node, object arg)
        {
            return new TreeDumperNode("throwStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expressionOpt", null, new TreeDumperNode[] { Visit(node.ExpressionOpt, null) })
            }
            );
        }
        public override TreeDumperNode VisitExpressionStatement(BoundExpressionStatement node, object arg)
        {
            return new TreeDumperNode("expressionStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) })
            }
            );
        }
        public override TreeDumperNode VisitBreakStatement(BoundBreakStatement node, object arg)
        {
            return new TreeDumperNode("breakStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("label", node.Label, null)
            }
            );
        }
        public override TreeDumperNode VisitContinueStatement(BoundContinueStatement node, object arg)
        {
            return new TreeDumperNode("continueStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("label", node.Label, null)
            }
            );
        }
12884
        public override TreeDumperNode VisitSwitchStatement(BoundSwitchStatement node, object arg)
D
DotNet Bot 已提交
12885
        {
12886
            return new TreeDumperNode("switchStatement", null, new TreeDumperNode[]
D
DotNet Bot 已提交
12887 12888 12889 12890 12891
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
                new TreeDumperNode("innerLocals", node.InnerLocals, null),
                new TreeDumperNode("innerLocalFunctions", node.InnerLocalFunctions, null),
                new TreeDumperNode("switchSections", null, from x in node.SwitchSections select Visit(x, null)),
12892
                new TreeDumperNode("decisionDag", null, new TreeDumperNode[] { Visit(node.DecisionDag, null) }),
D
DotNet Bot 已提交
12893
                new TreeDumperNode("defaultLabel", null, new TreeDumperNode[] { Visit(node.DefaultLabel, null) }),
12894
                new TreeDumperNode("breakLabel", node.BreakLabel, null)
D
DotNet Bot 已提交
12895 12896 12897
            }
            );
        }
12898
        public override TreeDumperNode VisitSwitchDispatch(BoundSwitchDispatch node, object arg)
D
DotNet Bot 已提交
12899
        {
12900
            return new TreeDumperNode("switchDispatch", null, new TreeDumperNode[]
D
DotNet Bot 已提交
12901
            {
12902 12903 12904 12905
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
                new TreeDumperNode("cases", node.Cases, null),
                new TreeDumperNode("defaultLabel", node.DefaultLabel, null),
                new TreeDumperNode("equalityMethod", node.EqualityMethod, null)
D
DotNet Bot 已提交
12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965
            }
            );
        }
        public override TreeDumperNode VisitIfStatement(BoundIfStatement node, object arg)
        {
            return new TreeDumperNode("ifStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("condition", null, new TreeDumperNode[] { Visit(node.Condition, null) }),
                new TreeDumperNode("consequence", null, new TreeDumperNode[] { Visit(node.Consequence, null) }),
                new TreeDumperNode("alternativeOpt", null, new TreeDumperNode[] { Visit(node.AlternativeOpt, null) })
            }
            );
        }
        public override TreeDumperNode VisitDoStatement(BoundDoStatement node, object arg)
        {
            return new TreeDumperNode("doStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("condition", null, new TreeDumperNode[] { Visit(node.Condition, null) }),
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) }),
                new TreeDumperNode("breakLabel", node.BreakLabel, null),
                new TreeDumperNode("continueLabel", node.ContinueLabel, null)
            }
            );
        }
        public override TreeDumperNode VisitWhileStatement(BoundWhileStatement node, object arg)
        {
            return new TreeDumperNode("whileStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("condition", null, new TreeDumperNode[] { Visit(node.Condition, null) }),
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) }),
                new TreeDumperNode("breakLabel", node.BreakLabel, null),
                new TreeDumperNode("continueLabel", node.ContinueLabel, null)
            }
            );
        }
        public override TreeDumperNode VisitForStatement(BoundForStatement node, object arg)
        {
            return new TreeDumperNode("forStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("outerLocals", node.OuterLocals, null),
                new TreeDumperNode("initializer", null, new TreeDumperNode[] { Visit(node.Initializer, null) }),
                new TreeDumperNode("innerLocals", node.InnerLocals, null),
                new TreeDumperNode("condition", null, new TreeDumperNode[] { Visit(node.Condition, null) }),
                new TreeDumperNode("increment", null, new TreeDumperNode[] { Visit(node.Increment, null) }),
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) }),
                new TreeDumperNode("breakLabel", node.BreakLabel, null),
                new TreeDumperNode("continueLabel", node.ContinueLabel, null)
            }
            );
        }
        public override TreeDumperNode VisitForEachStatement(BoundForEachStatement node, object arg)
        {
            return new TreeDumperNode("forEachStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("enumeratorInfoOpt", node.EnumeratorInfoOpt, null),
                new TreeDumperNode("elementConversion", node.ElementConversion, null),
                new TreeDumperNode("iterationVariableType", null, new TreeDumperNode[] { Visit(node.IterationVariableType, null) }),
                new TreeDumperNode("iterationVariables", node.IterationVariables, null),
12966
                new TreeDumperNode("iterationErrorExpressionOpt", null, new TreeDumperNode[] { Visit(node.IterationErrorExpressionOpt, null) }),
D
DotNet Bot 已提交
12967 12968
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
                new TreeDumperNode("deconstructionOpt", null, new TreeDumperNode[] { Visit(node.DeconstructionOpt, null) }),
12969
                new TreeDumperNode("awaitOpt", node.AwaitOpt, null),
D
DotNet Bot 已提交
12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) }),
                new TreeDumperNode("@checked", node.Checked, null),
                new TreeDumperNode("breakLabel", node.BreakLabel, null),
                new TreeDumperNode("continueLabel", node.ContinueLabel, null)
            }
            );
        }
        public override TreeDumperNode VisitForEachDeconstructStep(BoundForEachDeconstructStep node, object arg)
        {
            return new TreeDumperNode("forEachDeconstructStep", null, new TreeDumperNode[]
            {
                new TreeDumperNode("deconstructionAssignment", null, new TreeDumperNode[] { Visit(node.DeconstructionAssignment, null) }),
                new TreeDumperNode("targetPlaceholder", null, new TreeDumperNode[] { Visit(node.TargetPlaceholder, null) })
            }
            );
        }
        public override TreeDumperNode VisitUsingStatement(BoundUsingStatement node, object arg)
        {
            return new TreeDumperNode("usingStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("declarationsOpt", null, new TreeDumperNode[] { Visit(node.DeclarationsOpt, null) }),
                new TreeDumperNode("expressionOpt", null, new TreeDumperNode[] { Visit(node.ExpressionOpt, null) }),
                new TreeDumperNode("iDisposableConversion", node.IDisposableConversion, null),
L
Lauren Fay 已提交
12994
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) }),
12995
                new TreeDumperNode("awaitOpt", node.AwaitOpt, null),
L
Lauren Fay 已提交
12996
                new TreeDumperNode("disposeMethodOpt", node.DisposeMethodOpt, null)
D
DotNet Bot 已提交
12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025
            }
            );
        }
        public override TreeDumperNode VisitFixedStatement(BoundFixedStatement node, object arg)
        {
            return new TreeDumperNode("fixedStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("declarations", null, new TreeDumperNode[] { Visit(node.Declarations, null) }),
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) })
            }
            );
        }
        public override TreeDumperNode VisitLockStatement(BoundLockStatement node, object arg)
        {
            return new TreeDumperNode("lockStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("argument", null, new TreeDumperNode[] { Visit(node.Argument, null) }),
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) })
            }
            );
        }
        public override TreeDumperNode VisitTryStatement(BoundTryStatement node, object arg)
        {
            return new TreeDumperNode("tryStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("tryBlock", null, new TreeDumperNode[] { Visit(node.TryBlock, null) }),
                new TreeDumperNode("catchBlocks", null, from x in node.CatchBlocks select Visit(x, null)),
                new TreeDumperNode("finallyBlockOpt", null, new TreeDumperNode[] { Visit(node.FinallyBlockOpt, null) }),
13026
                new TreeDumperNode("finallyLabelOpt", node.FinallyLabelOpt, null),
D
DotNet Bot 已提交
13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048
                new TreeDumperNode("preferFaultHandler", node.PreferFaultHandler, null)
            }
            );
        }
        public override TreeDumperNode VisitCatchBlock(BoundCatchBlock node, object arg)
        {
            return new TreeDumperNode("catchBlock", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("exceptionSourceOpt", null, new TreeDumperNode[] { Visit(node.ExceptionSourceOpt, null) }),
                new TreeDumperNode("exceptionTypeOpt", node.ExceptionTypeOpt, null),
                new TreeDumperNode("exceptionFilterOpt", null, new TreeDumperNode[] { Visit(node.ExceptionFilterOpt, null) }),
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) }),
                new TreeDumperNode("isSynthesizedAsyncCatchAll", node.IsSynthesizedAsyncCatchAll, null)
            }
            );
        }
        public override TreeDumperNode VisitLiteral(BoundLiteral node, object arg)
        {
            return new TreeDumperNode("literal", null, new TreeDumperNode[]
            {
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
13049 13050
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13051 13052 13053 13054 13055 13056 13057
            }
            );
        }
        public override TreeDumperNode VisitThisReference(BoundThisReference node, object arg)
        {
            return new TreeDumperNode("thisReference", null, new TreeDumperNode[]
            {
13058 13059
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13060 13061 13062 13063 13064 13065 13066
            }
            );
        }
        public override TreeDumperNode VisitPreviousSubmissionReference(BoundPreviousSubmissionReference node, object arg)
        {
            return new TreeDumperNode("previousSubmissionReference", null, new TreeDumperNode[]
            {
13067 13068
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13069 13070 13071 13072 13073 13074 13075
            }
            );
        }
        public override TreeDumperNode VisitHostObjectMemberReference(BoundHostObjectMemberReference node, object arg)
        {
            return new TreeDumperNode("hostObjectMemberReference", null, new TreeDumperNode[]
            {
13076 13077
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13078 13079 13080 13081 13082 13083 13084
            }
            );
        }
        public override TreeDumperNode VisitBaseReference(BoundBaseReference node, object arg)
        {
            return new TreeDumperNode("baseReference", null, new TreeDumperNode[]
            {
13085 13086
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13087 13088 13089 13090 13091 13092 13093 13094
            }
            );
        }
        public override TreeDumperNode VisitLocal(BoundLocal node, object arg)
        {
            return new TreeDumperNode("local", null, new TreeDumperNode[]
            {
                new TreeDumperNode("localSymbol", node.LocalSymbol, null),
13095
                new TreeDumperNode("declarationKind", node.DeclarationKind, null),
D
DotNet Bot 已提交
13096
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
13097
                new TreeDumperNode("isNullableUnknown", node.IsNullableUnknown, null),
13098 13099
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13100 13101 13102 13103 13104 13105 13106 13107 13108
            }
            );
        }
        public override TreeDumperNode VisitPseudoVariable(BoundPseudoVariable node, object arg)
        {
            return new TreeDumperNode("pseudoVariable", null, new TreeDumperNode[]
            {
                new TreeDumperNode("localSymbol", node.LocalSymbol, null),
                new TreeDumperNode("emitExpressions", node.EmitExpressions, null),
13109 13110
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13111 13112 13113 13114 13115 13116 13117 13118 13119
            }
            );
        }
        public override TreeDumperNode VisitRangeVariable(BoundRangeVariable node, object arg)
        {
            return new TreeDumperNode("rangeVariable", null, new TreeDumperNode[]
            {
                new TreeDumperNode("rangeVariableSymbol", node.RangeVariableSymbol, null),
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) }),
13120 13121
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13122 13123 13124 13125 13126 13127 13128 13129
            }
            );
        }
        public override TreeDumperNode VisitParameter(BoundParameter node, object arg)
        {
            return new TreeDumperNode("parameter", null, new TreeDumperNode[]
            {
                new TreeDumperNode("parameterSymbol", node.ParameterSymbol, null),
13130 13131
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166
            }
            );
        }
        public override TreeDumperNode VisitLabelStatement(BoundLabelStatement node, object arg)
        {
            return new TreeDumperNode("labelStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("label", node.Label, null)
            }
            );
        }
        public override TreeDumperNode VisitGotoStatement(BoundGotoStatement node, object arg)
        {
            return new TreeDumperNode("gotoStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("label", node.Label, null),
                new TreeDumperNode("caseExpressionOpt", null, new TreeDumperNode[] { Visit(node.CaseExpressionOpt, null) }),
                new TreeDumperNode("labelExpressionOpt", null, new TreeDumperNode[] { Visit(node.LabelExpressionOpt, null) })
            }
            );
        }
        public override TreeDumperNode VisitLabeledStatement(BoundLabeledStatement node, object arg)
        {
            return new TreeDumperNode("labeledStatement", null, new TreeDumperNode[]
            {
                new TreeDumperNode("label", node.Label, null),
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) })
            }
            );
        }
        public override TreeDumperNode VisitLabel(BoundLabel node, object arg)
        {
            return new TreeDumperNode("label", null, new TreeDumperNode[]
            {
                new TreeDumperNode("label", node.Label, null),
13167 13168
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189
            }
            );
        }
        public override TreeDumperNode VisitStatementList(BoundStatementList node, object arg)
        {
            return new TreeDumperNode("statementList", null, new TreeDumperNode[]
            {
                new TreeDumperNode("statements", null, from x in node.Statements select Visit(x, null))
            }
            );
        }
        public override TreeDumperNode VisitConditionalGoto(BoundConditionalGoto node, object arg)
        {
            return new TreeDumperNode("conditionalGoto", null, new TreeDumperNode[]
            {
                new TreeDumperNode("condition", null, new TreeDumperNode[] { Visit(node.Condition, null) }),
                new TreeDumperNode("jumpIfTrue", node.JumpIfTrue, null),
                new TreeDumperNode("label", node.Label, null)
            }
            );
        }
13190 13191 13192 13193 13194 13195
        public override TreeDumperNode VisitSwitchExpression(BoundSwitchExpression node, object arg)
        {
            return new TreeDumperNode("switchExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
                new TreeDumperNode("switchArms", null, from x in node.SwitchArms select Visit(x, null)),
13196
                new TreeDumperNode("decisionDag", null, new TreeDumperNode[] { Visit(node.DecisionDag, null) }),
13197
                new TreeDumperNode("defaultLabel", node.DefaultLabel, null),
13198
                new TreeDumperNode("reportedNotExhaustive", node.ReportedNotExhaustive, null),
13199 13200
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341
            }
            );
        }
        public override TreeDumperNode VisitSwitchExpressionArm(BoundSwitchExpressionArm node, object arg)
        {
            return new TreeDumperNode("switchExpressionArm", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.Pattern, null) }),
                new TreeDumperNode("whenClause", null, new TreeDumperNode[] { Visit(node.WhenClause, null) }),
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) }),
                new TreeDumperNode("label", node.Label, null)
            }
            );
        }
        public override TreeDumperNode VisitDecisionDag(BoundDecisionDag node, object arg)
        {
            return new TreeDumperNode("decisionDag", null, new TreeDumperNode[]
            {
                new TreeDumperNode("rootNode", node.RootNode, null)
            }
            );
        }
        public override TreeDumperNode VisitEvaluationDecisionDagNode(BoundEvaluationDecisionDagNode node, object arg)
        {
            return new TreeDumperNode("evaluationDecisionDagNode", null, new TreeDumperNode[]
            {
                new TreeDumperNode("evaluation", null, new TreeDumperNode[] { Visit(node.Evaluation, null) }),
                new TreeDumperNode("next", null, new TreeDumperNode[] { Visit(node.Next, null) })
            }
            );
        }
        public override TreeDumperNode VisitTestDecisionDagNode(BoundTestDecisionDagNode node, object arg)
        {
            return new TreeDumperNode("testDecisionDagNode", null, new TreeDumperNode[]
            {
                new TreeDumperNode("test", null, new TreeDumperNode[] { Visit(node.Test, null) }),
                new TreeDumperNode("whenTrue", null, new TreeDumperNode[] { Visit(node.WhenTrue, null) }),
                new TreeDumperNode("whenFalse", null, new TreeDumperNode[] { Visit(node.WhenFalse, null) })
            }
            );
        }
        public override TreeDumperNode VisitWhenDecisionDagNode(BoundWhenDecisionDagNode node, object arg)
        {
            return new TreeDumperNode("whenDecisionDagNode", null, new TreeDumperNode[]
            {
                new TreeDumperNode("bindings", node.Bindings, null),
                new TreeDumperNode("whenExpression", null, new TreeDumperNode[] { Visit(node.WhenExpression, null) }),
                new TreeDumperNode("whenTrue", null, new TreeDumperNode[] { Visit(node.WhenTrue, null) }),
                new TreeDumperNode("whenFalse", null, new TreeDumperNode[] { Visit(node.WhenFalse, null) })
            }
            );
        }
        public override TreeDumperNode VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node, object arg)
        {
            return new TreeDumperNode("leafDecisionDagNode", null, new TreeDumperNode[]
            {
                new TreeDumperNode("label", node.Label, null)
            }
            );
        }
        public override TreeDumperNode VisitDagTemp(BoundDagTemp node, object arg)
        {
            return new TreeDumperNode("dagTemp", null, new TreeDumperNode[]
            {
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("source", null, new TreeDumperNode[] { Visit(node.Source, null) }),
                new TreeDumperNode("index", node.Index, null)
            }
            );
        }
        public override TreeDumperNode VisitDagTypeTest(BoundDagTypeTest node, object arg)
        {
            return new TreeDumperNode("dagTypeTest", null, new TreeDumperNode[]
            {
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) })
            }
            );
        }
        public override TreeDumperNode VisitDagNonNullTest(BoundDagNonNullTest node, object arg)
        {
            return new TreeDumperNode("dagNonNullTest", null, new TreeDumperNode[]
            {
                new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) })
            }
            );
        }
        public override TreeDumperNode VisitDagNullTest(BoundDagNullTest node, object arg)
        {
            return new TreeDumperNode("dagNullTest", null, new TreeDumperNode[]
            {
                new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) })
            }
            );
        }
        public override TreeDumperNode VisitDagValueTest(BoundDagValueTest node, object arg)
        {
            return new TreeDumperNode("dagValueTest", null, new TreeDumperNode[]
            {
                new TreeDumperNode("value", node.Value, null),
                new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) })
            }
            );
        }
        public override TreeDumperNode VisitDagDeconstructEvaluation(BoundDagDeconstructEvaluation node, object arg)
        {
            return new TreeDumperNode("dagDeconstructEvaluation", null, new TreeDumperNode[]
            {
                new TreeDumperNode("deconstructMethod", node.DeconstructMethod, null),
                new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) })
            }
            );
        }
        public override TreeDumperNode VisitDagTypeEvaluation(BoundDagTypeEvaluation node, object arg)
        {
            return new TreeDumperNode("dagTypeEvaluation", null, new TreeDumperNode[]
            {
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) })
            }
            );
        }
        public override TreeDumperNode VisitDagFieldEvaluation(BoundDagFieldEvaluation node, object arg)
        {
            return new TreeDumperNode("dagFieldEvaluation", null, new TreeDumperNode[]
            {
                new TreeDumperNode("field", node.Field, null),
                new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) })
            }
            );
        }
        public override TreeDumperNode VisitDagPropertyEvaluation(BoundDagPropertyEvaluation node, object arg)
        {
            return new TreeDumperNode("dagPropertyEvaluation", null, new TreeDumperNode[]
            {
                new TreeDumperNode("property", node.Property, null),
                new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) })
            }
            );
        }
13342 13343 13344 13345 13346 13347 13348 13349 13350 13351
        public override TreeDumperNode VisitDagIndexEvaluation(BoundDagIndexEvaluation node, object arg)
        {
            return new TreeDumperNode("dagIndexEvaluation", null, new TreeDumperNode[]
            {
                new TreeDumperNode("property", node.Property, null),
                new TreeDumperNode("index", node.Index, null),
                new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) })
            }
            );
        }
13352
        public override TreeDumperNode VisitSwitchSection(BoundSwitchSection node, object arg)
13353
        {
13354
            return new TreeDumperNode("switchSection", null, new TreeDumperNode[]
13355 13356 13357 13358 13359 13360 13361
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("switchLabels", null, from x in node.SwitchLabels select Visit(x, null)),
                new TreeDumperNode("statements", null, from x in node.Statements select Visit(x, null))
            }
            );
        }
13362
        public override TreeDumperNode VisitSwitchLabel(BoundSwitchLabel node, object arg)
13363
        {
13364
            return new TreeDumperNode("switchLabel", null, new TreeDumperNode[]
13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376
            {
                new TreeDumperNode("label", node.Label, null),
                new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.Pattern, null) }),
                new TreeDumperNode("whenClause", null, new TreeDumperNode[] { Visit(node.WhenClause, null) })
            }
            );
        }
        public override TreeDumperNode VisitSequencePointExpression(BoundSequencePointExpression node, object arg)
        {
            return new TreeDumperNode("sequencePointExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
13377 13378
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
13379 13380 13381 13382 13383 13384 13385 13386 13387 13388
            }
            );
        }
        public override TreeDumperNode VisitSequence(BoundSequence node, object arg)
        {
            return new TreeDumperNode("sequence", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("sideEffects", null, from x in node.SideEffects select Visit(x, null)),
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) }),
13389 13390
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
13391 13392 13393 13394 13395 13396 13397 13398 13399 13400
            }
            );
        }
        public override TreeDumperNode VisitSpillSequence(BoundSpillSequence node, object arg)
        {
            return new TreeDumperNode("spillSequence", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("sideEffects", null, from x in node.SideEffects select Visit(x, null)),
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) }),
13401 13402
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
13403 13404 13405
            }
            );
        }
D
DotNet Bot 已提交
13406 13407 13408 13409 13410 13411 13412 13413 13414
        public override TreeDumperNode VisitDynamicMemberAccess(BoundDynamicMemberAccess node, object arg)
        {
            return new TreeDumperNode("dynamicMemberAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("receiver", null, new TreeDumperNode[] { Visit(node.Receiver, null) }),
                new TreeDumperNode("typeArgumentsOpt", node.TypeArgumentsOpt, null),
                new TreeDumperNode("name", node.Name, null),
                new TreeDumperNode("invoked", node.Invoked, null),
                new TreeDumperNode("indexed", node.Indexed, null),
13415 13416
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13417 13418 13419 13420 13421 13422 13423 13424 13425 13426
            }
            );
        }
        public override TreeDumperNode VisitDynamicInvocation(BoundDynamicInvocation node, object arg)
        {
            return new TreeDumperNode("dynamicInvocation", null, new TreeDumperNode[]
            {
                new TreeDumperNode("argumentNamesOpt", node.ArgumentNamesOpt, null),
                new TreeDumperNode("argumentRefKindsOpt", node.ArgumentRefKindsOpt, null),
                new TreeDumperNode("applicableMethods", node.ApplicableMethods, null),
13427 13428
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
13429 13430
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13431 13432 13433 13434 13435 13436 13437 13438 13439
            }
            );
        }
        public override TreeDumperNode VisitConditionalAccess(BoundConditionalAccess node, object arg)
        {
            return new TreeDumperNode("conditionalAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("receiver", null, new TreeDumperNode[] { Visit(node.Receiver, null) }),
                new TreeDumperNode("accessExpression", null, new TreeDumperNode[] { Visit(node.AccessExpression, null) }),
13440 13441
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453
            }
            );
        }
        public override TreeDumperNode VisitLoweredConditionalAccess(BoundLoweredConditionalAccess node, object arg)
        {
            return new TreeDumperNode("loweredConditionalAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("receiver", null, new TreeDumperNode[] { Visit(node.Receiver, null) }),
                new TreeDumperNode("hasValueMethodOpt", node.HasValueMethodOpt, null),
                new TreeDumperNode("whenNotNull", null, new TreeDumperNode[] { Visit(node.WhenNotNull, null) }),
                new TreeDumperNode("whenNullOpt", null, new TreeDumperNode[] { Visit(node.WhenNullOpt, null) }),
                new TreeDumperNode("id", node.Id, null),
13454 13455
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13456 13457 13458 13459 13460 13461 13462 13463
            }
            );
        }
        public override TreeDumperNode VisitConditionalReceiver(BoundConditionalReceiver node, object arg)
        {
            return new TreeDumperNode("conditionalReceiver", null, new TreeDumperNode[]
            {
                new TreeDumperNode("id", node.Id, null),
13464 13465
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13466 13467 13468 13469 13470 13471 13472 13473 13474
            }
            );
        }
        public override TreeDumperNode VisitComplexConditionalReceiver(BoundComplexConditionalReceiver node, object arg)
        {
            return new TreeDumperNode("complexConditionalReceiver", null, new TreeDumperNode[]
            {
                new TreeDumperNode("valueTypeReceiver", null, new TreeDumperNode[] { Visit(node.ValueTypeReceiver, null) }),
                new TreeDumperNode("referenceTypeReceiver", null, new TreeDumperNode[] { Visit(node.ReferenceTypeReceiver, null) }),
13475 13476
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491
            }
            );
        }
        public override TreeDumperNode VisitMethodGroup(BoundMethodGroup node, object arg)
        {
            return new TreeDumperNode("methodGroup", null, new TreeDumperNode[]
            {
                new TreeDumperNode("typeArgumentsOpt", node.TypeArgumentsOpt, null),
                new TreeDumperNode("name", node.Name, null),
                new TreeDumperNode("methods", node.Methods, null),
                new TreeDumperNode("lookupSymbolOpt", node.LookupSymbolOpt, null),
                new TreeDumperNode("lookupError", node.LookupError, null),
                new TreeDumperNode("flags", node.Flags, null),
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
                new TreeDumperNode("resultKind", node.ResultKind, null),
13492 13493
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13494 13495 13496 13497 13498 13499 13500 13501 13502 13503
            }
            );
        }
        public override TreeDumperNode VisitPropertyGroup(BoundPropertyGroup node, object arg)
        {
            return new TreeDumperNode("propertyGroup", null, new TreeDumperNode[]
            {
                new TreeDumperNode("properties", node.Properties, null),
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
                new TreeDumperNode("resultKind", node.ResultKind, null),
13504 13505
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522
            }
            );
        }
        public override TreeDumperNode VisitCall(BoundCall node, object arg)
        {
            return new TreeDumperNode("call", null, new TreeDumperNode[]
            {
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
                new TreeDumperNode("method", node.Method, null),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
                new TreeDumperNode("argumentNamesOpt", node.ArgumentNamesOpt, null),
                new TreeDumperNode("argumentRefKindsOpt", node.ArgumentRefKindsOpt, null),
                new TreeDumperNode("isDelegateCall", node.IsDelegateCall, null),
                new TreeDumperNode("expanded", node.Expanded, null),
                new TreeDumperNode("invokedAsExtensionMethod", node.InvokedAsExtensionMethod, null),
                new TreeDumperNode("argsToParamsOpt", node.ArgsToParamsOpt, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
13523
                new TreeDumperNode("binderOpt", node.BinderOpt, null),
13524 13525
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537
            }
            );
        }
        public override TreeDumperNode VisitEventAssignmentOperator(BoundEventAssignmentOperator node, object arg)
        {
            return new TreeDumperNode("eventAssignmentOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("@event", node.Event, null),
                new TreeDumperNode("isAddition", node.IsAddition, null),
                new TreeDumperNode("isDynamic", node.IsDynamic, null),
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
                new TreeDumperNode("argument", null, new TreeDumperNode[] { Visit(node.Argument, null) }),
13538 13539
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13540 13541 13542 13543 13544 13545 13546 13547 13548 13549
            }
            );
        }
        public override TreeDumperNode VisitAttribute(BoundAttribute node, object arg)
        {
            return new TreeDumperNode("attribute", null, new TreeDumperNode[]
            {
                new TreeDumperNode("constructor", node.Constructor, null),
                new TreeDumperNode("constructorArguments", null, from x in node.ConstructorArguments select Visit(x, null)),
                new TreeDumperNode("constructorArgumentNamesOpt", node.ConstructorArgumentNamesOpt, null),
13550 13551
                new TreeDumperNode("constructorArgumentsToParamsOpt", node.ConstructorArgumentsToParamsOpt, null),
                new TreeDumperNode("constructorExpanded", node.ConstructorExpanded, null),
D
DotNet Bot 已提交
13552 13553
                new TreeDumperNode("namedArguments", null, from x in node.NamedArguments select Visit(x, null)),
                new TreeDumperNode("resultKind", node.ResultKind, null),
13554 13555
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571
            }
            );
        }
        public override TreeDumperNode VisitObjectCreationExpression(BoundObjectCreationExpression node, object arg)
        {
            return new TreeDumperNode("objectCreationExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("constructor", node.Constructor, null),
                new TreeDumperNode("constructorsGroup", node.ConstructorsGroup, null),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
                new TreeDumperNode("argumentNamesOpt", node.ArgumentNamesOpt, null),
                new TreeDumperNode("argumentRefKindsOpt", node.ArgumentRefKindsOpt, null),
                new TreeDumperNode("expanded", node.Expanded, null),
                new TreeDumperNode("argsToParamsOpt", node.ArgsToParamsOpt, null),
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
                new TreeDumperNode("initializerExpressionOpt", null, new TreeDumperNode[] { Visit(node.InitializerExpressionOpt, null) }),
13572
                new TreeDumperNode("binderOpt", node.BinderOpt, null),
13573 13574
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13575 13576 13577 13578 13579 13580 13581 13582
            }
            );
        }
        public override TreeDumperNode VisitTupleLiteral(BoundTupleLiteral node, object arg)
        {
            return new TreeDumperNode("tupleLiteral", null, new TreeDumperNode[]
            {
                new TreeDumperNode("argumentNamesOpt", node.ArgumentNamesOpt, null),
13583
                new TreeDumperNode("inferredNamesOpt", node.InferredNamesOpt, null),
D
DotNet Bot 已提交
13584
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
13585 13586
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13587 13588 13589 13590 13591 13592 13593 13594 13595
            }
            );
        }
        public override TreeDumperNode VisitConvertedTupleLiteral(BoundConvertedTupleLiteral node, object arg)
        {
            return new TreeDumperNode("convertedTupleLiteral", null, new TreeDumperNode[]
            {
                new TreeDumperNode("naturalTypeOpt", node.NaturalTypeOpt, null),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
13596 13597
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13598 13599 13600 13601 13602 13603 13604
            }
            );
        }
        public override TreeDumperNode VisitDynamicObjectCreationExpression(BoundDynamicObjectCreationExpression node, object arg)
        {
            return new TreeDumperNode("dynamicObjectCreationExpression", null, new TreeDumperNode[]
            {
13605
                new TreeDumperNode("name", node.Name, null),
D
DotNet Bot 已提交
13606 13607 13608 13609 13610
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
                new TreeDumperNode("argumentNamesOpt", node.ArgumentNamesOpt, null),
                new TreeDumperNode("argumentRefKindsOpt", node.ArgumentRefKindsOpt, null),
                new TreeDumperNode("initializerExpressionOpt", null, new TreeDumperNode[] { Visit(node.InitializerExpressionOpt, null) }),
                new TreeDumperNode("applicableMethods", node.ApplicableMethods, null),
13611 13612
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13613 13614 13615 13616 13617 13618 13619 13620 13621
            }
            );
        }
        public override TreeDumperNode VisitNoPiaObjectCreationExpression(BoundNoPiaObjectCreationExpression node, object arg)
        {
            return new TreeDumperNode("noPiaObjectCreationExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("guidString", node.GuidString, null),
                new TreeDumperNode("initializerExpressionOpt", null, new TreeDumperNode[] { Visit(node.InitializerExpressionOpt, null) }),
13622 13623
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13624 13625 13626 13627 13628 13629 13630 13631
            }
            );
        }
        public override TreeDumperNode VisitObjectInitializerExpression(BoundObjectInitializerExpression node, object arg)
        {
            return new TreeDumperNode("objectInitializerExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("initializers", null, from x in node.Initializers select Visit(x, null)),
13632 13633
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647
            }
            );
        }
        public override TreeDumperNode VisitObjectInitializerMember(BoundObjectInitializerMember node, object arg)
        {
            return new TreeDumperNode("objectInitializerMember", null, new TreeDumperNode[]
            {
                new TreeDumperNode("memberSymbol", node.MemberSymbol, null),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
                new TreeDumperNode("argumentNamesOpt", node.ArgumentNamesOpt, null),
                new TreeDumperNode("argumentRefKindsOpt", node.ArgumentRefKindsOpt, null),
                new TreeDumperNode("expanded", node.Expanded, null),
                new TreeDumperNode("argsToParamsOpt", node.ArgsToParamsOpt, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
13648
                new TreeDumperNode("receiverType", node.ReceiverType, null),
13649
                new TreeDumperNode("binderOpt", node.BinderOpt, null),
13650 13651
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13652 13653 13654 13655 13656 13657 13658 13659
            }
            );
        }
        public override TreeDumperNode VisitDynamicObjectInitializerMember(BoundDynamicObjectInitializerMember node, object arg)
        {
            return new TreeDumperNode("dynamicObjectInitializerMember", null, new TreeDumperNode[]
            {
                new TreeDumperNode("memberName", node.MemberName, null),
13660
                new TreeDumperNode("receiverType", node.ReceiverType, null),
13661 13662
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13663 13664 13665 13666 13667 13668 13669 13670
            }
            );
        }
        public override TreeDumperNode VisitCollectionInitializerExpression(BoundCollectionInitializerExpression node, object arg)
        {
            return new TreeDumperNode("collectionInitializerExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("initializers", null, from x in node.Initializers select Visit(x, null)),
13671 13672
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13673 13674 13675 13676 13677 13678 13679 13680 13681
            }
            );
        }
        public override TreeDumperNode VisitCollectionElementInitializer(BoundCollectionElementInitializer node, object arg)
        {
            return new TreeDumperNode("collectionElementInitializer", null, new TreeDumperNode[]
            {
                new TreeDumperNode("addMethod", node.AddMethod, null),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
13682
                new TreeDumperNode("implicitReceiverOpt", null, new TreeDumperNode[] { Visit(node.ImplicitReceiverOpt, null) }),
D
DotNet Bot 已提交
13683 13684 13685 13686
                new TreeDumperNode("expanded", node.Expanded, null),
                new TreeDumperNode("argsToParamsOpt", node.ArgsToParamsOpt, null),
                new TreeDumperNode("invokedAsExtensionMethod", node.InvokedAsExtensionMethod, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
13687
                new TreeDumperNode("binderOpt", node.BinderOpt, null),
13688 13689
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13690 13691 13692 13693 13694 13695 13696 13697
            }
            );
        }
        public override TreeDumperNode VisitDynamicCollectionElementInitializer(BoundDynamicCollectionElementInitializer node, object arg)
        {
            return new TreeDumperNode("dynamicCollectionElementInitializer", null, new TreeDumperNode[]
            {
                new TreeDumperNode("applicableMethods", node.ApplicableMethods, null),
13698 13699
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
13700 13701
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13702 13703 13704 13705 13706 13707 13708
            }
            );
        }
        public override TreeDumperNode VisitImplicitReceiver(BoundImplicitReceiver node, object arg)
        {
            return new TreeDumperNode("implicitReceiver", null, new TreeDumperNode[]
            {
13709 13710
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13711 13712 13713 13714 13715 13716 13717 13718 13719 13720
            }
            );
        }
        public override TreeDumperNode VisitAnonymousObjectCreationExpression(BoundAnonymousObjectCreationExpression node, object arg)
        {
            return new TreeDumperNode("anonymousObjectCreationExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("constructor", node.Constructor, null),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
                new TreeDumperNode("declarations", null, from x in node.Declarations select Visit(x, null)),
13721 13722
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13723 13724 13725 13726 13727 13728 13729 13730
            }
            );
        }
        public override TreeDumperNode VisitAnonymousPropertyDeclaration(BoundAnonymousPropertyDeclaration node, object arg)
        {
            return new TreeDumperNode("anonymousPropertyDeclaration", null, new TreeDumperNode[]
            {
                new TreeDumperNode("property", node.Property, null),
13731 13732
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13733 13734 13735 13736 13737 13738 13739 13740
            }
            );
        }
        public override TreeDumperNode VisitNewT(BoundNewT node, object arg)
        {
            return new TreeDumperNode("newT", null, new TreeDumperNode[]
            {
                new TreeDumperNode("initializerExpressionOpt", null, new TreeDumperNode[] { Visit(node.InitializerExpressionOpt, null) }),
13741 13742
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13743 13744 13745 13746 13747 13748 13749 13750 13751 13752
            }
            );
        }
        public override TreeDumperNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node, object arg)
        {
            return new TreeDumperNode("delegateCreationExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("argument", null, new TreeDumperNode[] { Visit(node.Argument, null) }),
                new TreeDumperNode("methodOpt", node.MethodOpt, null),
                new TreeDumperNode("isExtensionMethod", node.IsExtensionMethod, null),
13753 13754
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13755 13756 13757 13758 13759 13760 13761 13762 13763
            }
            );
        }
        public override TreeDumperNode VisitArrayCreation(BoundArrayCreation node, object arg)
        {
            return new TreeDumperNode("arrayCreation", null, new TreeDumperNode[]
            {
                new TreeDumperNode("bounds", null, from x in node.Bounds select Visit(x, null)),
                new TreeDumperNode("initializerOpt", null, new TreeDumperNode[] { Visit(node.InitializerOpt, null) }),
13764 13765
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13766 13767 13768 13769 13770 13771 13772 13773
            }
            );
        }
        public override TreeDumperNode VisitArrayInitialization(BoundArrayInitialization node, object arg)
        {
            return new TreeDumperNode("arrayInitialization", null, new TreeDumperNode[]
            {
                new TreeDumperNode("initializers", null, from x in node.Initializers select Visit(x, null)),
13774 13775
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13776 13777 13778 13779 13780 13781 13782
            }
            );
        }
        public override TreeDumperNode VisitStackAllocArrayCreation(BoundStackAllocArrayCreation node, object arg)
        {
            return new TreeDumperNode("stackAllocArrayCreation", null, new TreeDumperNode[]
            {
13783
                new TreeDumperNode("elementType", node.ElementType, null),
D
DotNet Bot 已提交
13784
                new TreeDumperNode("count", null, new TreeDumperNode[] { Visit(node.Count, null) }),
13785
                new TreeDumperNode("initializerOpt", null, new TreeDumperNode[] { Visit(node.InitializerOpt, null) }),
13786 13787
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13788 13789 13790
            }
            );
        }
13791 13792 13793 13794 13795
        public override TreeDumperNode VisitConvertedStackAllocExpression(BoundConvertedStackAllocExpression node, object arg)
        {
            return new TreeDumperNode("convertedStackAllocExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("elementType", node.ElementType, null),
D
DotNet Bot 已提交
13796
                new TreeDumperNode("count", null, new TreeDumperNode[] { Visit(node.Count, null) }),
13797
                new TreeDumperNode("initializerOpt", null, new TreeDumperNode[] { Visit(node.InitializerOpt, null) }),
13798 13799
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811
            }
            );
        }
        public override TreeDumperNode VisitFieldAccess(BoundFieldAccess node, object arg)
        {
            return new TreeDumperNode("fieldAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
                new TreeDumperNode("fieldSymbol", node.FieldSymbol, null),
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
                new TreeDumperNode("isByValue", node.IsByValue, null),
13812
                new TreeDumperNode("isDeclaration", node.IsDeclaration, null),
13813 13814
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13815 13816 13817 13818 13819 13820 13821 13822
            }
            );
        }
        public override TreeDumperNode VisitHoistedFieldAccess(BoundHoistedFieldAccess node, object arg)
        {
            return new TreeDumperNode("hoistedFieldAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("fieldSymbol", node.FieldSymbol, null),
13823 13824
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13825 13826 13827 13828 13829 13830 13831 13832 13833 13834
            }
            );
        }
        public override TreeDumperNode VisitPropertyAccess(BoundPropertyAccess node, object arg)
        {
            return new TreeDumperNode("propertyAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
                new TreeDumperNode("propertySymbol", node.PropertySymbol, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
13835 13836
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847
            }
            );
        }
        public override TreeDumperNode VisitEventAccess(BoundEventAccess node, object arg)
        {
            return new TreeDumperNode("eventAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
                new TreeDumperNode("eventSymbol", node.EventSymbol, null),
                new TreeDumperNode("isUsableAsField", node.IsUsableAsField, null),
                new TreeDumperNode("resultKind", node.ResultKind, null),
13848 13849
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863
            }
            );
        }
        public override TreeDumperNode VisitIndexerAccess(BoundIndexerAccess node, object arg)
        {
            return new TreeDumperNode("indexerAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
                new TreeDumperNode("indexer", node.Indexer, null),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
                new TreeDumperNode("argumentNamesOpt", node.ArgumentNamesOpt, null),
                new TreeDumperNode("argumentRefKindsOpt", node.ArgumentRefKindsOpt, null),
                new TreeDumperNode("expanded", node.Expanded, null),
                new TreeDumperNode("argsToParamsOpt", node.ArgsToParamsOpt, null),
13864
                new TreeDumperNode("binderOpt", node.BinderOpt, null),
G
Gen Lu 已提交
13865
                new TreeDumperNode("useSetterForDefaultArgumentGeneration", node.UseSetterForDefaultArgumentGeneration, null),
13866 13867
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879
            }
            );
        }
        public override TreeDumperNode VisitDynamicIndexerAccess(BoundDynamicIndexerAccess node, object arg)
        {
            return new TreeDumperNode("dynamicIndexerAccess", null, new TreeDumperNode[]
            {
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
                new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
                new TreeDumperNode("argumentNamesOpt", node.ArgumentNamesOpt, null),
                new TreeDumperNode("argumentRefKindsOpt", node.ArgumentRefKindsOpt, null),
                new TreeDumperNode("applicableIndexers", node.ApplicableIndexers, null),
13880 13881
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13882 13883 13884 13885 13886 13887 13888
            }
            );
        }
        public override TreeDumperNode VisitLambda(BoundLambda node, object arg)
        {
            return new TreeDumperNode("lambda", null, new TreeDumperNode[]
            {
13889
                new TreeDumperNode("unboundLambda", null, new TreeDumperNode[] { Visit(node.UnboundLambda, null) }),
D
DotNet Bot 已提交
13890 13891 13892 13893
                new TreeDumperNode("symbol", node.Symbol, null),
                new TreeDumperNode("body", null, new TreeDumperNode[] { Visit(node.Body, null) }),
                new TreeDumperNode("diagnostics", node.Diagnostics, null),
                new TreeDumperNode("binder", node.Binder, null),
13894 13895
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13896 13897 13898 13899 13900 13901 13902 13903
            }
            );
        }
        public override TreeDumperNode VisitUnboundLambda(UnboundLambda node, object arg)
        {
            return new TreeDumperNode("unboundLambda", null, new TreeDumperNode[]
            {
                new TreeDumperNode("data", node.Data, null),
13904 13905
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13906 13907 13908 13909 13910 13911 13912 13913 13914 13915
            }
            );
        }
        public override TreeDumperNode VisitQueryClause(BoundQueryClause node, object arg)
        {
            return new TreeDumperNode("queryClause", null, new TreeDumperNode[]
            {
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) }),
                new TreeDumperNode("definedSymbol", node.DefinedSymbol, null),
                new TreeDumperNode("binder", node.Binder, null),
13916 13917
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934
            }
            );
        }
        public override TreeDumperNode VisitTypeOrInstanceInitializers(BoundTypeOrInstanceInitializers node, object arg)
        {
            return new TreeDumperNode("typeOrInstanceInitializers", null, new TreeDumperNode[]
            {
                new TreeDumperNode("statements", null, from x in node.Statements select Visit(x, null))
            }
            );
        }
        public override TreeDumperNode VisitNameOfOperator(BoundNameOfOperator node, object arg)
        {
            return new TreeDumperNode("nameOfOperator", null, new TreeDumperNode[]
            {
                new TreeDumperNode("argument", null, new TreeDumperNode[] { Visit(node.Argument, null) }),
                new TreeDumperNode("constantValueOpt", node.ConstantValueOpt, null),
13935 13936
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13937 13938 13939 13940 13941 13942 13943 13944
            }
            );
        }
        public override TreeDumperNode VisitInterpolatedString(BoundInterpolatedString node, object arg)
        {
            return new TreeDumperNode("interpolatedString", null, new TreeDumperNode[]
            {
                new TreeDumperNode("parts", null, from x in node.Parts select Visit(x, null)),
13945 13946
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13947 13948 13949 13950 13951 13952 13953 13954 13955 13956
            }
            );
        }
        public override TreeDumperNode VisitStringInsert(BoundStringInsert node, object arg)
        {
            return new TreeDumperNode("stringInsert", null, new TreeDumperNode[]
            {
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) }),
                new TreeDumperNode("alignment", null, new TreeDumperNode[] { Visit(node.Alignment, null) }),
                new TreeDumperNode("format", null, new TreeDumperNode[] { Visit(node.Format, null) }),
13957 13958
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13959 13960 13961 13962 13963 13964 13965 13966 13967
            }
            );
        }
        public override TreeDumperNode VisitIsPatternExpression(BoundIsPatternExpression node, object arg)
        {
            return new TreeDumperNode("isPatternExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
                new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.Pattern, null) }),
13968 13969 13970
                new TreeDumperNode("decisionDag", null, new TreeDumperNode[] { Visit(node.DecisionDag, null) }),
                new TreeDumperNode("whenTrueLabel", node.WhenTrueLabel, null),
                new TreeDumperNode("whenFalseLabel", node.WhenFalseLabel, null),
13971 13972
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
13973 13974 13975
            }
            );
        }
13976 13977 13978 13979 13980
        public override TreeDumperNode VisitConstantPattern(BoundConstantPattern node, object arg)
        {
            return new TreeDumperNode("constantPattern", null, new TreeDumperNode[]
            {
                new TreeDumperNode("value", null, new TreeDumperNode[] { Visit(node.Value, null) }),
13981 13982
                new TreeDumperNode("constantValue", node.ConstantValue, null),
                new TreeDumperNode("inputType", node.InputType, null)
13983 13984 13985 13986 13987
            }
            );
        }
        public override TreeDumperNode VisitDiscardPattern(BoundDiscardPattern node, object arg)
        {
13988 13989 13990 13991
            return new TreeDumperNode("discardPattern", null, new TreeDumperNode[]
            {
                new TreeDumperNode("inputType", node.InputType, null)
            }
13992 13993
            );
        }
D
DotNet Bot 已提交
13994 13995 13996 13997 13998 13999 14000
        public override TreeDumperNode VisitDeclarationPattern(BoundDeclarationPattern node, object arg)
        {
            return new TreeDumperNode("declarationPattern", null, new TreeDumperNode[]
            {
                new TreeDumperNode("variable", node.Variable, null),
                new TreeDumperNode("variableAccess", null, new TreeDumperNode[] { Visit(node.VariableAccess, null) }),
                new TreeDumperNode("declaredType", null, new TreeDumperNode[] { Visit(node.DeclaredType, null) }),
14001 14002
                new TreeDumperNode("isVar", node.IsVar, null),
                new TreeDumperNode("inputType", node.InputType, null)
D
DotNet Bot 已提交
14003 14004 14005
            }
            );
        }
14006
        public override TreeDumperNode VisitRecursivePattern(BoundRecursivePattern node, object arg)
D
DotNet Bot 已提交
14007
        {
14008
            return new TreeDumperNode("recursivePattern", null, new TreeDumperNode[]
D
DotNet Bot 已提交
14009
            {
14010
                new TreeDumperNode("declaredType", null, new TreeDumperNode[] { Visit(node.DeclaredType, null) }),
14011
                new TreeDumperNode("deconstructMethod", node.DeconstructMethod, null),
14012
                new TreeDumperNode("deconstruction", null, node.Deconstruction.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Deconstruction select Visit(x, null)),
14013
                new TreeDumperNode("properties", null, node.Properties.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Properties select Visit(x, null)),
14014
                new TreeDumperNode("variable", node.Variable, null),
14015 14016
                new TreeDumperNode("variableAccess", null, new TreeDumperNode[] { Visit(node.VariableAccess, null) }),
                new TreeDumperNode("inputType", node.InputType, null)
D
DotNet Bot 已提交
14017 14018 14019
            }
            );
        }
14020
        public override TreeDumperNode VisitITuplePattern(BoundITuplePattern node, object arg)
D
DotNet Bot 已提交
14021
        {
14022 14023 14024 14025 14026 14027 14028 14029 14030
            return new TreeDumperNode("iTuplePattern", null, new TreeDumperNode[]
            {
                new TreeDumperNode("getLengthMethod", node.GetLengthMethod, null),
                new TreeDumperNode("getItemMethod", node.GetItemMethod, null),
                new TreeDumperNode("subpatterns", null, from x in node.Subpatterns select Visit(x, null)),
                new TreeDumperNode("inputType", node.InputType, null)
            }
            );
        }
14031 14032 14033 14034 14035 14036 14037
        public override TreeDumperNode VisitSubpattern(BoundSubpattern node, object arg)
        {
            return new TreeDumperNode("subpattern", null, new TreeDumperNode[]
            {
                new TreeDumperNode("symbol", node.Symbol, null),
                new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.Pattern, null) })
            }
D
DotNet Bot 已提交
14038 14039 14040 14041 14042 14043
            );
        }
        public override TreeDumperNode VisitDiscardExpression(BoundDiscardExpression node, object arg)
        {
            return new TreeDumperNode("discardExpression", null, new TreeDumperNode[]
            {
14044 14045
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
14046 14047 14048 14049 14050 14051 14052 14053
            }
            );
        }
        public override TreeDumperNode VisitThrowExpression(BoundThrowExpression node, object arg)
        {
            return new TreeDumperNode("throwExpression", null, new TreeDumperNode[]
            {
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
14054 14055
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
14056 14057 14058 14059 14060 14061 14062 14063 14064
            }
            );
        }
        public override TreeDumperNode VisitOutVariablePendingInference(OutVariablePendingInference node, object arg)
        {
            return new TreeDumperNode("outVariablePendingInference", null, new TreeDumperNode[]
            {
                new TreeDumperNode("variableSymbol", node.VariableSymbol, null),
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
14065 14066
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
14067 14068 14069 14070 14071 14072 14073 14074 14075
            }
            );
        }
        public override TreeDumperNode VisitDeconstructionVariablePendingInference(DeconstructionVariablePendingInference node, object arg)
        {
            return new TreeDumperNode("deconstructionVariablePendingInference", null, new TreeDumperNode[]
            {
                new TreeDumperNode("variableSymbol", node.VariableSymbol, null),
                new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
14076 14077
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
14078 14079 14080 14081 14082 14083 14084
            }
            );
        }
        public override TreeDumperNode VisitOutDeconstructVarPendingInference(OutDeconstructVarPendingInference node, object arg)
        {
            return new TreeDumperNode("outDeconstructVarPendingInference", null, new TreeDumperNode[]
            {
14085 14086
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
D
DotNet Bot 已提交
14087 14088 14089
            }
            );
        }
14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109
        public override TreeDumperNode VisitNonConstructorMethodBody(BoundNonConstructorMethodBody node, object arg)
        {
            return new TreeDumperNode("nonConstructorMethodBody", null, new TreeDumperNode[]
            {
                new TreeDumperNode("blockBody", null, new TreeDumperNode[] { Visit(node.BlockBody, null) }),
                new TreeDumperNode("expressionBody", null, new TreeDumperNode[] { Visit(node.ExpressionBody, null) })
            }
            );
        }
        public override TreeDumperNode VisitConstructorMethodBody(BoundConstructorMethodBody node, object arg)
        {
            return new TreeDumperNode("constructorMethodBody", null, new TreeDumperNode[]
            {
                new TreeDumperNode("locals", node.Locals, null),
                new TreeDumperNode("initializer", null, new TreeDumperNode[] { Visit(node.Initializer, null) }),
                new TreeDumperNode("blockBody", null, new TreeDumperNode[] { Visit(node.BlockBody, null) }),
                new TreeDumperNode("expressionBody", null, new TreeDumperNode[] { Visit(node.ExpressionBody, null) })
            }
            );
        }
14110
        public override TreeDumperNode VisitExpressionWithNullability(BoundExpressionWithNullability node, object arg)
14111
        {
14112
            return new TreeDumperNode("expressionWithNullability", null, new TreeDumperNode[]
14113
            {
14114
                new TreeDumperNode("expression", null, new TreeDumperNode[] { Visit(node.Expression, null) }),
14115
                new TreeDumperNode("nullableAnnotation", node.NullableAnnotation, null),
14116 14117
                new TreeDumperNode("type", node.Type, null),
                new TreeDumperNode("isSuppressed", node.IsSuppressed, null)
14118 14119 14120
            }
            );
        }
D
DotNet Bot 已提交
14121 14122
    }
}