| import Foo |
| import FooHelper |
| import SwiftOnoneSupport |
| |
| |
| 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: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 11, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 18, |
| key.length: 9 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 28, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 35, |
| key.length: 17 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 55, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 62, |
| key.length: 4 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 67, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 79, |
| key.length: 1 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 81, |
| key.length: 1 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 84, |
| key.length: 5 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 94, |
| key.length: 5 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 101, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 108, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 115, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 129, |
| key.length: 9 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 140, |
| key.length: 16 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 164, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 171, |
| key.length: 4 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 176, |
| key.length: 1 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 178, |
| key.length: 8 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 188, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 201, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 208, |
| key.length: 4 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 213, |
| key.length: 8 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 223, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 236, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 243, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 247, |
| key.length: 8 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 257, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 266, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 273, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 277, |
| key.length: 12 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 291, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 305, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 311, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 318, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 322, |
| key.length: 12 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 336, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 350, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.attribute.builtin, |
| key.offset: 357, |
| key.length: 6 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 364, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.identifier, |
| key.offset: 368, |
| key.length: 25 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.typeidentifier, |
| key.offset: 395, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.syntaxtype.keyword, |
| key.offset: 401, |
| key.length: 3 |
| } |
| ] |
| [ |
| { |
| key.kind: source.lang.swift.ref.module, |
| key.offset: 7, |
| key.length: 3 |
| }, |
| { |
| key.kind: source.lang.swift.ref.module, |
| key.offset: 18, |
| key.length: 9 |
| }, |
| { |
| key.kind: source.lang.swift.ref.module, |
| key.offset: 35, |
| key.length: 17 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 84, |
| key.length: 5, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 94, |
| key.length: 5, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.protocol, |
| key.offset: 129, |
| key.length: 9, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.protocol, |
| key.offset: 140, |
| key.length: 16, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 188, |
| key.length: 6, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 223, |
| key.length: 6, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 257, |
| key.length: 6, |
| key.is_system: 1 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 291, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 336, |
| key.length: 11 |
| }, |
| { |
| key.kind: source.lang.swift.ref.struct, |
| key.offset: 395, |
| 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: 62, |
| key.length: 37, |
| key.typename: "Int32", |
| key.nameoffset: 67, |
| key.namelength: 23, |
| key.attributes: [ |
| { |
| key.offset: 55, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.substructure: [ |
| { |
| key.kind: source.lang.swift.decl.var.parameter, |
| key.name: "a", |
| key.offset: 79, |
| 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: 108, |
| key.length: 157, |
| key.nameoffset: 115, |
| key.namelength: 11, |
| key.bodyoffset: 158, |
| key.bodylength: 106, |
| key.inheritedtypes: [ |
| { |
| key.name: "Equatable" |
| }, |
| { |
| key.name: "RawRepresentable" |
| } |
| ], |
| key.attributes: [ |
| { |
| key.offset: 101, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.elements: [ |
| { |
| key.kind: source.lang.swift.structure.elem.typeref, |
| key.offset: 129, |
| key.length: 9 |
| }, |
| { |
| key.kind: source.lang.swift.structure.elem.typeref, |
| key.offset: 140, |
| 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: 171, |
| key.length: 24, |
| key.nameoffset: 171, |
| key.namelength: 24, |
| key.attributes: [ |
| { |
| key.offset: 164, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.substructure: [ |
| { |
| key.kind: source.lang.swift.decl.var.parameter, |
| key.name: "rawValue", |
| key.offset: 176, |
| 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: 208, |
| key.length: 22, |
| key.nameoffset: 208, |
| key.namelength: 22, |
| key.attributes: [ |
| { |
| key.offset: 201, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ], |
| key.substructure: [ |
| { |
| key.kind: source.lang.swift.decl.var.parameter, |
| key.name: "rawValue", |
| key.offset: 213, |
| key.length: 16, |
| key.typename: "UInt32", |
| key.nameoffset: 213, |
| 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: 243, |
| key.length: 20, |
| key.typename: "UInt32", |
| key.nameoffset: 247, |
| key.namelength: 8, |
| key.attributes: [ |
| { |
| key.offset: 236, |
| 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: 273, |
| key.length: 37, |
| key.typename: "FooSubEnum1", |
| key.nameoffset: 277, |
| key.namelength: 12, |
| key.bodyoffset: 304, |
| key.bodylength: 5, |
| key.attributes: [ |
| { |
| key.offset: 266, |
| 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: 318, |
| key.length: 37, |
| key.typename: "FooSubEnum1", |
| key.nameoffset: 322, |
| key.namelength: 12, |
| key.bodyoffset: 349, |
| key.bodylength: 5, |
| key.attributes: [ |
| { |
| key.offset: 311, |
| 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: 364, |
| key.length: 42, |
| key.typename: "Int", |
| key.nameoffset: 368, |
| key.namelength: 25, |
| key.bodyoffset: 400, |
| key.bodylength: 5, |
| key.attributes: [ |
| { |
| key.offset: 357, |
| key.length: 6, |
| key.attribute: source.decl.attribute.public |
| } |
| ] |
| } |
| ] |