Binder\Binder_Conversions.cs (8)
51return CreateConversion(syntax, source, conversion, isCast: isCast, conversionGroupOpt, inConversionGroupFlags, source.WasCompilerGenerated, destination, diagnostics);
903Debug.Assert(result.WasCompilerGenerated == _node.IsParamsArrayOrCollection);
2471{ WasCompilerGenerated = source.WasCompilerGenerated };
2624finalConversion.ResetCompilerGenerated(source.WasCompilerGenerated);
2665{ WasCompilerGenerated = source.WasCompilerGenerated };
2718{ WasCompilerGenerated = source.WasCompilerGenerated };
2743return new BoundConversion(syntax, group, conversion, @checked: false, explicitCastInCode: isCast, conversionGroup, inConversionGroupFlags, constantValueOpt: ConstantValue.NotAvailable, type: destination, hasErrors: hasErrors) { WasCompilerGenerated = group.WasCompilerGenerated };
3292if (!receiverOpt.WasCompilerGenerated) return false;
Binder\Binder_Expressions.cs (7)
2672return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
3012return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
3029return BindCastCore(node, underlyingExpr, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
3034var result = BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: bag2);
10476if (!gotError && receiver != null && receiver.Kind == BoundKind.ThisReference && receiver.WasCompilerGenerated)
11104case BoundThisReference { WasCompilerGenerated: true }:
11299case BoundThisReference { WasCompilerGenerated: true }:
Operations\CSharpOperationFactory.cs (137)
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;
1033bool isImplicit = boundConversion.WasCompilerGenerated || !boundConversion.ExplicitCastInCode || forceOperandImplicitLiteral;
1054_semanticModel, syntax, type, boundConversion.WasCompilerGenerated);
1162bool isImplicit = boundAsOperator.WasCompilerGenerated;
1171bool isImplicit = boundDelegateCreationExpression.WasCompilerGenerated;
1182bool isImplicit = boundMethodGroup.WasCompilerGenerated;
1194bool isImplicit = boundIsOperator.WasCompilerGenerated;
1205bool isImplicit = boundSizeOfOperator.WasCompilerGenerated;
1215bool isImplicit = boundTypeOfOperator.WasCompilerGenerated;
1225bool isImplicit = boundArrayCreation.WasCompilerGenerated ||
1226(boundArrayCreation.InitializerOpt?.Syntax == syntax && !boundArrayCreation.InitializerOpt.WasCompilerGenerated);
1234bool isImplicit = boundArrayInitialization.WasCompilerGenerated;
1247expr.WasCompilerGenerated);
1322bool isImplicit = element.WasCompilerGenerated;
1338bool isImplicit = boundDefaultLiteral.WasCompilerGenerated;
1347bool isImplicit = boundDefaultExpression.WasCompilerGenerated;
1356bool isImplicit = boundBaseReference.WasCompilerGenerated;
1365bool isImplicit = boundThisReference.WasCompilerGenerated;
1390bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1401bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1418bool isImplicit = boundCompoundAssignmentOperator.WasCompilerGenerated;
1445bool isImplicit = boundIncrementOperator.WasCompilerGenerated;
1458bool isImplicit = boundBadExpression.WasCompilerGenerated || boundBadExpression.ChildBoundNodes.Any(static (e, boundBadExpression) => e?.Syntax == boundBadExpression.Syntax, boundBadExpression);
1468bool isImplicit = boundNewT.WasCompilerGenerated;
1477bool isImplicit = creation.WasCompilerGenerated;
1491bool isImplicit = boundUnaryOperator.WasCompilerGenerated;
1546bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1569bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1609bool isImplicit = boundTupleBinaryOperator.WasCompilerGenerated;
1622bool isImplicit = boundConditionalOperator.WasCompilerGenerated;
1633bool isImplicit = boundNullCoalescingOperator.WasCompilerGenerated;
1651bool isImplicit = boundNode.WasCompilerGenerated;
1661bool isImplicit = boundAwaitExpression.WasCompilerGenerated;
1671bool isImplicit = boundArrayAccess.WasCompilerGenerated;
1682bool isImplicit = boundIndexerAccess.WasCompilerGenerated;
1704bool isImplicit = boundInlineArrayAccess.WasCompilerGenerated;
1715bool isImplicit = boundNameOfOperator.WasCompilerGenerated;
1724bool isImplicit = boundThrowExpression.WasCompilerGenerated;
1733bool isImplicit = boundAddressOfOperator.WasCompilerGenerated;
1742bool isImplicit = boundImplicitReceiver.WasCompilerGenerated;
1752bool isImplicit = boundConditionalAccess.WasCompilerGenerated;
1761bool isImplicit = boundConditionalReceiver.WasCompilerGenerated;
1770bool isImplicit = boundFieldEqualsValue.WasCompilerGenerated;
1779bool isImplicit = boundPropertyEqualsValue.WasCompilerGenerated;
1788bool isImplicit = boundParameterEqualsValue.WasCompilerGenerated;
1797bool isImplicit = boundBlock.WasCompilerGenerated;
1806bool isImplicit = boundContinueStatement.WasCompilerGenerated;
1815bool isImplicit = boundBreakStatement.WasCompilerGenerated;
1823bool isImplicit = boundYieldBreakStatement.WasCompilerGenerated;
1832bool isImplicit = boundGotoStatement.WasCompilerGenerated;
1839bool isImplicit = boundNoOpStatement.WasCompilerGenerated;
1875bool isImplicit = boundIfStatement.WasCompilerGenerated;
1895bool isImplicit = boundWhileStatement.WasCompilerGenerated;
1909bool isImplicit = boundDoStatement.WasCompilerGenerated;
1924bool isImplicit = boundForStatement.WasCompilerGenerated;
2031bool isImplicit = boundForEachStatement.WasCompilerGenerated;
2042bool isImplicit = boundTryStatement.WasCompilerGenerated;
2056bool isImplicit = boundCatchBlock.WasCompilerGenerated;
2066bool isImplicit = boundFixedStatement.WasCompilerGenerated;
2084bool isImplicit = boundUsingStatement.WasCompilerGenerated;
2093bool isImplicit = boundThrowStatement.WasCompilerGenerated;
2101bool isImplicit = boundReturnStatement.WasCompilerGenerated;
2109bool isImplicit = boundYieldReturnStatement.WasCompilerGenerated;
2125bool isImplicit = boundLockStatement.WasCompilerGenerated;
2135bool isImplicit = boundBadStatement.WasCompilerGenerated || boundBadStatement.ChildBoundNodes.Any(static (e, boundBadStatement) => e?.Syntax == boundBadStatement.Syntax, boundBadStatement);
2181bool multiVariableImplicit = boundLocalDeclaration.WasCompilerGenerated;
2187bool isImplicit = (varStatement == varDeclaration) || boundLocalDeclaration.WasCompilerGenerated;
2201bool declarationIsImplicit = boundMultipleLocalDeclarations.WasCompilerGenerated;
2209bool isImplicit = declarationGroupSyntax == declarationSyntax || boundMultipleLocalDeclarations.WasCompilerGenerated || boundMultipleLocalDeclarations is BoundUsingLocalDeclarations;
2224isImplicit: boundMultipleLocalDeclarations.WasCompilerGenerated);
2234bool isImplicit = boundLabelStatement.WasCompilerGenerated;
2243bool isImplicit = boundLabeledStatement.WasCompilerGenerated;
2252bool isImplicit = boundExpressionStatement.WasCompilerGenerated || boundExpressionStatement.Syntax == boundExpressionStatement.Expression.Syntax;
2270bool isImplicit = boundTupleExpression.WasCompilerGenerated;
2308bool isImplicit = boundInterpolatedString.WasCompilerGenerated;
2446bool isImplicit = boundStringInsert.WasCompilerGenerated;
2454bool isImplicit = boundNode.WasCompilerGenerated;
2465var isImplicit = conversion.WasCompilerGenerated || !conversion.ExplicitCastInCode;
2483return new InterpolatedStringAdditionOperation(left, right, _semanticModel, current.Syntax, current.WasCompilerGenerated);
2514isImplicit: interpolatedString.WasCompilerGenerated);
2553isImplicit: placeholder.WasCompilerGenerated);
2560bool isImplicit = boundConstantPattern.WasCompilerGenerated;
2571bool isImplicit = boundRelationalPattern.WasCompilerGenerated;
2590bool isImplicit = boundDeclarationPattern.WasCompilerGenerated;
2613isImplicit: boundRecursivePattern.WasCompilerGenerated);
2632isImplicit: boundITuplePattern.WasCompilerGenerated);
2643isImplicit: boundTypePattern.WasCompilerGenerated);
2656isImplicit: boundNode.WasCompilerGenerated);
2670isImplicit: boundNode.WasCompilerGenerated);
2681isImplicit: boundNegatedPattern.WasCompilerGenerated);
2721isImplicit: boundBinaryPattern.WasCompilerGenerated);
2732bool isImplicit = boundSwitchStatement.WasCompilerGenerated;
2742return new SwitchCaseOperation(clauses, body, locals, condition: null, _semanticModel, boundSwitchSection.Syntax, isImplicit: boundSwitchSection.WasCompilerGenerated);
2768boundSwitchExpression.WasCompilerGenerated);
2783boundSwitchExpressionArm.WasCompilerGenerated);
2789bool isImplicit = boundSwitchLabel.WasCompilerGenerated;
2818bool isImplicit = boundIsPatternExpression.WasCompilerGenerated;
2833bool isImplicit = boundQueryClause.WasCompilerGenerated;
2850isImplicit: boundNode.WasCompilerGenerated);
2866isImplicit: boundIndex.WasCompilerGenerated);
2880isImplicit: boundRange.WasCompilerGenerated);
2890isImplicit: boundNode.WasCompilerGenerated);
2977bool isImplicit = placeholder.WasCompilerGenerated;