23 references to ERR_BadExternAlias
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
882
or ErrorCode.
ERR_BadExternAlias
Symbols\AliasSymbol.cs (1)
361
diagnostics.Add(ErrorCode.
ERR_BadExternAlias
, GetFirstLocation(), Name);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBUsingTests.cs (1)
3032
Diagnostic(ErrorCode.
ERR_BadExternAlias
, "A").WithArguments("A").WithLocation(2, 14),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\GlobalUsingDirectiveTests.cs (13)
4221
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected1);
4224
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected1);
4227
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(
4241
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected2);
4249
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected2);
4257
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected1);
4260
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected1);
4263
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(
4277
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected3);
4285
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected3);
4293
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected3);
4301
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(expected3);
4309
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.
ERR_BadExternAlias
or (int)ErrorCode.HDN_UnusedUsingDirective)).Verify(
Semantics\SemanticErrorTests.cs (1)
16456
Diagnostic(ErrorCode.
ERR_BadExternAlias
, "global").WithArguments("global"),
Semantics\TopLevelStatementsTests.cs (1)
5948
Diagnostic(ErrorCode.
ERR_BadExternAlias
, "A").WithArguments("A").WithLocation(2, 14)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\SemanticModelAPITests.cs (1)
1317
Diagnostic(ErrorCode.
ERR_BadExternAlias
, "X").WithArguments("X"),
Compilation\UsedAssembliesTests.cs (2)
5954
Diagnostic(ErrorCode.
ERR_BadExternAlias
, "N1C1").WithArguments("N1C1").WithLocation(2, 14)
5975
Diagnostic(ErrorCode.
ERR_BadExternAlias
, "N1C1").WithArguments("N1C1").WithLocation(2, 14)
Symbols\Source\ExternAliasTests.cs (1)
192
Diagnostic(ErrorCode.
ERR_BadExternAlias
, "bar").WithArguments("bar"),
Symbols\SymbolErrorTests.cs (1)
5454
Diagnostic(ErrorCode.
ERR_BadExternAlias
, "MyType").WithArguments("MyType"),