Skip to content

Commit

Permalink
Missed enum and protocol missed balue fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Yashin committed Aug 23, 2024
1 parent 261d880 commit 95c6cfb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
16 changes: 16 additions & 0 deletions queries/outline.scm
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,19 @@
(type_annotation)? @name
) @item
)

(enum_class_body
(property_declaration
(value_binding_pattern) @name
name: (pattern) @name
(type_annotation)? @name
) @item
)

(
(protocol_function_declaration) @name
) @item

(
(protocol_property_declaration) @name
) @item
19 changes: 13 additions & 6 deletions test/outline/outline.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import Foundation

protocol SomeProtocol {}
protocol SomeProtocol {
var someVar: String { get }

func somess<T, V>(_ sss: T, xxx: V) -> V?
}
protocol SomeProtocol<T>: Encodable, Decodable where T == Element {}

public class SomeClass: Codable {
enum SomeEnum {
static var textures: [String: MTLTexture] = [:]
}

public class SomeClass: Codable {
var somesss = 0
let another = 111
var sieee: Int = 11
Expand Down Expand Up @@ -65,9 +72,9 @@ struct SomeAAA {
enum Some {
case some
}
var xxxx: String?
var xxxx: String?P
}

//extension SomeAAA.SomeBBBB { // breaks breadcrumbs
// var someVariable: String { "" }
//}
extension SomeAAA.SomeBBBB { // breaks breadcrumbs
var someVariable: String { "" }
}

0 comments on commit 95c6cfb

Please sign in to comment.