Binder\Binder_Conversions.cs (7)
48return CreateConversion(syntax, source, conversion, isCast: isCast, conversionGroupOpt, source.WasCompilerGenerated, destination, diagnostics);
506{ WasCompilerGenerated = source.WasCompilerGenerated };
640finalConversion.ResetCompilerGenerated(source.WasCompilerGenerated);
672expr = new BoundConversion(syntax, source, conversion, @checked: false, explicitCastInCode: isCast, conversionGroup, constantValueOpt: ConstantValue.NotAvailable, type: delegateType, hasErrors: true) { WasCompilerGenerated = source.WasCompilerGenerated };
717{ WasCompilerGenerated = source.WasCompilerGenerated };
736return new BoundConversion(syntax, group, conversion, @checked: false, explicitCastInCode: isCast, conversionGroup, constantValueOpt: ConstantValue.NotAvailable, type: destination, hasErrors: hasErrors) { WasCompilerGenerated = group.WasCompilerGenerated };
1259if (!receiverOpt.WasCompilerGenerated) return false;
Binder\Binder_Expressions.cs (6)
2339return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
2674return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
2690return BindCastCore(node, underlyingExpr, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
2695var result = BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: bag2);
8493if (!gotError && receiver != null && receiver.Kind == BoundKind.ThisReference && receiver.WasCompilerGenerated)
9120case BoundThisReference { WasCompilerGenerated: true }:
Operations\CSharpOperationFactory.cs (133)
305bool isImplicit = boundNode.WasCompilerGenerated;
355isImplicit: boundNode.WasCompilerGenerated);
367isImplicit: boundNode.WasCompilerGenerated);
421bool isImplicit = boundDeconstructValuePlaceholder.WasCompilerGenerated;
433bool isImplicit = boundDeconstructionAssignmentOperator.WasCompilerGenerated;
443bool isImplicit = boundCall.WasCompilerGenerated;
473bool isImplicit = boundFunctionPointerInvocation.WasCompilerGenerated;
493boundUnconvertedAddressOf.WasCompilerGenerated);
498var isAttributeImplicit = boundAttribute.WasCompilerGenerated;
556bool isImplicit = boundLocal.WasCompilerGenerated;
576bool isImplicit = boundFieldAccess.WasCompilerGenerated;
616bool isImplicit = boundPropertyAccess.WasCompilerGenerated;
626bool isImplicit = boundIndexerAccess.WasCompilerGenerated;
646bool isImplicit = boundEventAccess.WasCompilerGenerated;
658bool isImplicit = boundEventAssignmentOperator.WasCompilerGenerated;
667bool isImplicit = boundParameter.WasCompilerGenerated;
676bool isImplicit = boundLiteral.WasCompilerGenerated || @implicit;
684bool isImplicit = boundNode.WasCompilerGenerated;
693bool isImplicit = boundAnonymousObjectCreationExpression.WasCompilerGenerated;
704bool isImplicit = boundObjectCreationExpression.WasCompilerGenerated;
740bool isImplicit = boundWithExpression.WasCompilerGenerated;
752bool isImplicit = boundDynamicObjectCreationExpression.WasCompilerGenerated;
766methodGroup.Syntax, methodGroup.GetPublicTypeSymbol(), methodGroup.WasCompilerGenerated);
781bool isImplicit = boundDynamicInvocation.WasCompilerGenerated;
823bool isImplicit = boundDynamicIndexerAccess.WasCompilerGenerated;
832bool isImplicit = boundObjectInitializerExpression.WasCompilerGenerated;
841bool isImplicit = boundCollectionInitializerExpression.WasCompilerGenerated;
850bool isImplicit = boundObjectInitializerMember.WasCompilerGenerated;
912bool isImplicit = boundDynamicObjectInitializerMember.WasCompilerGenerated;
925bool isImplicit = boundCollectionElementInitializer.WasCompilerGenerated;
940boundDynamicMemberAccess.Syntax, boundDynamicMemberAccess.GetPublicTypeSymbol(), boundDynamicMemberAccess.WasCompilerGenerated);
974bool isImplicit = boundCollectionElementInitializer.WasCompilerGenerated;
993bool isImplicit = boundLambda.WasCompilerGenerated;
1005bool isImplicit = boundLocalFunctionStatement.WasCompilerGenerated;
1012bool isImplicit = boundConversion.WasCompilerGenerated || !boundConversion.ExplicitCastInCode || forceOperandImplicitLiteral;
1033_semanticModel, syntax, type, boundConversion.WasCompilerGenerated);
1141bool isImplicit = boundAsOperator.WasCompilerGenerated;
1150bool isImplicit = boundDelegateCreationExpression.WasCompilerGenerated;
1161bool isImplicit = boundMethodGroup.WasCompilerGenerated;
1173bool isImplicit = boundIsOperator.WasCompilerGenerated;
1184bool isImplicit = boundSizeOfOperator.WasCompilerGenerated;
1194bool isImplicit = boundTypeOfOperator.WasCompilerGenerated;
1204bool isImplicit = boundArrayCreation.WasCompilerGenerated ||
1205(boundArrayCreation.InitializerOpt?.Syntax == syntax && !boundArrayCreation.InitializerOpt.WasCompilerGenerated);
1213bool isImplicit = boundArrayInitialization.WasCompilerGenerated;
1221bool isImplicit = boundDefaultLiteral.WasCompilerGenerated;
1230bool isImplicit = boundDefaultExpression.WasCompilerGenerated;
1239bool isImplicit = boundBaseReference.WasCompilerGenerated;
1248bool isImplicit = boundThisReference.WasCompilerGenerated;
1273bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1284bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1301bool isImplicit = boundCompoundAssignmentOperator.WasCompilerGenerated;
1328bool isImplicit = boundIncrementOperator.WasCompilerGenerated;
1341bool isImplicit = boundBadExpression.WasCompilerGenerated || boundBadExpression.ChildBoundNodes.Any(static (e, boundBadExpression) => e?.Syntax == boundBadExpression.Syntax, boundBadExpression);
1351bool isImplicit = boundNewT.WasCompilerGenerated;
1360bool isImplicit = creation.WasCompilerGenerated;
1374bool isImplicit = boundUnaryOperator.WasCompilerGenerated;
1429bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1461bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1501bool isImplicit = boundTupleBinaryOperator.WasCompilerGenerated;
1514bool isImplicit = boundConditionalOperator.WasCompilerGenerated;
1525bool isImplicit = boundNullCoalescingOperator.WasCompilerGenerated;
1543bool isImplicit = boundNode.WasCompilerGenerated;
1553bool isImplicit = boundAwaitExpression.WasCompilerGenerated;
1563bool isImplicit = boundArrayAccess.WasCompilerGenerated;
1574bool isImplicit = boundIndexerAccess.WasCompilerGenerated;
1596bool isImplicit = boundNameOfOperator.WasCompilerGenerated;
1605bool isImplicit = boundThrowExpression.WasCompilerGenerated;
1614bool isImplicit = boundAddressOfOperator.WasCompilerGenerated;
1623bool isImplicit = boundImplicitReceiver.WasCompilerGenerated;
1633bool isImplicit = boundConditionalAccess.WasCompilerGenerated;
1642bool isImplicit = boundConditionalReceiver.WasCompilerGenerated;
1651bool isImplicit = boundFieldEqualsValue.WasCompilerGenerated;
1660bool isImplicit = boundPropertyEqualsValue.WasCompilerGenerated;
1669bool isImplicit = boundParameterEqualsValue.WasCompilerGenerated;
1678bool isImplicit = boundBlock.WasCompilerGenerated;
1687bool isImplicit = boundContinueStatement.WasCompilerGenerated;
1696bool isImplicit = boundBreakStatement.WasCompilerGenerated;
1704bool isImplicit = boundYieldBreakStatement.WasCompilerGenerated;
1713bool isImplicit = boundGotoStatement.WasCompilerGenerated;
1720bool isImplicit = boundNoOpStatement.WasCompilerGenerated;
1733bool isImplicit = boundIfStatement.WasCompilerGenerated;
1747bool isImplicit = boundWhileStatement.WasCompilerGenerated;
1761bool isImplicit = boundDoStatement.WasCompilerGenerated;
1776bool isImplicit = boundForStatement.WasCompilerGenerated;
1879bool isImplicit = boundForEachStatement.WasCompilerGenerated;
1890bool isImplicit = boundTryStatement.WasCompilerGenerated;
1904bool isImplicit = boundCatchBlock.WasCompilerGenerated;
1914bool isImplicit = boundFixedStatement.WasCompilerGenerated;
1932bool isImplicit = boundUsingStatement.WasCompilerGenerated;
1941bool isImplicit = boundThrowStatement.WasCompilerGenerated;
1949bool isImplicit = boundReturnStatement.WasCompilerGenerated;
1957bool isImplicit = boundYieldReturnStatement.WasCompilerGenerated;
1973bool isImplicit = boundLockStatement.WasCompilerGenerated;
1983bool isImplicit = boundBadStatement.WasCompilerGenerated || boundBadStatement.ChildBoundNodes.Any(static (e, boundBadStatement) => e?.Syntax == boundBadStatement.Syntax, boundBadStatement);
2029bool multiVariableImplicit = boundLocalDeclaration.WasCompilerGenerated;
2035bool isImplicit = (varStatement == varDeclaration) || boundLocalDeclaration.WasCompilerGenerated;
2049bool declarationIsImplicit = boundMultipleLocalDeclarations.WasCompilerGenerated;
2057bool isImplicit = declarationGroupSyntax == declarationSyntax || boundMultipleLocalDeclarations.WasCompilerGenerated || boundMultipleLocalDeclarations is BoundUsingLocalDeclarations;
2072isImplicit: boundMultipleLocalDeclarations.WasCompilerGenerated);
2082bool isImplicit = boundLabelStatement.WasCompilerGenerated;
2091bool isImplicit = boundLabeledStatement.WasCompilerGenerated;
2100bool isImplicit = boundExpressionStatement.WasCompilerGenerated || boundExpressionStatement.Syntax == boundExpressionStatement.Expression.Syntax;
2118bool isImplicit = boundTupleExpression.WasCompilerGenerated;
2150bool isImplicit = boundInterpolatedString.WasCompilerGenerated;
2288bool isImplicit = boundStringInsert.WasCompilerGenerated;
2296bool isImplicit = boundNode.WasCompilerGenerated;
2307var isImplicit = conversion.WasCompilerGenerated || !conversion.ExplicitCastInCode;
2325return new InterpolatedStringAdditionOperation(left, right, _semanticModel, current.Syntax, current.WasCompilerGenerated);
2356isImplicit: interpolatedString.WasCompilerGenerated);
2395isImplicit: placeholder.WasCompilerGenerated);
2402bool isImplicit = boundConstantPattern.WasCompilerGenerated;
2413bool isImplicit = boundRelationalPattern.WasCompilerGenerated;
2432bool isImplicit = boundDeclarationPattern.WasCompilerGenerated;
2455isImplicit: boundRecursivePattern.WasCompilerGenerated);
2474isImplicit: boundITuplePattern.WasCompilerGenerated);
2485isImplicit: boundTypePattern.WasCompilerGenerated);
2498isImplicit: boundNode.WasCompilerGenerated);
2512isImplicit: boundNode.WasCompilerGenerated);
2523isImplicit: boundNegatedPattern.WasCompilerGenerated);
2536isImplicit: boundBinaryPattern.WasCompilerGenerated);
2546bool isImplicit = boundSwitchStatement.WasCompilerGenerated;
2556return new SwitchCaseOperation(clauses, body, locals, condition: null, _semanticModel, boundSwitchSection.Syntax, isImplicit: boundSwitchSection.WasCompilerGenerated);
2582boundSwitchExpression.WasCompilerGenerated);
2597boundSwitchExpressionArm.WasCompilerGenerated);
2603bool isImplicit = boundSwitchLabel.WasCompilerGenerated;
2632bool isImplicit = boundIsPatternExpression.WasCompilerGenerated;
2647bool isImplicit = boundQueryClause.WasCompilerGenerated;
2664isImplicit: boundNode.WasCompilerGenerated);
2680isImplicit: boundIndex.WasCompilerGenerated);
2694isImplicit: boundRange.WasCompilerGenerated);
2704isImplicit: boundNode.WasCompilerGenerated);
2791bool isImplicit = placeholder.WasCompilerGenerated;