Skip to content

Instantly share code, notes, and snippets.

@nzatsepilov
Last active November 6, 2016 17:06
Show Gist options
  • Save nzatsepilov/9c7c93f9da7117b166b7075a58995e38 to your computer and use it in GitHub Desktop.
Save nzatsepilov/9c7c93f9da7117b166b7075a58995e38 to your computer and use it in GitHub Desktop.
sourcekitten structure --text "struct A { func b() {} }"
{
"key.length": 24,
"key.diagnostic_stage": "source.diagnostic.stage.swift.parse",
"key.substructure": [
{
"key.bodylength": 13,
"key.namelength": 1,
"key.length": 24,
"key.kind": "source.lang.swift.decl.struct",
"key.name": "A",
"key.accessibility": "source.lang.swift.accessibility.internal",
"key.nameoffset": 7,
"key.bodyoffset": 10,
"key.substructure": [
{
"key.bodylength": 0,
"key.namelength": 3,
"key.length": 11,
"key.kind": "source.lang.swift.decl.function.method.instance",
"key.name": "b()",
"key.accessibility": "source.lang.swift.accessibility.internal",
"key.nameoffset": 16,
"key.bodyoffset": 21,
"key.offset": 11
}
],
"key.offset": 0
}
],
"key.offset": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment