Created
January 25, 2018 14:07
-
-
Save anonymous/810891c03cf5a57d195b3e0b9c18cadc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"key.diagnostic_stage" : "source.diagnostic.stage.swift.parse", | |
"key.length" : 154, | |
"key.offset" : 0, | |
"key.substructure" : [ | |
{ | |
"key.accessibility" : "source.lang.swift.accessibility.internal", | |
"key.bodylength" : 2, | |
"key.bodyoffset" : 30, | |
"key.elements" : [ | |
{ | |
"key.kind" : "source.lang.swift.structure.elem.typeref", | |
"key.length" : 5, | |
"key.offset" : 23 | |
} | |
], | |
"key.inheritedtypes" : [ | |
{ | |
"key.name" : "class" | |
} | |
], | |
"key.kind" : "source.lang.swift.decl.protocol", | |
"key.length" : 33, | |
"key.name" : "TestDelegate", | |
"key.namelength" : 12, | |
"key.nameoffset" : 9, | |
"key.offset" : 0, | |
"key.runtime_name" : "_TtP8__main__12TestDelegate_" | |
}, | |
{ | |
"key.accessibility" : "source.lang.swift.accessibility.internal", | |
"key.bodylength" : 44, | |
"key.bodyoffset" : 58, | |
"key.kind" : "source.lang.swift.decl.protocol", | |
"key.length" : 68, | |
"key.name" : "TestProtocol", | |
"key.namelength" : 12, | |
"key.nameoffset" : 44, | |
"key.offset" : 35, | |
"key.runtime_name" : "_TtP8__main__12TestProtocol_", | |
"key.substructure" : [ | |
{ | |
"key.accessibility" : "source.lang.swift.accessibility.internal", | |
"key.attributes" : [ | |
{ | |
"key.attribute" : "source.decl.attribute.weak", | |
"key.length" : 4, | |
"key.offset" : 61 | |
} | |
], | |
"key.bodylength" : 5, | |
"key.bodyoffset" : 95, | |
"key.kind" : "source.lang.swift.decl.var.instance", | |
"key.length" : 35, | |
"key.name" : "delegate", | |
"key.namelength" : 8, | |
"key.nameoffset" : 70, | |
"key.offset" : 66, | |
"key.typename" : "TestDelegate?" | |
} | |
] | |
}, | |
{ | |
"key.accessibility" : "source.lang.swift.accessibility.internal", | |
"key.bodylength" : 35, | |
"key.bodyoffset" : 117, | |
"key.kind" : "source.lang.swift.decl.class", | |
"key.length" : 48, | |
"key.name" : "Test", | |
"key.namelength" : 4, | |
"key.nameoffset" : 111, | |
"key.offset" : 105, | |
"key.runtime_name" : "_TtC8__main__4Test", | |
"key.substructure" : [ | |
{ | |
"key.accessibility" : "source.lang.swift.accessibility.internal", | |
"key.attributes" : [ | |
{ | |
"key.attribute" : "source.decl.attribute.weak", | |
"key.length" : 4, | |
"key.offset" : 120 | |
} | |
], | |
"key.kind" : "source.lang.swift.decl.var.instance", | |
"key.length" : 26, | |
"key.name" : "delegate", | |
"key.namelength" : 8, | |
"key.nameoffset" : 129, | |
"key.offset" : 125, | |
"key.setter_accessibility" : "source.lang.swift.accessibility.internal", | |
"key.typename" : "TestDelegate" | |
} | |
] | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol TestDelegate: class { | |
} | |
protocol TestProtocol { | |
weak var delegate: TestDelegate? { get } | |
} | |
class Test { | |
weak var delegate: TestDelegate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment