| import FooHelper |
| |
| |
| public func fooSubFunc1(_ a: Int32) -> Int32 |
| |
| public struct FooSubEnum1 : Equatable, RawRepresentable { |
| |
| public init(_ rawValue: UInt32) |
| |
| public init(rawValue: UInt32) |
| |
| public var rawValue: UInt32 |
| } |
| public var FooSubEnum1X: FooSubEnum1 { get } |
| public var FooSubEnum1Y: FooSubEnum1 { get } |
| |
| public var FooSubUnnamedEnumeratorA1: Int { get } |
| |
| [ |
| { |
| 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: 9 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 19, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 26, |
| key.length: 4 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 31, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 43, |
| key.length: 1 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 45, |
| key.length: 1 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 48, |
| key.length: 5 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 58, |
| key.length: 5 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 65, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 72, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 79, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 93, |
| key.length: 9 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 104, |
| key.length: 16 |
| }, |
| { |
| 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.keyword, |
| key.offset: 140, |
| key.length: 1 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 142, |
| key.length: 8 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 152, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 165, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 172, |
| key.length: 4 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 177, |
| key.length: 8 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 187, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 200, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 207, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 211, |
| key.length: 8 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 221, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 230, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 237, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 241, |
| key.length: 12 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 255, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 269, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 275, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 282, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 286, |
| key.length: 12 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 300, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 314, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 321, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 328, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 332, |
| key.length: 25 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 359, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 365, |
| key.length: 3 |
| } |
| ] |
| [ |
| { |
| key.kind: source.lang.swift.ref.module, |
| key.offset: 7, |
| key.length: 9 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 48, |
| key.length: 5, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 58, |
| key.length: 5, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.protocol, |
| key.offset: 93, |
| key.length: 9, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.protocol, |
| key.offset: 104, |
| key.length: 16, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 152, |
| key.length: 6, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 187, |
| key.length: 6, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 221, |
| key.length: 6, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 255, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 300, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 359, |
| key.length: 3, |
| key.is_system: 1 |
| } |
| ] |
| [ |
| { |
| key.kind: source.lang.swift.decl.function.free, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "fooSubFunc1(_:)", |
| key.offset: 26, |
| key.length: 37, |
| key.typename: "Int32", |
| key.nameoffset: 31, |
| key.namelength: 23, |
| key.attributes: [ |
| { |
| key.offset: 19, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.substructure: [ |
| { |
| key.kind: source.lang.swift.decl.var.parameter, |
| key.name: "a", |
| key.offset: 43, |
| key.length: 10, |
| key.typename: "Int32", |
| key.nameoffset: 0, |
| key.namelength: 0 |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.struct, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "FooSubEnum1", |
| key.offset: 72, |
| key.length: 157, |
| key.nameoffset: 79, |
| key.namelength: 11, |
| key.bodyoffset: 122, |
| key.bodylength: 106, |
| key.inheritedtypes: [ |
| { |
| key.name: "Equatable" |
| }, |
| { |
| key.name: "RawRepresentable" |
| } |
| ], |
| key.attributes: [ |
| { |
| key.offset: 65, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.elements: [ |
| { |
| key.kind: source.lang.swift.structure.elem.typeref, |
| key.offset: 93, |
| key.length: 9 |
| }, |
| { |
| key.kind: source.lang.swift.structure.elem.typeref, |
| key.offset: 104, |
| key.length: 16 |
| } |
| ], |
| key.substructure: [ |
| { |
| key.kind: source.lang.swift.decl.function.method.instance, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "init(_:)", |
| key.offset: 135, |
| key.length: 24, |
| key.nameoffset: 135, |
| key.namelength: 24, |
| key.attributes: [ |
| { |
| key.offset: 128, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.substructure: [ |
| { |
| key.kind: source.lang.swift.decl.var.parameter, |
| key.name: "rawValue", |
| key.offset: 140, |
| key.length: 18, |
| key.typename: "UInt32", |
| key.nameoffset: 0, |
| key.namelength: 0 |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.function.method.instance, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "init(rawValue:)", |
| key.offset: 172, |
| key.length: 22, |
| key.nameoffset: 172, |
| key.namelength: 22, |
| key.attributes: [ |
| { |
| key.offset: 165, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.substructure: [ |
| { |
| key.kind: source.lang.swift.decl.var.parameter, |
| key.name: "rawValue", |
| key.offset: 177, |
| key.length: 16, |
| key.typename: "UInt32", |
| key.nameoffset: 177, |
| key.namelength: 8 |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.var.instance, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.setter_accessibility: source.lang.swift.accessibility.public, |
| key.name: "rawValue", |
| key.offset: 207, |
| key.length: 20, |
| key.typename: "UInt32", |
| key.nameoffset: 211, |
| key.namelength: 8, |
| key.attributes: [ |
| { |
| key.offset: 200, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ] |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.var.global, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "FooSubEnum1X", |
| key.offset: 237, |
| key.length: 37, |
| key.typename: "FooSubEnum1", |
| key.nameoffset: 241, |
| key.namelength: 12, |
| key.bodyoffset: 268, |
| key.bodylength: 5, |
| key.attributes: [ |
| { |
| key.offset: 230, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.var.global, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "FooSubEnum1Y", |
| key.offset: 282, |
| key.length: 37, |
| key.typename: "FooSubEnum1", |
| key.nameoffset: 286, |
| key.namelength: 12, |
| key.bodyoffset: 313, |
| key.bodylength: 5, |
| key.attributes: [ |
| { |
| key.offset: 275, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ] |
| }, |
| { |
| key.kind: source.lang.swift.decl.var.global, |
| key.accessibility: source.lang.swift.accessibility.public, |
| key.name: "FooSubUnnamedEnumeratorA1", |
| key.offset: 328, |
| key.length: 42, |
| key.typename: "Int", |
| key.nameoffset: 332, |
| key.namelength: 25, |
| key.bodyoffset: 364, |
| key.bodylength: 5, |
| key.attributes: [ |
| { |
| key.offset: 321, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ] |
| } |
| ] |