7 references to IsCapturedPrimaryConstructorParameter
Microsoft.CodeAnalysis.CSharp (7)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
642Debug.Assert(!IsCapturedPrimaryConstructorParameter(expr));
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
556Debug.Assert(!IsCapturedPrimaryConstructorParameter(expression));
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (3)
694Debug.Assert((object)result == originalLHS || IsCapturedPrimaryConstructorParameter(originalLHS)); // If this fails, we might need to add tests for new scenarios and relax the assert. 855IsCapturedPrimaryConstructorParameter(expression); // captured primary constructor parameters should be treated as a field 885Debug.Assert(!IsCapturedPrimaryConstructorParameter(expression));
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
755Debug.Assert(!IsCapturedPrimaryConstructorParameter(expr));
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
492Debug.Assert(!IsCapturedPrimaryConstructorParameter(expression));