| import SwiftOnoneSupport |
| |
| public class PublicClass { |
| } |
| |
| public struct SomeValue { |
| |
| public var publicValue: Int { get } |
| |
| public func publicMethod() -> Int |
| |
| public init(public: Int) |
| } |
| |
| public func publicFunc() |
| |
| |
| [ |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 0, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 7, |
| key.length: 17 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 26, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 33, |
| key.length: 5 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 39, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 56, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 63, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 70, |
| key.length: 9 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 87, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 94, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 98, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 111, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 117, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 128, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 135, |
| key.length: 4 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 140, |
| key.length: 12 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 158, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 167, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 174, |
| key.length: 4 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 179, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 187, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 195, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 202, |
| key.length: 4 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 207, |
| key.length: 10 |
| } |
| ] |
| [ |
| { |
| key.kind: source.lang.swift.ref.module, |
| key.offset: 7, |
| key.length: 17, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 111, |
| key.length: 3, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 158, |
| key.length: 3, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 187, |
| key.length: 3, |
| key.is_system: 1 |
| } |
| ] |
| [ |
| { |
| key.kind: source.lang.swift.decl.class, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "PublicClass", |
| key.offset: 33, |
| key.length: 21, |
| key.nameoffset: 39, |
| key.namelength: 11, |
| key.bodyoffset: 52, |
| key.bodylength: 1, |
| key.attributes: [ |
| { |
| key.offset: 26, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.struct, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "SomeValue", |
| key.offset: 63, |
| key.length: 130, |
| key.nameoffset: 70, |
| key.namelength: 9, |
| key.bodyoffset: 81, |
| key.bodylength: 111, |
| key.attributes: [ |
| { |
| key.offset: 56, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.substructure: [ |
| { |
| key.kind: source.lang.swift.decl.var.instance, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "publicValue", |
| key.offset: 94, |
| key.length: 28, |
| key.typename: "Int", |
| key.nameoffset: 98, |
| key.namelength: 11, |
| key.bodyoffset: 116, |
| key.bodylength: 5, |
| key.attributes: [ |
| { |
| key.offset: 87, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.function.method.instance, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "publicMethod()", |
| key.offset: 135, |
| key.length: 26, |
| key.typename: "Int", |
| key.nameoffset: 140, |
| key.namelength: 14, |
| key.attributes: [ |
| { |
| key.offset: 128, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.function.method.instance, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "init(public:)", |
| key.offset: 174, |
| key.length: 17, |
| key.nameoffset: 174, |
| key.namelength: 17, |
| key.attributes: [ |
| { |
| key.offset: 167, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.substructure: [ |
| { |
| key.kind: source.lang.swift.decl.var.parameter, |
| key.name: "public", |
| key.offset: 179, |
| key.length: 11, |
| key.typename: "Int", |
| key.nameoffset: 179, |
| key.namelength: 6 |
| } |
| ] |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.function.free, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "publicFunc()", |
| key.offset: 202, |
| key.length: 17, |
| key.nameoffset: 207, |
| key.namelength: 12, |
| key.attributes: [ |
| { |
| key.offset: 195, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ] |
| } |
| ] |