-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-CompilersBugFeature - File-Local TypesFile-local types (file types)File-local types (file types)
Milestone
Description
I expect the lack of file being handled here to cause problems with a public API path:
Lines 126 to 143 in 1fcfda5
| modifiers |= token.Kind() switch | |
| { | |
| SyntaxKind.AbstractKeyword => DeclarationModifiers.Abstract, | |
| SyntaxKind.NewKeyword => DeclarationModifiers.New, | |
| SyntaxKind.OverrideKeyword => DeclarationModifiers.Override, | |
| SyntaxKind.VirtualKeyword => DeclarationModifiers.Virtual, | |
| SyntaxKind.StaticKeyword => DeclarationModifiers.Static, | |
| SyntaxKind.AsyncKeyword => DeclarationModifiers.Async, | |
| SyntaxKind.ConstKeyword => DeclarationModifiers.Const, | |
| SyntaxKind.ReadOnlyKeyword => DeclarationModifiers.ReadOnly, | |
| SyntaxKind.SealedKeyword => DeclarationModifiers.Sealed, | |
| SyntaxKind.UnsafeKeyword => DeclarationModifiers.Unsafe, | |
| SyntaxKind.PartialKeyword => DeclarationModifiers.Partial, | |
| SyntaxKind.RefKeyword => DeclarationModifiers.Ref, | |
| SyntaxKind.VolatileKeyword => DeclarationModifiers.Volatile, | |
| SyntaxKind.ExternKeyword => DeclarationModifiers.Extern, | |
| _ => DeclarationModifiers.None, | |
| }; |
Originally posted by @Youssef1313 in #62215 (review)
Would like to determine what features are impacted here and make sure we fix this up along with appropriate tests during the preview.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-CompilersBugFeature - File-Local TypesFile-local types (file types)File-local types (file types)