50 references to ERR_ExpressionHasNoName
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Invocation.cs (1)
2422var code = top ? ErrorCode.ERR_ExpressionHasNoName : ErrorCode.ERR_SubexpressionNotInNameof;
Errors\ErrorFacts.cs (1)
1707or ErrorCode.ERR_ExpressionHasNoName
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleEqualityTests.cs (1)
5248Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "(1, 2) == (3, 4)").WithLocation(6, 20)
CodeGen\CodeGenTupleTest.cs (1)
14042Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "(int a, int b)").WithLocation(7, 41)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
Semantics\OutVarTests.cs (14)
34753Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M2(M1(out var x1), x1)").WithLocation(6, 24) 34793Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out int z1)").WithLocation(6, 39), 34805Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out var z2)").WithLocation(7, 39), 34869Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M(out int z1)").WithLocation(2, 16), 34878Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M(out var z2)").WithLocation(3, 16), 34923Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M(out int z1)").WithLocation(2, 26), 34932Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M(out var z2)").WithLocation(3, 26), 34981Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out int z1)").WithLocation(8, 28), 34987Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out var z2)").WithLocation(11, 28), 35031Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out var z2)").WithLocation(5, 29), 35043Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out int z1)").WithLocation(4, 29), 35085Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out int z1)").WithLocation(6, 33), 35091Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out var z2)").WithLocation(7, 33), 35137Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "(System.Action)(() => M(M(out var z1), z1))").WithLocation(6, 27),
Semantics\PatternMatchingTests_Scope.cs (1)
13811Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(i is var x1, x1)").WithLocation(6, 27),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_INameOfOperation.cs (1)
32Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "b ? i1 : i2").WithLocation(6, 30),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\DeconstructionTests.cs (1)
4152Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "(int x1, var x2) = (1, 2)").WithLocation(6, 27),
Semantics\ImplicitObjectCreationTests.cs (1)
2770Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "new()").WithLocation(6, 20)
Semantics\LocalFunctionTests.cs (2)
7288Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "nameof(TParameter)").WithLocation(8, 20), 7291Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "nameof(TParameter)").WithLocation(12, 16)
Semantics\NameOfTests.cs (16)
296Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "this").WithLocation(44, 20), 299Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "typeof(string)").WithLocation(47, 20), 1771Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "typeof(int)").WithLocation(4, 34), 1774Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "typeof(nint)").WithLocation(5, 34), 3087Diagnostic(ErrorCode.ERR_ExpressionHasNoName, @"d[""""]").WithLocation(3, 12)); 3102Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "a[0]").WithLocation(2, 12), 3105Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "a[^1]").WithLocation(3, 12)); 3121Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "s[0]").WithLocation(3, 12), 3124Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "s[^1]").WithLocation(4, 12)); 3151Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "x[0]").WithLocation(10, 20), 3154Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "x[0] = default").WithLocation(11, 20), 3157Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "y[0] += 1").WithLocation(13, 20)); 3181Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "r[0]").WithLocation(10, 20)); 3206Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "r[0]").WithLocation(10, 20), 3212Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "r[0] = default").WithLocation(11, 20)); 3247Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "r[0]").WithLocation(14, 20),
Semantics\NullableReferenceTypesTests.cs (2)
1696Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M!").WithLocation(13, 24), 1725Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "a.Extension!").WithLocation(6, 20)
Semantics\TargetTypedDefaultTests.cs (2)
1004Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "default").WithLocation(8, 37), 1032Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "default").WithLocation(8, 37),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\FieldAndValueKeywordTests.cs (6)
1354Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "field").WithLocation(12, 19), 1360Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "field").WithLocation(13, 19)); 1407Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "field").WithLocation(13, 23), 1431Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "field").WithLocation(3, 24)); 1447Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "field").WithLocation(3, 33)); 1474Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "field").WithLocation(4, 24));