23 references to CreateErrorTypeSymbol
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
98
var originalType = reader.Compilation.
CreateErrorTypeSymbol
(container, name, arity);
105
result.AddIfNotNull(reader.Compilation.
CreateErrorTypeSymbol
(container: null, name, arity));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
131
reader.Compilation.
CreateErrorTypeSymbol
(container, name, arity),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenTupleTest.cs (7)
6211
var vt2 = comp.
CreateErrorTypeSymbol
(null, "ValueTuple", 2).Construct(intType, intType);
6216
Assert.Throws<ArgumentNullException>(() => comp.
CreateErrorTypeSymbol
(null, null, 2));
6217
Assert.Throws<ArgumentException>(() => comp.
CreateErrorTypeSymbol
(null, "a", -1));
6218
Assert.Throws<ArgumentException>(() => comp.
CreateErrorTypeSymbol
(vbComp.GlobalNamespace, "a", 1));
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 (6)
CodeGen\CodeGenTuples.vb (6)
8935
Dim vt2 = comp.
CreateErrorTypeSymbol
(Nothing, "ValueTuple", 2).Construct(intType, intType)
8940
Assert.Throws(Of ArgumentNullException)(Sub() comp.
CreateErrorTypeSymbol
(Nothing, Nothing, 2))
8941
Assert.Throws(Of ArgumentException)(Sub() comp.
CreateErrorTypeSymbol
(Nothing, "a", -1))
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 (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (2)
98
var originalType = reader.Compilation.
CreateErrorTypeSymbol
(container, name, arity);
105
result.AddIfNotNull(reader.Compilation.
CreateErrorTypeSymbol
(container: null, name, arity));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
131
reader.Compilation.
CreateErrorTypeSymbol
(container, name, arity),