Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Result of `OffsetMapTests.testOffsetMapContainsDeclarationOffsetWithDocCommentButNotAlreadyDocumented()`
{
key.offset: 0,
key.length: 105,
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
key.syntaxmap: [
{
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: 10
},
{
key.kind: source.lang.swift.syntaxtype.doccomment,
key.offset: 20,
key.length: 26
},
{
key.kind: source.lang.swift.syntaxtype.keyword,
key.offset: 46,
key.length: 9
},
{
key.kind: source.lang.swift.syntaxtype.identifier,
key.offset: 56,
key.length: 3
},
{
key.kind: source.lang.swift.syntaxtype.typeidentifier,
key.offset: 61,
key.length: 6
},
{
key.kind: source.lang.swift.syntaxtype.keyword,
key.offset: 77,
key.length: 3
},
{
key.kind: source.lang.swift.syntaxtype.keyword,
key.offset: 83,
key.length: 6
},
{
key.kind: source.lang.swift.syntaxtype.keyword,
key.offset: 95,
key.length: 3
}
],
key.substructure: [
{
key.kind: source.lang.swift.decl.struct,
key.accessibility: source.lang.swift.accessibility.internal,
key.name: "VoidStruct",
key.offset: 0,
key.length: 105,
key.nameoffset: 7,
key.namelength: 10,
key.bodyoffset: 19,
key.bodylength: 85,
key.substructure: [
{
key.kind: source.lang.swift.decl.function.subscript,
key.accessibility: source.lang.swift.accessibility.internal,
key.setter_accessibility: source.lang.swift.accessibility.internal,
key.name: "subscript(_:)",
key.offset: 46,
key.length: 57,
key.typename: "()",
key.nameoffset: 46,
key.namelength: 22,
key.bodyoffset: 76,
key.bodylength: 26,
key.docoffset: 20,
key.doclength: 26,
key.substructure: [
{
key.kind: source.lang.swift.decl.var.parameter,
key.name: "key",
key.offset: 56,
key.length: 11,
key.typename: "String",
key.nameoffset: 0,
key.namelength: 0
}
]
},
{
key.kind: source.lang.swift.expr.tuple,
key.offset: 90,
key.length: 2,
key.nameoffset: 0,
key.namelength: 0,
key.bodyoffset: 91,
key.bodylength: 0
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment