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)
62new SymbolKindOrTypeKind(TypeKind.Class), 63new SymbolKindOrTypeKind(TypeKind.Struct), 64new SymbolKindOrTypeKind(TypeKind.Interface), 65new SymbolKindOrTypeKind(TypeKind.Delegate), 66new SymbolKindOrTypeKind(TypeKind.Enum), 67new SymbolKindOrTypeKind(TypeKind.Module), 68new SymbolKindOrTypeKind(TypeKind.Pointer), 75new SymbolKindOrTypeKind(TypeKind.TypeParameter), 433=> new((TypeKind)Enum.Parse(typeof(TypeKind), typeKindElement.Value)); 442=> new(symbolKind);