45 references to CreateAnonymousTypeSymbol
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1496
return
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberIsReadOnly, memberLocations, memberNullableAnnotations: default);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenReadonlyStructTests.cs (2)
897
INamedTypeSymbol iNamedType = comp.
CreateAnonymousTypeSymbol
(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol()), ImmutableArray.Create("qq"));
1061
INamedTypeSymbol iNamedType = comp.
CreateAnonymousTypeSymbol
(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol()), ImmutableArray.Create("qq"));
CodeGen\CodeGenTupleTest.cs (1)
6326
var e = Assert.Throws<ArgumentException>(() => comp.
CreateAnonymousTypeSymbol
(ImmutableArray.Create(vbType), ImmutableArray.Create("m1")));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (23)
Compilation\CompilationAPITests.cs (22)
2510
compilation.
CreateAnonymousTypeSymbol
(
2520
compilation.
CreateAnonymousTypeSymbol
(
2532
compilation.
CreateAnonymousTypeSymbol
(
2544
compilation.
CreateAnonymousTypeSymbol
(
2556
compilation.
CreateAnonymousTypeSymbol
(
2568
compilation.
CreateAnonymousTypeSymbol
(
2578
compilation.
CreateAnonymousTypeSymbol
(
2588
compilation.
CreateAnonymousTypeSymbol
(
2598
compilation.
CreateAnonymousTypeSymbol
(
2607
var type = compilation.
CreateAnonymousTypeSymbol
(
2626
var type = compilation.
CreateAnonymousTypeSymbol
(
2643
var type = compilation.
CreateAnonymousTypeSymbol
(
2662
var type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames);
2665
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, default);
2671
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, default, default, default);
2674
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberIsReadOnly: default);
2677
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberLocations: default);
2680
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberNullableAnnotations: default);
2689
var type = comp.
CreateAnonymousTypeSymbol
(ImmutableArray<ITypeSymbol>.Empty, ImmutableArray<string>.Empty, memberNullableAnnotations: ImmutableArray<CodeAnalysis.NullableAnnotation>.Empty);
2702
var type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames);
2706
Assert.Throws<ArgumentException>(() => comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberNullableAnnotations: ImmutableArray.Create(CodeAnalysis.NullableAnnotation.NotAnnotated)));
2708
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberNullableAnnotations: ImmutableArray.Create(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableAnnotation.Annotated));
Symbols\AnonymousTypesSymbolTests.cs (1)
1924
compilation.
CreateAnonymousTypeSymbol
(
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (18)
Compilation\CompilationAPITests.vb (18)
1550
Return compilation.
CreateAnonymousTypeSymbol
(
1561
compilation.
CreateAnonymousTypeSymbol
(
1574
Compilation.
CreateAnonymousTypeSymbol
(
1585
Dim type = compilation.
CreateAnonymousTypeSymbol
(
1624
Return compilation.
CreateAnonymousTypeSymbol
(
1633
Dim type = compilation.
CreateAnonymousTypeSymbol
(
1647
Dim type = compilation.
CreateAnonymousTypeSymbol
(
1662
Dim type = compilation.
CreateAnonymousTypeSymbol
(
1680
Dim type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames)
1683
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, Nothing)
1689
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, Nothing, Nothing, Nothing)
1692
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberIsReadOnly:=Nothing)
1695
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberLocations:=Nothing)
1698
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberNullableAnnotations:=Nothing)
1706
Dim type = comp.
CreateAnonymousTypeSymbol
(ImmutableArray(Of ITypeSymbol).Empty, ImmutableArray(Of String).Empty, memberNullableAnnotations:=ImmutableArray(Of CodeAnalysis.NullableAnnotation).Empty)
1718
Dim type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames)
1722
Assert.Throws(Of ArgumentException)(Function() comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberNullableAnnotations:=ImmutableArray.Create(CodeAnalysis.NullableAnnotation.NotAnnotated)))
1724
type = comp.
CreateAnonymousTypeSymbol
(memberTypes, memberNames, memberNullableAnnotations:=ImmutableArray.Create(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableAnnotation.Annotated))