Binder\Binder_Conversions.cs (10)
51return CreateConversion(syntax, source, conversion, isCast: isCast, conversionGroupOpt, inConversionGroupFlags, source.WasCompilerGenerated, destination, diagnostics);
961Debug.Assert(result.WasCompilerGenerated == _node.IsParamsArrayOrCollection);
2549{ WasCompilerGenerated = source.WasCompilerGenerated };
2703finalConversion.ResetCompilerGenerated(source.WasCompilerGenerated);
2740{ WasCompilerGenerated = source.WasCompilerGenerated };
2832finalConversion.ResetCompilerGenerated(source.WasCompilerGenerated);
2873{ WasCompilerGenerated = source.WasCompilerGenerated };
2926{ WasCompilerGenerated = source.WasCompilerGenerated };
2951return new BoundConversion(syntax, group, conversion, @checked: false, explicitCastInCode: isCast, conversionGroup, inConversionGroupFlags, constantValueOpt: ConstantValue.NotAvailable, type: destination, hasErrors: hasErrors) { WasCompilerGenerated = group.WasCompilerGenerated };
3502if (!receiverOpt.WasCompilerGenerated) return false;
Binder\Binder_Expressions.cs (7)
2676return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
3016return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
3033return BindCastCore(node, underlyingExpr, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
3038var result = BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: bag2);
11221if (!gotError && receiver != null && receiver.Kind == BoundKind.ThisReference && receiver.WasCompilerGenerated)
11835case BoundThisReference { WasCompilerGenerated: true }:
12030case BoundThisReference { WasCompilerGenerated: true }:
Operations\CSharpOperationFactory.cs (140)
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)
1067Debug.Assert(operandAsConversion.WasCompilerGenerated);
1068if (operandAsConversion.ExplicitCastInCode && (operandAsConversion.WasCompilerGenerated || boundConversion.Syntax != operandAsConversion.Syntax))
1098_semanticModel, syntax, type, boundConversion.WasCompilerGenerated);
1148else if (!boundOperand.WasCompilerGenerated)
1206bool isImplicit = boundAsOperator.WasCompilerGenerated;
1215bool isImplicit = boundDelegateCreationExpression.WasCompilerGenerated;
1226bool isImplicit = boundMethodGroup.WasCompilerGenerated;
1238bool isImplicit = boundIsOperator.WasCompilerGenerated;
1249bool isImplicit = boundSizeOfOperator.WasCompilerGenerated;
1259bool isImplicit = boundTypeOfOperator.WasCompilerGenerated;
1269bool isImplicit = boundArrayCreation.WasCompilerGenerated ||
1270(boundArrayCreation.InitializerOpt?.Syntax == syntax && !boundArrayCreation.InitializerOpt.WasCompilerGenerated);
1278bool isImplicit = boundArrayInitialization.WasCompilerGenerated;
1291expr.WasCompilerGenerated);
1366bool isImplicit = element.WasCompilerGenerated;
1382bool isImplicit = boundDefaultLiteral.WasCompilerGenerated;
1391bool isImplicit = boundDefaultExpression.WasCompilerGenerated;
1400bool isImplicit = boundBaseReference.WasCompilerGenerated;
1409bool isImplicit = boundThisReference.WasCompilerGenerated;
1434bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1445bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1462bool isImplicit = boundCompoundAssignmentOperator.WasCompilerGenerated;
1489bool isImplicit = boundIncrementOperator.WasCompilerGenerated;
1502bool isImplicit = boundBadExpression.WasCompilerGenerated || boundBadExpression.ChildBoundNodes.Any(static (e, boundBadExpression) => e?.Syntax == boundBadExpression.Syntax, boundBadExpression);
1512bool isImplicit = boundNewT.WasCompilerGenerated;
1521bool isImplicit = creation.WasCompilerGenerated;
1535bool isImplicit = boundUnaryOperator.WasCompilerGenerated;
1590bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1613bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1653bool isImplicit = boundTupleBinaryOperator.WasCompilerGenerated;
1666bool isImplicit = boundConditionalOperator.WasCompilerGenerated;
1677bool isImplicit = boundNullCoalescingOperator.WasCompilerGenerated;
1695bool isImplicit = boundNode.WasCompilerGenerated;
1705bool isImplicit = boundAwaitExpression.WasCompilerGenerated;
1715bool isImplicit = boundArrayAccess.WasCompilerGenerated;
1726bool isImplicit = boundIndexerAccess.WasCompilerGenerated;
1748bool isImplicit = boundInlineArrayAccess.WasCompilerGenerated;
1759bool isImplicit = boundNameOfOperator.WasCompilerGenerated;
1768bool isImplicit = boundThrowExpression.WasCompilerGenerated;
1777bool isImplicit = boundAddressOfOperator.WasCompilerGenerated;
1786bool isImplicit = boundImplicitReceiver.WasCompilerGenerated;
1796bool isImplicit = boundConditionalAccess.WasCompilerGenerated;
1805bool isImplicit = boundConditionalReceiver.WasCompilerGenerated;
1814bool isImplicit = boundFieldEqualsValue.WasCompilerGenerated;
1823bool isImplicit = boundPropertyEqualsValue.WasCompilerGenerated;
1832bool isImplicit = boundParameterEqualsValue.WasCompilerGenerated;
1841bool isImplicit = boundBlock.WasCompilerGenerated;
1850bool isImplicit = boundContinueStatement.WasCompilerGenerated;
1859bool isImplicit = boundBreakStatement.WasCompilerGenerated;
1867bool isImplicit = boundYieldBreakStatement.WasCompilerGenerated;
1876bool isImplicit = boundGotoStatement.WasCompilerGenerated;
1883bool isImplicit = boundNoOpStatement.WasCompilerGenerated;
1919bool isImplicit = boundIfStatement.WasCompilerGenerated;
1939bool isImplicit = boundWhileStatement.WasCompilerGenerated;
1953bool isImplicit = boundDoStatement.WasCompilerGenerated;
1968bool isImplicit = boundForStatement.WasCompilerGenerated;
2075bool isImplicit = boundForEachStatement.WasCompilerGenerated;
2086bool isImplicit = boundTryStatement.WasCompilerGenerated;
2100bool isImplicit = boundCatchBlock.WasCompilerGenerated;
2110bool isImplicit = boundFixedStatement.WasCompilerGenerated;
2128bool isImplicit = boundUsingStatement.WasCompilerGenerated;
2137bool isImplicit = boundThrowStatement.WasCompilerGenerated;
2145bool isImplicit = boundReturnStatement.WasCompilerGenerated;
2153bool isImplicit = boundYieldReturnStatement.WasCompilerGenerated;
2169bool isImplicit = boundLockStatement.WasCompilerGenerated;
2179bool isImplicit = boundBadStatement.WasCompilerGenerated || boundBadStatement.ChildBoundNodes.Any(static (e, boundBadStatement) => e?.Syntax == boundBadStatement.Syntax, boundBadStatement);
2225bool multiVariableImplicit = boundLocalDeclaration.WasCompilerGenerated;
2231bool isImplicit = (varStatement == varDeclaration) || boundLocalDeclaration.WasCompilerGenerated;
2245bool declarationIsImplicit = boundMultipleLocalDeclarations.WasCompilerGenerated;
2253bool isImplicit = declarationGroupSyntax == declarationSyntax || boundMultipleLocalDeclarations.WasCompilerGenerated || boundMultipleLocalDeclarations is BoundUsingLocalDeclarations;
2268isImplicit: boundMultipleLocalDeclarations.WasCompilerGenerated);
2278bool isImplicit = boundLabelStatement.WasCompilerGenerated;
2287bool isImplicit = boundLabeledStatement.WasCompilerGenerated;
2296bool isImplicit = boundExpressionStatement.WasCompilerGenerated || boundExpressionStatement.Syntax == boundExpressionStatement.Expression.Syntax;
2314bool isImplicit = boundTupleExpression.WasCompilerGenerated;
2352bool isImplicit = boundInterpolatedString.WasCompilerGenerated;
2490bool isImplicit = boundStringInsert.WasCompilerGenerated;
2498bool isImplicit = boundNode.WasCompilerGenerated;
2509var isImplicit = conversion.WasCompilerGenerated || !conversion.ExplicitCastInCode;
2527return new InterpolatedStringAdditionOperation(left, right, _semanticModel, current.Syntax, current.WasCompilerGenerated);
2558isImplicit: interpolatedString.WasCompilerGenerated);
2597isImplicit: placeholder.WasCompilerGenerated);
2604bool isImplicit = boundConstantPattern.WasCompilerGenerated;
2615bool isImplicit = boundRelationalPattern.WasCompilerGenerated;
2634bool isImplicit = boundDeclarationPattern.WasCompilerGenerated;
2657isImplicit: boundRecursivePattern.WasCompilerGenerated);
2676isImplicit: boundITuplePattern.WasCompilerGenerated);
2687isImplicit: boundTypePattern.WasCompilerGenerated);
2700isImplicit: boundNode.WasCompilerGenerated);
2714isImplicit: boundNode.WasCompilerGenerated);
2725isImplicit: boundNegatedPattern.WasCompilerGenerated);
2765isImplicit: boundBinaryPattern.WasCompilerGenerated);
2776bool isImplicit = boundSwitchStatement.WasCompilerGenerated;
2786return new SwitchCaseOperation(clauses, body, locals, condition: null, _semanticModel, boundSwitchSection.Syntax, isImplicit: boundSwitchSection.WasCompilerGenerated);
2812boundSwitchExpression.WasCompilerGenerated);
2827boundSwitchExpressionArm.WasCompilerGenerated);
2833bool isImplicit = boundSwitchLabel.WasCompilerGenerated;
2862bool isImplicit = boundIsPatternExpression.WasCompilerGenerated;
2877bool isImplicit = boundQueryClause.WasCompilerGenerated;
2894isImplicit: boundNode.WasCompilerGenerated);
2910isImplicit: boundIndex.WasCompilerGenerated);
2924isImplicit: boundRange.WasCompilerGenerated);
2934isImplicit: boundNode.WasCompilerGenerated);
3021bool isImplicit = placeholder.WasCompilerGenerated;