15 references to new
Microsoft.CodeAnalysis.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (5)
104private static readonly SymbolKindOrTypeKind s_class = new(TypeKind.Class); 105private static readonly SymbolKindOrTypeKind s_struct = new(TypeKind.Struct); 106private static readonly SymbolKindOrTypeKind s_interface = new(TypeKind.Interface); 107private static readonly SymbolKindOrTypeKind s_enum = new(TypeKind.Enum); 113private static readonly SymbolKindOrTypeKind s_delegate = new(TypeKind.Delegate);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
67new SymbolKindOrTypeKind(TypeKind.Class), 68new SymbolKindOrTypeKind(TypeKind.Struct), 69new SymbolKindOrTypeKind(TypeKind.Interface), 70new SymbolKindOrTypeKind(TypeKind.Delegate), 71new SymbolKindOrTypeKind(TypeKind.Enum), 72new SymbolKindOrTypeKind(TypeKind.Module), 73new SymbolKindOrTypeKind(TypeKind.Pointer), 80new SymbolKindOrTypeKind(TypeKind.TypeParameter), 438=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 447=> new(symbolKind);