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