28 references to CreateErrorNamespaceSymbol
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
127
currentNamespace = reader.Compilation.
CreateErrorNamespaceSymbol
(currentNamespace, namespaceNames[i]);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenTupleTest.cs (12)
6220
Assert.Throws<ArgumentNullException>(() => comp.
CreateErrorNamespaceSymbol
(null, "a"));
6221
Assert.Throws<ArgumentNullException>(() => comp.
CreateErrorNamespaceSymbol
(vbComp.GlobalNamespace, null));
6222
Assert.Throws<ArgumentException>(() => comp.
CreateErrorNamespaceSymbol
(vbComp.GlobalNamespace, "a"));
6224
var ns = comp.
CreateErrorNamespaceSymbol
(comp.GlobalNamespace, "a");
6232
ns = comp.
CreateErrorNamespaceSymbol
(comp.Assembly.GlobalNamespace, "a");
6240
ns = comp.
CreateErrorNamespaceSymbol
(comp.SourceModule.GlobalNamespace, "a");
6248
ns = comp.
CreateErrorNamespaceSymbol
(comp.
CreateErrorNamespaceSymbol
(comp.GlobalNamespace, "a"), "b");
6251
ns = comp.
CreateErrorNamespaceSymbol
(comp.GlobalNamespace, "");
6255
vt2 = comp.CreateErrorTypeSymbol(comp.
CreateErrorNamespaceSymbol
(comp.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType);
6258
vt2 = comp.CreateErrorTypeSymbol(comp.
CreateErrorNamespaceSymbol
(comp.Assembly.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType);
6261
vt2 = comp.CreateErrorTypeSymbol(comp.
CreateErrorNamespaceSymbol
(comp.SourceModule.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CompilationAPITests.cs (2)
2770
var fakeIntType = compilation.CreateErrorTypeSymbol(compilation.
CreateErrorNamespaceSymbol
(compilation.GlobalNamespace, "System"), "Int32", arity: 0);
2960
var fakeIntType = compilation.CreateErrorTypeSymbol(compilation.
CreateErrorNamespaceSymbol
(compilation.GlobalNamespace, "System"), "Int32", arity: 0);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (10)
CodeGen\CodeGenTuples.vb (10)
8944
Assert.Throws(Of ArgumentNullException)(Sub() comp.
CreateErrorNamespaceSymbol
(Nothing, "a"))
8948
Dim ns = comp.
CreateErrorNamespaceSymbol
(comp.GlobalNamespace, "a")
8956
ns = comp.
CreateErrorNamespaceSymbol
(comp.Assembly.GlobalNamespace, "a")
8964
ns = comp.
CreateErrorNamespaceSymbol
(comp.SourceModule.GlobalNamespace, "a")
8972
ns = comp.
CreateErrorNamespaceSymbol
(comp.
CreateErrorNamespaceSymbol
(comp.GlobalNamespace, "a"), "b")
8975
ns = comp.
CreateErrorNamespaceSymbol
(comp.GlobalNamespace, "")
8979
vt2 = comp.CreateErrorTypeSymbol(comp.
CreateErrorNamespaceSymbol
(comp.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType)
8982
vt2 = comp.CreateErrorTypeSymbol(comp.
CreateErrorNamespaceSymbol
(comp.Assembly.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType)
8985
vt2 = comp.CreateErrorTypeSymbol(comp.
CreateErrorNamespaceSymbol
(comp.SourceModule.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\CompilationAPITests.vb (2)
1801
Dim fakeIntType = compilation.CreateErrorTypeSymbol(compilation.
CreateErrorNamespaceSymbol
(compilation.GlobalNamespace, "System"), "Int32", arity:=0)
1888
Dim fakeIntType = compilation.CreateErrorTypeSymbol(compilation.
CreateErrorNamespaceSymbol
(compilation.GlobalNamespace, "System"), "Int32", arity:=0)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
127
currentNamespace = reader.Compilation.
CreateErrorNamespaceSymbol
(currentNamespace, namespaceNames[i]);