Binder\Binder_Expressions.cs (7)
2552return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
2892return BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
2909return BindCastCore(node, underlyingExpr, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: diagnostics);
2914var result = BindCastCore(node, operand, targetTypeWithAnnotations, wasCompilerGenerated: operand.WasCompilerGenerated, diagnostics: bag2);
9853if (!gotError && receiver != null && receiver.Kind == BoundKind.ThisReference && receiver.WasCompilerGenerated)
10492case BoundThisReference { WasCompilerGenerated: true }:
10637case BoundThisReference { WasCompilerGenerated: true }:
Operations\CSharpOperationFactory.cs (136)
308bool isImplicit = boundNode.WasCompilerGenerated;
358isImplicit: boundNode.WasCompilerGenerated);
370isImplicit: boundNode.WasCompilerGenerated);
424bool isImplicit = boundDeconstructValuePlaceholder.WasCompilerGenerated;
436bool isImplicit = boundDeconstructionAssignmentOperator.WasCompilerGenerated;
446bool isImplicit = boundCall.WasCompilerGenerated;
476bool isImplicit = boundFunctionPointerInvocation.WasCompilerGenerated;
496boundUnconvertedAddressOf.WasCompilerGenerated);
501var isAttributeImplicit = boundAttribute.WasCompilerGenerated;
559bool isImplicit = boundLocal.WasCompilerGenerated;
579bool isImplicit = boundFieldAccess.WasCompilerGenerated;
619bool isImplicit = boundPropertyAccess.WasCompilerGenerated;
629bool isImplicit = boundIndexerAccess.WasCompilerGenerated;
649bool isImplicit = boundEventAccess.WasCompilerGenerated;
661bool isImplicit = boundEventAssignmentOperator.WasCompilerGenerated;
670bool isImplicit = boundParameter.WasCompilerGenerated;
679bool isImplicit = boundLiteral.WasCompilerGenerated || @implicit;
687bool isImplicit = boundNode.WasCompilerGenerated;
696bool isImplicit = boundAnonymousObjectCreationExpression.WasCompilerGenerated;
707bool isImplicit = boundObjectCreationExpression.WasCompilerGenerated;
743bool isImplicit = boundWithExpression.WasCompilerGenerated;
755bool isImplicit = boundDynamicObjectCreationExpression.WasCompilerGenerated;
769methodGroup.Syntax, methodGroup.GetPublicTypeSymbol(), methodGroup.WasCompilerGenerated);
784bool isImplicit = boundDynamicInvocation.WasCompilerGenerated;
827bool isImplicit = boundDynamicIndexerAccess.WasCompilerGenerated;
836bool isImplicit = boundObjectInitializerExpression.WasCompilerGenerated;
845bool isImplicit = boundCollectionInitializerExpression.WasCompilerGenerated;
854bool isImplicit = boundObjectInitializerMember.WasCompilerGenerated;
918bool isImplicit = boundDynamicObjectInitializerMember.WasCompilerGenerated;
931bool isImplicit = boundCollectionElementInitializer.WasCompilerGenerated;
946boundDynamicMemberAccess.Syntax, boundDynamicMemberAccess.GetPublicTypeSymbol(), boundDynamicMemberAccess.WasCompilerGenerated);
980bool isImplicit = boundCollectionElementInitializer.WasCompilerGenerated;
999bool isImplicit = boundLambda.WasCompilerGenerated;
1011bool isImplicit = boundLocalFunctionStatement.WasCompilerGenerated;
1018bool isImplicit = boundConversion.WasCompilerGenerated || !boundConversion.ExplicitCastInCode || forceOperandImplicitLiteral;
1039_semanticModel, syntax, type, boundConversion.WasCompilerGenerated);
1147bool isImplicit = boundAsOperator.WasCompilerGenerated;
1156bool isImplicit = boundDelegateCreationExpression.WasCompilerGenerated;
1167bool isImplicit = boundMethodGroup.WasCompilerGenerated;
1179bool isImplicit = boundIsOperator.WasCompilerGenerated;
1190bool isImplicit = boundSizeOfOperator.WasCompilerGenerated;
1200bool isImplicit = boundTypeOfOperator.WasCompilerGenerated;
1210bool isImplicit = boundArrayCreation.WasCompilerGenerated ||
1211(boundArrayCreation.InitializerOpt?.Syntax == syntax && !boundArrayCreation.InitializerOpt.WasCompilerGenerated);
1219bool isImplicit = boundArrayInitialization.WasCompilerGenerated;
1227bool isImplicit = expr.WasCompilerGenerated;
1272bool isImplicit = element.WasCompilerGenerated;
1288bool isImplicit = boundDefaultLiteral.WasCompilerGenerated;
1297bool isImplicit = boundDefaultExpression.WasCompilerGenerated;
1306bool isImplicit = boundBaseReference.WasCompilerGenerated;
1315bool isImplicit = boundThisReference.WasCompilerGenerated;
1340bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1351bool isImplicit = boundAssignmentOperator.WasCompilerGenerated;
1368bool isImplicit = boundCompoundAssignmentOperator.WasCompilerGenerated;
1395bool isImplicit = boundIncrementOperator.WasCompilerGenerated;
1408bool isImplicit = boundBadExpression.WasCompilerGenerated || boundBadExpression.ChildBoundNodes.Any(static (e, boundBadExpression) => e?.Syntax == boundBadExpression.Syntax, boundBadExpression);
1418bool isImplicit = boundNewT.WasCompilerGenerated;
1427bool isImplicit = creation.WasCompilerGenerated;
1441bool isImplicit = boundUnaryOperator.WasCompilerGenerated;
1496bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1528bool isImplicit = boundBinaryOperator.WasCompilerGenerated;
1568bool isImplicit = boundTupleBinaryOperator.WasCompilerGenerated;
1581bool isImplicit = boundConditionalOperator.WasCompilerGenerated;
1592bool isImplicit = boundNullCoalescingOperator.WasCompilerGenerated;
1610bool isImplicit = boundNode.WasCompilerGenerated;
1620bool isImplicit = boundAwaitExpression.WasCompilerGenerated;
1630bool isImplicit = boundArrayAccess.WasCompilerGenerated;
1641bool isImplicit = boundIndexerAccess.WasCompilerGenerated;
1663bool isImplicit = boundInlineArrayAccess.WasCompilerGenerated;
1674bool isImplicit = boundNameOfOperator.WasCompilerGenerated;
1683bool isImplicit = boundThrowExpression.WasCompilerGenerated;
1692bool isImplicit = boundAddressOfOperator.WasCompilerGenerated;
1701bool isImplicit = boundImplicitReceiver.WasCompilerGenerated;
1711bool isImplicit = boundConditionalAccess.WasCompilerGenerated;
1720bool isImplicit = boundConditionalReceiver.WasCompilerGenerated;
1729bool isImplicit = boundFieldEqualsValue.WasCompilerGenerated;
1738bool isImplicit = boundPropertyEqualsValue.WasCompilerGenerated;
1747bool isImplicit = boundParameterEqualsValue.WasCompilerGenerated;
1756bool isImplicit = boundBlock.WasCompilerGenerated;
1765bool isImplicit = boundContinueStatement.WasCompilerGenerated;
1774bool isImplicit = boundBreakStatement.WasCompilerGenerated;
1782bool isImplicit = boundYieldBreakStatement.WasCompilerGenerated;
1791bool isImplicit = boundGotoStatement.WasCompilerGenerated;
1798bool isImplicit = boundNoOpStatement.WasCompilerGenerated;
1834bool isImplicit = boundIfStatement.WasCompilerGenerated;
1854bool isImplicit = boundWhileStatement.WasCompilerGenerated;
1868bool isImplicit = boundDoStatement.WasCompilerGenerated;
1883bool isImplicit = boundForStatement.WasCompilerGenerated;
1990bool isImplicit = boundForEachStatement.WasCompilerGenerated;
2001bool isImplicit = boundTryStatement.WasCompilerGenerated;
2015bool isImplicit = boundCatchBlock.WasCompilerGenerated;
2025bool isImplicit = boundFixedStatement.WasCompilerGenerated;
2043bool isImplicit = boundUsingStatement.WasCompilerGenerated;
2052bool isImplicit = boundThrowStatement.WasCompilerGenerated;
2060bool isImplicit = boundReturnStatement.WasCompilerGenerated;
2068bool isImplicit = boundYieldReturnStatement.WasCompilerGenerated;
2084bool isImplicit = boundLockStatement.WasCompilerGenerated;
2094bool isImplicit = boundBadStatement.WasCompilerGenerated || boundBadStatement.ChildBoundNodes.Any(static (e, boundBadStatement) => e?.Syntax == boundBadStatement.Syntax, boundBadStatement);
2140bool multiVariableImplicit = boundLocalDeclaration.WasCompilerGenerated;
2146bool isImplicit = (varStatement == varDeclaration) || boundLocalDeclaration.WasCompilerGenerated;
2160bool declarationIsImplicit = boundMultipleLocalDeclarations.WasCompilerGenerated;
2168bool isImplicit = declarationGroupSyntax == declarationSyntax || boundMultipleLocalDeclarations.WasCompilerGenerated || boundMultipleLocalDeclarations is BoundUsingLocalDeclarations;
2183isImplicit: boundMultipleLocalDeclarations.WasCompilerGenerated);
2193bool isImplicit = boundLabelStatement.WasCompilerGenerated;
2202bool isImplicit = boundLabeledStatement.WasCompilerGenerated;
2211bool isImplicit = boundExpressionStatement.WasCompilerGenerated || boundExpressionStatement.Syntax == boundExpressionStatement.Expression.Syntax;
2229bool isImplicit = boundTupleExpression.WasCompilerGenerated;
2267bool isImplicit = boundInterpolatedString.WasCompilerGenerated;
2405bool isImplicit = boundStringInsert.WasCompilerGenerated;
2413bool isImplicit = boundNode.WasCompilerGenerated;
2424var isImplicit = conversion.WasCompilerGenerated || !conversion.ExplicitCastInCode;
2442return new InterpolatedStringAdditionOperation(left, right, _semanticModel, current.Syntax, current.WasCompilerGenerated);
2473isImplicit: interpolatedString.WasCompilerGenerated);
2512isImplicit: placeholder.WasCompilerGenerated);
2519bool isImplicit = boundConstantPattern.WasCompilerGenerated;
2530bool isImplicit = boundRelationalPattern.WasCompilerGenerated;
2549bool isImplicit = boundDeclarationPattern.WasCompilerGenerated;
2572isImplicit: boundRecursivePattern.WasCompilerGenerated);
2591isImplicit: boundITuplePattern.WasCompilerGenerated);
2602isImplicit: boundTypePattern.WasCompilerGenerated);
2615isImplicit: boundNode.WasCompilerGenerated);
2629isImplicit: boundNode.WasCompilerGenerated);
2640isImplicit: boundNegatedPattern.WasCompilerGenerated);
2680isImplicit: boundBinaryPattern.WasCompilerGenerated);
2691bool isImplicit = boundSwitchStatement.WasCompilerGenerated;
2701return new SwitchCaseOperation(clauses, body, locals, condition: null, _semanticModel, boundSwitchSection.Syntax, isImplicit: boundSwitchSection.WasCompilerGenerated);
2727boundSwitchExpression.WasCompilerGenerated);
2742boundSwitchExpressionArm.WasCompilerGenerated);
2748bool isImplicit = boundSwitchLabel.WasCompilerGenerated;
2777bool isImplicit = boundIsPatternExpression.WasCompilerGenerated;
2792bool isImplicit = boundQueryClause.WasCompilerGenerated;
2809isImplicit: boundNode.WasCompilerGenerated);
2825isImplicit: boundIndex.WasCompilerGenerated);
2839isImplicit: boundRange.WasCompilerGenerated);
2849isImplicit: boundNode.WasCompilerGenerated);
2936bool isImplicit = placeholder.WasCompilerGenerated;