Skip to content

Instantly share code, notes, and snippets.

Ian Leitch ileitch

  • Munich, Germany
Block or report user

Report or block ileitch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ce4969f04bc9e14f5b9441aac270d32a
# Xcode 10.1
Declaration(protocol, 'MyProtocol', internal, [], 's:17RetentionFixtures10MyProtocolP', testBug.swift:3:10)
··Reference(typealias, 'AnyObject', 's:s9AnyObjecta', nil, testBug.swift:3:22)
··Declaration(function.method.static, 'someMethod()', internal, [], 's:17RetentionFixtures10MyProtocolP10someMethodyyFZ', testBug.swift:4:17)
Declaration(class, 'MyBase', open, [open], 's:17RetentionFixtures6MyBaseC', testBug.swift:7:12)
··Reference(protocol, 'MyProtocol', 's:17RetentionFixtures10MyProtocolP', nil, testBug.swift:7:20)
··Related(protocol, 'MyProtocol', 's:17RetentionFixtures10MyProtocolP', nil, testBug.swift:7:20)
··Declaration(function.constructor, nil, internal, [], 's:17RetentionFixtures6MyBaseCACycfc', testBug.swift:7:12)
View gist:e3464d7d66232a87613455f5686de7b2
# Xcode 10.2 beta 2
Declaration(protocol, 'MyProtocol', internal, [], 's:17RetentionFixtures10MyProtocolP', testBug.swift:3:10)
··Reference(typealias, 'AnyObject', 's:s9AnyObjecta', nil, testBug.swift:3:22)
··Declaration(function.method.static, 'someMethod()', internal, [], 's:17RetentionFixtures10MyProtocolP10someMethodyyFZ', testBug.swift:4:17)
Declaration(class, 'MyBase', open, [open], 's:17RetentionFixtures6MyBaseC', testBug.swift:7:12)
··Reference(protocol, 'MyProtocol', 's:17RetentionFixtures10MyProtocolP', nil, testBug.swift:7:20)
··Related(protocol, 'MyProtocol', 's:17RetentionFixtures10MyProtocolP', nil, testBug.swift:7:20)
··Declaration(function.constructor, nil, internal, [], 's:17RetentionFixtures6MyBaseCACycfc', testBug.swift:7:12)
View gist:8d981f122bab39035d4c785303b03363
# Xcode 10.2 beta 2
{
"key.entities" : [
{
"key.line" : 1,
"key.usr" : "c:@M@Foundation",
"key.column" : 8,
"key.name" : "Foundation",
"key.kind" : "source.lang.swift.ref.module"
View gist:2340a1200f3fec0fe15605651f95c8f2
# Xcode 10.1
{
"key.hash" : "TKPSNCTWPEQW",
"key.dependencies" : [
{
"key.kind" : "source.lang.swift.import.module.swift",
"key.hash" : "1WTOKLWFGHV0G",
"key.is_system" : true,
"key.filepath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/lib\/swift\/macosx\/x86_64\/Swift.swiftmodule",
View gist:a9af5dd21852446084ce0877616d97cc
# 10.2 beta 2
{
"key.entities" : [
{
"key.kind" : "source.lang.swift.ref.module",
"key.column" : 8,
"key.name" : "Foundation",
"key.line" : 1,
"key.usr" : "c:@M@Foundation"
View gist:67f6a176dc71df24ece484594bbea21c
# 10.1
{
"key.dependencies" : [
{
"key.is_system" : true,
"key.hash" : "F205OQLFSHXT",
"key.name" : "Swift",
"key.filepath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/lib\/swift\/macosx\/x86_64\/Swift.swiftmodule",
"key.kind" : "source.lang.swift.import.module.swift"
View index.json
{
"key.entities" : [
{
"key.kind" : "source.lang.swift.decl.protocol",
"key.name" : "FixtureProtocol100",
"key.line" : 4,
"key.column" : 10,
"key.entities" : [
{
"key.kind" : "source.lang.swift.decl.var.instance",
View bug.swift
import Foundation
import Cocoa
protocol FixtureProtocol100 {
var someGetSetVar: Bool { get set }
}
extension FixtureProtocol100 {
var someGetSetVar: Bool {
get { return false }
View index.swift
{
"key.entities": [
{
"key.column": 7,
"key.usr": "s:25PeripheryKitTestsFixtures14FixtureClass95C",
"key.kind": "source.lang.swift.decl.class",
"key.line": 4,
"key.entities": [
{
"key.entities": [
View bug.swift
import Foundation
class FixtureClass95 {
private static var someVar: String!
private var someVar: String! {
return FixtureClass95.someVar
}
}
You can’t perform that action at this time.