Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc874c4e

Browse files
authored
Make use of marker protocol (realm#5463)
1 parentf3fb172 commitc874c4e

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

‎Source/SwiftLintBuiltInRules/Rules/Lint/LowerACLThanParentRule.swift‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,6 @@ private extension Syntax {
178178
}
179179

180180
varmodifiers:DeclModifierListSyntax?{
181-
iflet node=self.as(StructDeclSyntax.self){
182-
return node.modifiers
183-
}elseiflet node=self.as(ClassDeclSyntax.self){
184-
return node.modifiers
185-
}elseiflet node=self.as(ActorDeclSyntax.self){
186-
return node.modifiers
187-
}elseiflet node=self.as(EnumDeclSyntax.self){
188-
return node.modifiers
189-
}elseiflet node=self.as(ExtensionDeclSyntax.self){
190-
return node.modifiers
191-
}else{
192-
returnnil
193-
}
181+
asProtocol((anyWithModifiersSyntax).self)?.modifiers
194182
}
195183
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp