Skip to content

Commit

Permalink
Fixed crash when attempting to parse the declaration of `extension Ar…
Browse files Browse the repository at this point in the history
…ray`
  • Loading branch information
jpsim committed Dec 26, 2014
1 parent b6d0c06 commit 64df462
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ None.

* Fixed invalid JSON issue when last file in an Xcode project failed to parse.
[JP Simard](https://github.com/jpsim)

* Fixed crash when attempting to parse the declaration of `extension Array`.
[JP Simard](https://github.com/jpsim)
[realm/jazzy#126](https://github.com/realm/jazzy/issues/126)
1 change: 1 addition & 0 deletions sourcekitten/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ Parse declaration from XPC dictionary.
func parseDeclaration(dictionary: XPCDictionary) -> String? {
if dictionary["key.typename"] == nil ||
dictionary["key.annotated_decl"] == nil ||
dictionary["key.offset"] == nil ||
dictionary["key.kind"] as String == "source.lang.swift.decl.extension" {
return nil
}
Expand Down

0 comments on commit 64df462

Please sign in to comment.