8 references to IsCapturedPrimaryConstructorParameter
Microsoft.CodeAnalysis.CSharp (8)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
646Debug.Assert(!IsCapturedPrimaryConstructorParameter(expr));
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
573Debug.Assert(!IsCapturedPrimaryConstructorParameter(expression));
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (3)
825Debug.Assert((object)result == originalLHS || IsCapturedPrimaryConstructorParameter(originalLHS)); // If this fails, we might need to add tests for new scenarios and relax the assert. 986IsCapturedPrimaryConstructorParameter(expression); // captured primary constructor parameters should be treated as a field 1016Debug.Assert(!IsCapturedPrimaryConstructorParameter(expression));
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
172Debug.Assert(!IsCapturedPrimaryConstructorParameter(single));
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
712Debug.Assert(!IsCapturedPrimaryConstructorParameter(expr));
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
640Debug.Assert(!IsCapturedPrimaryConstructorParameter(expression));