52 references to ERR_IllegalRefParam
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1005or ErrorCode.ERR_IllegalRefParam
Symbols\Source\ParameterHelpers.cs (1)
315diagnostics.Add(ErrorCode.ERR_IllegalRefParam, refnessKeyword.GetLocation());
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
475diagnostics.Add(ErrorCode.ERR_IllegalRefParam, this.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
Attributes\AttributeTests_LifetimeAnnotation.cs (1)
178Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(3, 30),
RefReadonlyParameterTests.cs (4)
729Diagnostic(ErrorCode.ERR_IllegalRefParam, "+").WithLocation(3, 29), 732Diagnostic(ErrorCode.ERR_IllegalRefParam, "--").WithLocation(4, 29), 735Diagnostic(ErrorCode.ERR_IllegalRefParam, "C").WithLocation(5, 37), 738Diagnostic(ErrorCode.ERR_IllegalRefParam, "C").WithLocation(6, 37));
Semantics\PatternMatchingTests_ListPatterns.cs (3)
5416Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(5, 21), 5455Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(6, 21), 5458Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(7, 21),
Semantics\RecordTests.cs (4)
24930Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(2, 10), 24933Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").WithLocation(2, 22) 24949Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(3, 10), 24952Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").WithLocation(3, 22)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (3)
16901Diagnostic(ErrorCode.ERR_IllegalRefParam, "+=").WithLocation(4, 26), 16904Diagnostic(ErrorCode.ERR_IllegalRefParam, "-=").WithLocation(5, 26), 16907Diagnostic(ErrorCode.ERR_IllegalRefParam, "*=").WithLocation(6, 26)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (4)
IOperation\IOperationTests_IDynamicIndexerAccessExpression.cs (4)
176Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(9, 28), 179Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(10, 29) 307Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(10, 21), 310Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(11, 21)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\InheritanceBindingTests.cs (6)
2013Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref"), 2045Diagnostic(ErrorCode.ERR_IllegalRefParam, "out"), 2214Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref"), 2216Diagnostic(ErrorCode.ERR_IllegalRefParam, "out"), 2243Diagnostic(ErrorCode.ERR_IllegalRefParam, "out"), 2245Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref"),
Semantics\InterpolationTests.cs (1)
15411Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(11, 24),
Semantics\LockTests.cs (2)
164Diagnostic(ErrorCode.ERR_IllegalRefParam, "out"), 196Diagnostic(ErrorCode.ERR_IllegalRefParam, "out"),
Semantics\NullableReferenceTypesTests.cs (1)
33516Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").WithLocation(4, 56)
Semantics\RecordStructTests.cs (2)
1385Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(2, 17), 1388Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").WithLocation(2, 29)
Semantics\SemanticErrorTests.cs (4)
11644Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(3, 17), 11646Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").WithLocation(7, 36), 11648Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").WithLocation(11, 26), 11650Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").WithLocation(11, 37));
Semantics\UsingStatementTests.cs (2)
1418Diagnostic(ErrorCode.ERR_IllegalRefParam, "out"), 1452Diagnostic(ErrorCode.ERR_IllegalRefParam, "out"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Symbols\PartialPropertiesTests.cs (12)
2900Diagnostic(ErrorCode.ERR_IllegalRefParam, refKind).WithLocation(4, 29), 2906Diagnostic(ErrorCode.ERR_IllegalRefParam, refKind).WithLocation(9, 29), 2971Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(3, 29), 2980Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").WithLocation(4, 29), 2986Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").WithLocation(9, 29), 2995Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(10, 29)); 3073Diagnostic(ErrorCode.ERR_IllegalRefParam, badRefKind).WithLocation(4, 29), 3079Diagnostic(ErrorCode.ERR_IllegalRefParam, badRefKind).WithLocation(9, 29), 3390Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(7, 35), 3396Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(8, 28), 3399Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(10, 28), 3405Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").WithLocation(11, 35));