mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously, Clang modules didn't have empty lines between top-level decls. This was inconsistent with Swift module.
260 lines
5.5 KiB
Plaintext
260 lines
5.5 KiB
Plaintext
public func doSomethingInHead(_ arg: Int32)
|
||
open class BaseInHead {
|
||
|
||
open func doIt(_ arg: Int32)
|
||
}
|
||
/// Awesome name.
|
||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
/// Awesome name.
|
||
open class SameName {
|
||
}
|
||
public protocol SameNameProtocol {
|
||
}
|
||
|
||
[
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.attribute.builtin,
|
||
key.offset: 0,
|
||
key.length: 6
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||
key.offset: 7,
|
||
key.length: 4
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||
key.offset: 12,
|
||
key.length: 17
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||
key.offset: 30,
|
||
key.length: 1
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||
key.offset: 32,
|
||
key.length: 3
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.typeidentifier,
|
||
key.offset: 37,
|
||
key.length: 5
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.attribute.builtin,
|
||
key.offset: 44,
|
||
key.length: 4
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||
key.offset: 49,
|
||
key.length: 5
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||
key.offset: 55,
|
||
key.length: 10
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.attribute.builtin,
|
||
key.offset: 73,
|
||
key.length: 4
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||
key.offset: 78,
|
||
key.length: 4
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||
key.offset: 83,
|
||
key.length: 4
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||
key.offset: 88,
|
||
key.length: 1
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||
key.offset: 90,
|
||
key.length: 3
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.typeidentifier,
|
||
key.offset: 95,
|
||
key.length: 5
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.doccomment,
|
||
key.offset: 104,
|
||
key.length: 18
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.doccomment,
|
||
key.offset: 122,
|
||
key.length: 26
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.doccomment,
|
||
key.offset: 148,
|
||
key.length: 18
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.attribute.builtin,
|
||
key.offset: 166,
|
||
key.length: 4
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||
key.offset: 171,
|
||
key.length: 5
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||
key.offset: 177,
|
||
key.length: 8
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.attribute.builtin,
|
||
key.offset: 190,
|
||
key.length: 6
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||
key.offset: 197,
|
||
key.length: 8
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||
key.offset: 206,
|
||
key.length: 16
|
||
}
|
||
]
|
||
[
|
||
{
|
||
key.kind: source.lang.swift.ref.struct,
|
||
key.offset: 37,
|
||
key.length: 5,
|
||
key.is_system: 1
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.ref.struct,
|
||
key.offset: 95,
|
||
key.length: 5,
|
||
key.is_system: 1
|
||
}
|
||
]
|
||
[
|
||
{
|
||
key.kind: source.lang.swift.decl.function.free,
|
||
key.accessibility: source.lang.swift.accessibility.public,
|
||
key.name: "doSomethingInHead(_:)",
|
||
key.offset: 7,
|
||
key.length: 36,
|
||
key.nameoffset: 12,
|
||
key.namelength: 31,
|
||
key.attributes: [
|
||
{
|
||
key.offset: 0,
|
||
key.length: 6,
|
||
key.attribute: source.decl.attribute.public
|
||
}
|
||
],
|
||
key.substructure: [
|
||
{
|
||
key.kind: source.lang.swift.decl.var.parameter,
|
||
key.name: "arg",
|
||
key.offset: 30,
|
||
key.length: 12,
|
||
key.typename: "Int32"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.decl.class,
|
||
key.accessibility: source.lang.swift.accessibility.open,
|
||
key.name: "BaseInHead",
|
||
key.offset: 49,
|
||
key.length: 54,
|
||
key.nameoffset: 55,
|
||
key.namelength: 10,
|
||
key.bodyoffset: 67,
|
||
key.bodylength: 35,
|
||
key.attributes: [
|
||
{
|
||
key.offset: 44,
|
||
key.length: 4,
|
||
key.attribute: source.decl.attribute.open
|
||
}
|
||
],
|
||
key.substructure: [
|
||
{
|
||
key.kind: source.lang.swift.decl.function.method.instance,
|
||
key.accessibility: source.lang.swift.accessibility.open,
|
||
key.name: "doIt(_:)",
|
||
key.offset: 78,
|
||
key.length: 23,
|
||
key.nameoffset: 83,
|
||
key.namelength: 18,
|
||
key.attributes: [
|
||
{
|
||
key.offset: 73,
|
||
key.length: 4,
|
||
key.attribute: source.decl.attribute.open
|
||
}
|
||
],
|
||
key.substructure: [
|
||
{
|
||
key.kind: source.lang.swift.decl.var.parameter,
|
||
key.name: "arg",
|
||
key.offset: 88,
|
||
key.length: 12,
|
||
key.typename: "Int32"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.decl.class,
|
||
key.accessibility: source.lang.swift.accessibility.open,
|
||
key.name: "SameName",
|
||
key.offset: 171,
|
||
key.length: 18,
|
||
key.nameoffset: 177,
|
||
key.namelength: 8,
|
||
key.bodyoffset: 187,
|
||
key.bodylength: 1,
|
||
key.docoffset: 104,
|
||
key.doclength: 62,
|
||
key.attributes: [
|
||
{
|
||
key.offset: 166,
|
||
key.length: 4,
|
||
key.attribute: source.decl.attribute.open
|
||
}
|
||
]
|
||
},
|
||
{
|
||
key.kind: source.lang.swift.decl.protocol,
|
||
key.accessibility: source.lang.swift.accessibility.public,
|
||
key.name: "SameNameProtocol",
|
||
key.offset: 197,
|
||
key.length: 29,
|
||
key.nameoffset: 206,
|
||
key.namelength: 16,
|
||
key.bodyoffset: 224,
|
||
key.bodylength: 1,
|
||
key.attributes: [
|
||
{
|
||
key.offset: 190,
|
||
key.length: 6,
|
||
key.attribute: source.decl.attribute.public
|
||
}
|
||
]
|
||
}
|
||
]
|