Binder\Binder_Conversions.cs (9)
51return CreateConversion(syntax, source, conversion, isCast: isCast, conversionGroupOpt, inConversionGroupFlags, source.WasCompilerGenerated, destination, diagnostics);
953Debug.Assert(result.WasCompilerGenerated == _node.IsParamsArrayOrCollection);
2524{ WasCompilerGenerated = source.WasCompilerGenerated };
2677finalConversion.ResetCompilerGenerated(source.WasCompilerGenerated);
2754finalConversion.ResetCompilerGenerated(source.WasCompilerGenerated);
2795{ WasCompilerGenerated = source.WasCompilerGenerated };
2848{ WasCompilerGenerated = source.WasCompilerGenerated };
2873return new BoundConversion(syntax, group, conversion, @checked: false, explicitCastInCode: isCast, conversionGroup, inConversionGroupFlags, constantValueOpt: ConstantValue.NotAvailable, type: destination, hasErrors: hasErrors) { WasCompilerGenerated = group.WasCompilerGenerated };
3431if (!receiverOpt.WasCompilerGenerated) return false;
Binder\Binder_Expressions.cs (7)
2673return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
3013return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
3030return BindCastCore(node, underlyingExpr, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
3035var result = BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: bag2);
10507if (!gotError && receiver != null && receiver.Kind == BoundKind.ThisReference && receiver.WasCompilerGenerated)
11135case BoundThisReference { WasCompilerGenerated: true }:
11330case BoundThisReference { WasCompilerGenerated: true }:
Operations\CSharpOperationFactory.cs (138)
307bool isImplicit = boundNode.WasCompilerGenerated;
332}, boundNode.WasCompilerGenerated);
365isImplicit: boundNode.WasCompilerGenerated);
377isImplicit: boundNode.WasCompilerGenerated);
431bool isImplicit = boundDeconstructValuePlaceholder.WasCompilerGenerated;
443bool isImplicit = boundDeconstructionAssignmentOperator.WasCompilerGenerated;
453bool isImplicit = boundCall.WasCompilerGenerated;
483bool isImplicit = boundFunctionPointerInvocation.WasCompilerGenerated;
503boundUnconvertedAddressOf.WasCompilerGenerated);
508var isAttributeImplicit = boundAttribute.WasCompilerGenerated;
566bool isImplicit = boundLocal.WasCompilerGenerated;
586bool isImplicit = boundFieldAccess.WasCompilerGenerated;
626bool isImplicit = boundPropertyAccess.WasCompilerGenerated;
636bool isImplicit = boundIndexerAccess.WasCompilerGenerated;
656bool isImplicit = boundEventAccess.WasCompilerGenerated;
668bool isImplicit = boundEventAssignmentOperator.WasCompilerGenerated;
677bool isImplicit = boundParameter.WasCompilerGenerated;
686bool isImplicit = boundLiteral.WasCompilerGenerated || @implicit;
694bool isImplicit = boundNode.WasCompilerGenerated;
703bool isImplicit = boundAnonymousObjectCreationExpression.WasCompilerGenerated;
716bool isImplicit = boundObjectCreationExpression.WasCompilerGenerated;
758bool isImplicit = boundWithExpression.WasCompilerGenerated;
770bool isImplicit = boundDynamicObjectCreationExpression.WasCompilerGenerated;
784methodGroup.Syntax, methodGroup.GetPublicTypeSymbol(), methodGroup.WasCompilerGenerated);
799bool isImplicit = boundDynamicInvocation.WasCompilerGenerated;
842bool isImplicit = boundDynamicIndexerAccess.WasCompilerGenerated;
851bool isImplicit = boundObjectInitializerExpression.WasCompilerGenerated;
860bool isImplicit = boundCollectionInitializerExpression.WasCompilerGenerated;
869bool isImplicit = boundObjectInitializerMember.WasCompilerGenerated;
933bool isImplicit = boundDynamicObjectInitializerMember.WasCompilerGenerated;
946bool isImplicit = boundCollectionElementInitializer.WasCompilerGenerated;
961boundDynamicMemberAccess.Syntax, boundDynamicMemberAccess.GetPublicTypeSymbol(), boundDynamicMemberAccess.WasCompilerGenerated);
995bool isImplicit = boundCollectionElementInitializer.WasCompilerGenerated;
1014bool isImplicit = boundLambda.WasCompilerGenerated;
1026bool isImplicit = boundLocalFunctionStatement.WasCompilerGenerated;
1037if (boundConversion.WasCompilerGenerated || forceOperandImplicitLiteral)
1079_semanticModel, syntax, type, boundConversion.WasCompilerGenerated);
1129else if (!boundOperand.WasCompilerGenerated)
1187bool isImplicit = boundAsOperator.WasCompilerGenerated;
1196bool isImplicit = boundDelegateCreationExpression.WasCompilerGenerated;
1207bool isImplicit = boundMethodGroup.WasCompilerGenerated;
1219bool isImplicit = boundIsOperator.WasCompilerGenerated;
1230bool isImplicit = boundSizeOfOperator.WasCompilerGenerated;
1240bool isImplicit = boundTypeOfOperator.WasCompilerGenerated;
1250bool isImplicit = boundArrayCreation.WasCompilerGenerated ||
1251(boundArrayCreation.InitializerOpt?.Syntax == syntax && !boundArrayCreation.InitializerOpt.WasCompilerGenerated);
1259bool isImplicit = boundArrayInitialization.WasCompilerGenerated;
1272expr.WasCompilerGenerated);
1347bool isImplicit = element.WasCompilerGenerated;
1363bool isImplicit = boundDefaultLiteral.WasCompilerGenerated;
1372bool isImplicit = boundDefaultExpression.WasCompilerGenerated;
1381bool isImplicit = boundBaseReference.WasCompilerGenerated;
1390bool isImplicit = boundThisReference.WasCompilerGenerated;
1415bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1426bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1443bool isImplicit = boundCompoundAssignmentOperator.WasCompilerGenerated;
1470bool isImplicit = boundIncrementOperator.WasCompilerGenerated;
1483bool isImplicit = boundBadExpression.WasCompilerGenerated || boundBadExpression.ChildBoundNodes.Any(static (e, boundBadExpression) => e?.Syntax == boundBadExpression.Syntax, boundBadExpression);
1493bool isImplicit = boundNewT.WasCompilerGenerated;
1502bool isImplicit = creation.WasCompilerGenerated;
1516bool isImplicit = boundUnaryOperator.WasCompilerGenerated;
1571bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1594bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1634bool isImplicit = boundTupleBinaryOperator.WasCompilerGenerated;
1647bool isImplicit = boundConditionalOperator.WasCompilerGenerated;
1658bool isImplicit = boundNullCoalescingOperator.WasCompilerGenerated;
1676bool isImplicit = boundNode.WasCompilerGenerated;
1686bool isImplicit = boundAwaitExpression.WasCompilerGenerated;
1696bool isImplicit = boundArrayAccess.WasCompilerGenerated;
1707bool isImplicit = boundIndexerAccess.WasCompilerGenerated;
1729bool isImplicit = boundInlineArrayAccess.WasCompilerGenerated;
1740bool isImplicit = boundNameOfOperator.WasCompilerGenerated;
1749bool isImplicit = boundThrowExpression.WasCompilerGenerated;
1758bool isImplicit = boundAddressOfOperator.WasCompilerGenerated;
1767bool isImplicit = boundImplicitReceiver.WasCompilerGenerated;
1777bool isImplicit = boundConditionalAccess.WasCompilerGenerated;
1786bool isImplicit = boundConditionalReceiver.WasCompilerGenerated;
1795bool isImplicit = boundFieldEqualsValue.WasCompilerGenerated;
1804bool isImplicit = boundPropertyEqualsValue.WasCompilerGenerated;
1813bool isImplicit = boundParameterEqualsValue.WasCompilerGenerated;
1822bool isImplicit = boundBlock.WasCompilerGenerated;
1831bool isImplicit = boundContinueStatement.WasCompilerGenerated;
1840bool isImplicit = boundBreakStatement.WasCompilerGenerated;
1848bool isImplicit = boundYieldBreakStatement.WasCompilerGenerated;
1857bool isImplicit = boundGotoStatement.WasCompilerGenerated;
1864bool isImplicit = boundNoOpStatement.WasCompilerGenerated;
1900bool isImplicit = boundIfStatement.WasCompilerGenerated;
1920bool isImplicit = boundWhileStatement.WasCompilerGenerated;
1934bool isImplicit = boundDoStatement.WasCompilerGenerated;
1949bool isImplicit = boundForStatement.WasCompilerGenerated;
2056bool isImplicit = boundForEachStatement.WasCompilerGenerated;
2067bool isImplicit = boundTryStatement.WasCompilerGenerated;
2081bool isImplicit = boundCatchBlock.WasCompilerGenerated;
2091bool isImplicit = boundFixedStatement.WasCompilerGenerated;
2109bool isImplicit = boundUsingStatement.WasCompilerGenerated;
2118bool isImplicit = boundThrowStatement.WasCompilerGenerated;
2126bool isImplicit = boundReturnStatement.WasCompilerGenerated;
2134bool isImplicit = boundYieldReturnStatement.WasCompilerGenerated;
2150bool isImplicit = boundLockStatement.WasCompilerGenerated;
2160bool isImplicit = boundBadStatement.WasCompilerGenerated || boundBadStatement.ChildBoundNodes.Any(static (e, boundBadStatement) => e?.Syntax == boundBadStatement.Syntax, boundBadStatement);
2206bool multiVariableImplicit = boundLocalDeclaration.WasCompilerGenerated;
2212bool isImplicit = (varStatement == varDeclaration) || boundLocalDeclaration.WasCompilerGenerated;
2226bool declarationIsImplicit = boundMultipleLocalDeclarations.WasCompilerGenerated;
2234bool isImplicit = declarationGroupSyntax == declarationSyntax || boundMultipleLocalDeclarations.WasCompilerGenerated || boundMultipleLocalDeclarations is BoundUsingLocalDeclarations;
2249isImplicit: boundMultipleLocalDeclarations.WasCompilerGenerated);
2259bool isImplicit = boundLabelStatement.WasCompilerGenerated;
2268bool isImplicit = boundLabeledStatement.WasCompilerGenerated;
2277bool isImplicit = boundExpressionStatement.WasCompilerGenerated || boundExpressionStatement.Syntax == boundExpressionStatement.Expression.Syntax;
2295bool isImplicit = boundTupleExpression.WasCompilerGenerated;
2333bool isImplicit = boundInterpolatedString.WasCompilerGenerated;
2471bool isImplicit = boundStringInsert.WasCompilerGenerated;
2479bool isImplicit = boundNode.WasCompilerGenerated;
2490var isImplicit = conversion.WasCompilerGenerated || !conversion.ExplicitCastInCode;
2508return new InterpolatedStringAdditionOperation(left, right, _semanticModel, current.Syntax, current.WasCompilerGenerated);
2539isImplicit: interpolatedString.WasCompilerGenerated);
2578isImplicit: placeholder.WasCompilerGenerated);
2585bool isImplicit = boundConstantPattern.WasCompilerGenerated;
2596bool isImplicit = boundRelationalPattern.WasCompilerGenerated;
2615bool isImplicit = boundDeclarationPattern.WasCompilerGenerated;
2638isImplicit: boundRecursivePattern.WasCompilerGenerated);
2657isImplicit: boundITuplePattern.WasCompilerGenerated);
2668isImplicit: boundTypePattern.WasCompilerGenerated);
2681isImplicit: boundNode.WasCompilerGenerated);
2695isImplicit: boundNode.WasCompilerGenerated);
2706isImplicit: boundNegatedPattern.WasCompilerGenerated);
2746isImplicit: boundBinaryPattern.WasCompilerGenerated);
2757bool isImplicit = boundSwitchStatement.WasCompilerGenerated;
2767return new SwitchCaseOperation(clauses, body, locals, condition: null, _semanticModel, boundSwitchSection.Syntax, isImplicit: boundSwitchSection.WasCompilerGenerated);
2793boundSwitchExpression.WasCompilerGenerated);
2808boundSwitchExpressionArm.WasCompilerGenerated);
2814bool isImplicit = boundSwitchLabel.WasCompilerGenerated;
2843bool isImplicit = boundIsPatternExpression.WasCompilerGenerated;
2858bool isImplicit = boundQueryClause.WasCompilerGenerated;
2875isImplicit: boundNode.WasCompilerGenerated);
2891isImplicit: boundIndex.WasCompilerGenerated);
2905isImplicit: boundRange.WasCompilerGenerated);
2915isImplicit: boundNode.WasCompilerGenerated);
3002bool isImplicit = placeholder.WasCompilerGenerated;