Skip to content

Commit

Permalink
Adds tuple as SwiftExpressionKind
Browse files Browse the repository at this point in the history
  • Loading branch information
dirtydanee committed Jan 24, 2019
1 parent f233061 commit 1b881ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ public enum SwiftExpressionKind: String {
case dictionary = "source.lang.swift.expr.dictionary"
case objectLiteral = "source.lang.swift.expr.object_literal"
case closure = "source.lang.swift.expr.closure"
case tuple = "source.lang.swift.expr.tuple"
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private extension Dictionary where Key == String, Value == SourceKitRepresentabl
}

var caseExpressionRanges: [NSRange] {
return ranges(with: "source.lang.swift.expr.tuple", for: "source.lang.swift.structure.elem.expr")
return ranges(with: SwiftExpressionKind.tuple.rawValue, for: "source.lang.swift.structure.elem.expr")
}

func contains(_ statements: Set<StatementKind>) -> Bool {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class ExplicitTypeInterfaceRuleTests: XCTestCase {
}
}
}
"""
"""
]
let triggeringExamples = ExplicitTypeInterfaceRule.description.triggeringExamples
let description = ExplicitTypeInterfaceRule.description
Expand Down

0 comments on commit 1b881ae

Please sign in to comment.