-
Notifications
You must be signed in to change notification settings - Fork 470
Open
Description
ImportDeclSyntax incorrectly state no modifiers are supported by Swift
This is incorrect, a single access level modifier is allowed when either or both:
- Experimental Feature
AccessLevelOnImportis enabled - Upcoming Feature
InternalImportsByDefaultis enabled
swift-syntax/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesGHI.swift
Lines 3071 to 3079 in 606e0e7
| /// Modifiers that are attached to the import declaration. Currently, no modifiers are supported by Swift. | |
| public var modifiers: DeclModifierListSyntax { | |
| get { | |
| return Syntax(self).child(at: 3)!.cast(DeclModifierListSyntax.self) | |
| } | |
| set(value) { | |
| self = Syntax(self).replacingChild(at: 3, with: Syntax(value), rawAllocationArena: RawSyntaxArena()).cast(ImportDeclSyntax.self) | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels