Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fix local decl
--- pat.diff 2018-03-12 14:53:39.000000000 -0700
+++ pat2.diff 2018-03-12 14:54:14.000000000 -0700
@@ -15,25 +15,25 @@
decl: var intField: Int for 'intField' usr=s:14swift_ide_test8Myclass1C8intFieldSivp
decl: init() for '' usr=s:14swift_ide_test8Myclass1CACycfc
decl: func f1() for 'f1' usr=s:14swift_ide_test2f1yyF
-decl: func f1() for 's1ins' usr=s:14swift_ide_test2f1yyF5s1insL_AA9Mystruct1Vvp
+decl: var s1ins: Mystruct1 for 's1ins' usr=s:14swift_ide_test2f1yyF5s1insL_AA9Mystruct1Vvp
type: Mystruct1 for 's1ins' mangled=$S14swift_ide_test9Mystruct1VD
type: Int for 'intField' mangled=$SSiD
-decl: func f1() for 'c1ins' usr=s:14swift_ide_test2f1yyF5c1insL_AA8Myclass1Cvp
+decl: var c1ins: Myclass1 for 'c1ins' usr=s:14swift_ide_test2f1yyF5c1insL_AA8Myclass1Cvp
type: Myclass1 for 'c1ins' mangled=$S14swift_ide_test8Myclass1CD
type: Int for 'intField' mangled=$SSiD
type: Mystruct1 for 's1ins' mangled=$S14swift_ide_test9Mystruct1VD
type: (Mystruct1) -> () -> Int for 's1f1' mangled=$SySiyc14swift_ide_test9Mystruct1VcD
-decl: func f1() for 'ifletf1' usr=s:14swift_ide_test2f1yyF7ifletf1L_Sivp
+decl: struct Int : FixedWidthInteger, SignedInteger, _ExpressibleByBuiltinIntegerLiteral for 'ifletf1' usr=s:14swift_ide_test2f1yyF7ifletf1L_Sivp
decl: class Myclass2 for 'Myclass2' usr=s:14swift_ide_test8Myclass2C
decl: func f1() for 'f1' usr=s:14swift_ide_test8Myclass2C2f1yyF
-decl: func f1() for 'arr1' usr=s:14swift_ide_test8Myclass2C2f1yyF4arr1L_SaySiGvp
+decl: var arr1: [Int] for 'arr1' usr=s:14swift_ide_test8Myclass2C2f1yyF4arr1L_SaySiGvp
type: Array<Int> for 'arr1' mangled=$SSaySiGD
dref: FAILURE for 'append' usr=s:Sa6appendyyxF decl for symbol name '$SSa6appendyyxF' was not found
type: (inout Array<Int>) -> (Int) -> () for 'append' mangled=$SyySicSaySiGzcD
-decl: func f1() for 'arr2' usr=s:14swift_ide_test8Myclass2C2f1yyF4arr2L_SayAA9Mystruct1VGvp
+decl: var arr2: [Mystruct1] for 'arr2' usr=s:14swift_ide_test8Myclass2C2f1yyF4arr2L_SayAA9Mystruct1VGvp
type: Array<Mystruct1> for 'arr2' mangled=$SSay14swift_ide_test9Mystruct1VGD
type: (inout Array<Mystruct1>) -> (Mystruct1) -> () for 'append' mangled=$Syy14swift_ide_test9Mystruct1VcSayACGzcD
-decl: func f1() for 'arr3' usr=s:14swift_ide_test8Myclass2C2f1yyF4arr3L_SayAA8Myclass1CGvp
+decl: var arr3: [Myclass1] for 'arr3' usr=s:14swift_ide_test8Myclass2C2f1yyF4arr3L_SayAA8Myclass1CGvp
type: Array<Myclass1> for 'arr3' mangled=$SSay14swift_ide_test8Myclass1CGD
type: (inout Array<Myclass1>) -> (Myclass1) -> () for 'append' mangled=$Syy14swift_ide_test8Myclass1CcSayACGzcD
dref: init() for 'init' usr=s:14swift_ide_test8Myclass2CACycfc
@@ -43,10 +43,10 @@
decl: for 'pasta' usr=s:14swift_ide_test6MyEnumO5pastayA2CmF
decl: func method() -> Int for 'method' usr=s:14swift_ide_test6MyEnumO6methodSiyF
decl: func compare(_ other: MyEnum) -> Int for 'compare' usr=s:14swift_ide_test6MyEnumO7compareySiACF
-decl: func compare(_ other: MyEnum) -> Int for 'other' usr=s:14swift_ide_test6MyEnumO7compareySiACF5otherL_ACvp
+decl: let other: MyEnum for 'other' usr=s:14swift_ide_test6MyEnumO7compareySiACF5otherL_ACvp
decl: mutating func mutatingMethod() for 'mutatingMethod' usr=s:14swift_ide_test6MyEnumO14mutatingMethodyyF
decl: func f2() for 'f2' usr=s:14swift_ide_test2f2yyF
-decl: func f2() for 'e' usr=s:14swift_ide_test2f2yyF1eL_AA6MyEnumOvp
+decl: var e: MyEnum for 'e' usr=s:14swift_ide_test2f2yyF1eL_AA6MyEnumOvp
type: (MyEnum.Type) -> MyEnum for 'pasta' mangled=$Sy14swift_ide_test6MyEnumOACmcD
type: MyEnum for 'e' mangled=$S14swift_ide_test6MyEnumOD
type: (MyEnum) -> () -> Int for 'method' mangled=$SySiyc14swift_ide_test6MyEnumOcD
@@ -69,14 +69,14 @@
type: U for 'y' mangled=$S14swift_ide_test12MyGenStruct1VQq0_D
type: V for 'z' mangled=$S14swift_ide_test12MyGenStruct1VQq1_D
decl: func takesT(_ t: T) for 'takesT' usr=s:14swift_ide_test12MyGenStruct1V6takesTyyxF
-decl: func takesT(_ t: T) for 't' usr=s:14swift_ide_test12MyGenStruct1V6takesTyyxF1tL_xvp
+decl: let t: T for 't' usr=s:14swift_ide_test12MyGenStruct1V6takesTyyxF1tL_xvp
decl: init(x: T, y: U, z: V) for '' usr=s:14swift_ide_test12MyGenStruct1V1x1y1zACyxq_q0_Gx_q_q0_tcfc
decl: let genstruct1: MyGenStruct1<Int, String, [Float]> for 'genstruct1' usr=s:14swift_ide_test10genstruct1AA12MyGenStruct1VySiSSSaySfGGvp
dref: struct String for 'String' usr=s:SS
dref: struct Float for 'Float' usr=s:Sf
decl: func test001() for 'test001' usr=s:14swift_ide_test7test001yyF
type: MyGenStruct1<Int, String, Array<Float>> for 'genstruct1' mangled=$S14swift_ide_test12MyGenStruct1VySiSSSaySfGGD
-decl: func test001() for 'genstruct2' usr=s:14swift_ide_test7test001yyF10genstruct2L_AA12MyGenStruct1VySiSSs10DictionaryVyS2iGGvp
+decl: var genstruct2: MyGenStruct1<Int, String, [Int : Int]> for 'genstruct2' usr=s:14swift_ide_test7test001yyF10genstruct2L_AA12MyGenStruct1VySiSSs10DictionaryVyS2iGGvp
type: MyGenStruct1<Int, String, Dictionary<Int, Int>> for 'genstruct2' mangled=$S14swift_ide_test12MyGenStruct1VySiSSs10DictionaryVyS2iGGD
type: MyGenStruct1<Int, String, Dictionary<Int, Int>> for 'genstruct2' mangled=$S14swift_ide_test12MyGenStruct1VySiSSs10DictionaryVyS2iGGD
type: Int for 'x' mangled=$SSiD
@@ -88,30 +88,30 @@
type: (MyGenStruct1<Int, String, Dictionary<Int, Int>>) -> (Int) -> () for 'takesT' mangled=$SyySic14swift_ide_test12MyGenStruct1VySiSSs10DictionaryVyS2iGGcD
decl: protocol P1 for 'P1' usr=s:14swift_ide_test2P1P
decl: func foo1(p: P1) for 'foo1' usr=s:14swift_ide_test4foo11pyAA2P1_p_tF
-decl: func foo1(p: P1) for 'p' usr=s:14swift_ide_test4foo11pyAA2P1_p_tFACL_AaD_pvp
+decl: let p: P1 for 'p' usr=s:14swift_ide_test4foo11pyAA2P1_p_tFACL_AaD_pvp
type: (P1) -> () for 'foo1' mangled=$S1py14swift_ide_test2P1_p_tcD
type: P1 for 'p' mangled=$S14swift_ide_test2P1_pD
decl: protocol P2 for 'P2' usr=s:14swift_ide_test2P2P
decl: func foo2(p: P1 & P2) for 'foo2' usr=s:14swift_ide_test4foo21pyAA2P1_AA2P2p_tF
-decl: func foo2(p: P1 & P2) for 'p' usr=s:14swift_ide_test4foo21pyAA2P1_AA2P2p_tFACL_AaD_AaEpvp
+decl: let p: P1 & P2 for 'p' usr=s:14swift_ide_test4foo21pyAA2P1_AA2P2p_tFACL_AaD_AaEpvp
type: (P1 & P2) -> () for 'foo2' mangled=$S1py14swift_ide_test2P1_AB2P2p_tcD
type: P1 & P2 for 'p' mangled=$S14swift_ide_test2P1_AA2P2pD
decl: func foo3(p: P1 & AnyObject) for 'foo3' usr=s:14swift_ide_test4foo31pyAA2P1_Xl_tF
-decl: func foo3(p: P1 & AnyObject) for 'p' usr=s:14swift_ide_test4foo31pyAA2P1_Xl_tFACL_AaD_Xlvp
+decl: let p: P1 & AnyObject for 'p' usr=s:14swift_ide_test4foo31pyAA2P1_Xl_tFACL_AaD_Xlvp
dref: typealias AnyObject = AnyObject for 'AnyObject' usr=s:s9AnyObjecta
type: (P1 & AnyObject) -> () for 'foo3' mangled=$S1py14swift_ide_test2P1_Xl_tcD
type: P1 & AnyObject for 'p' mangled=$S14swift_ide_test2P1_XlD
decl: func foo4(p: Myclass1 & P1 & P2) for 'foo4' usr=s:14swift_ide_test4foo41pyAA2P1_AA2P2AA8Myclass1CXc_tF
-decl: func foo4(p: Myclass1 & P1 & P2) for 'p' usr=s:14swift_ide_test4foo41pyAA2P1_AA2P2AA8Myclass1CXc_tFACL_AaD_AaeGXcvp
+decl: let p: Myclass1 & P1 & P2 for 'p' usr=s:14swift_ide_test4foo41pyAA2P1_AA2P2AA8Myclass1CXc_tFACL_AaD_AaeGXcvp
type: (Myclass1 & P1 & P2) -> () for 'foo4' mangled=$S1py14swift_ide_test2P1_AB2P2AB8Myclass1CXc_tcD
type: Myclass1 & P1 & P2 for 'p' mangled=$S14swift_ide_test2P1_AA2P2AA8Myclass1CXcD
decl: func genericFunction<T>(t: T) where T : AnyObject for 'genericFunction' usr=s:14swift_ide_test15genericFunction1tyx_tRlzClF
decl: FAILURE for 'T' usr=s:14swift_ide_test15genericFunction1tyx_tRlzClF1TL_xmfp decl for symbol name '$S14swift_ide_test15genericFunction1tyx_tRlzClF1TL_xmfp' was not found
-decl: func genericFunction<T>(t: T) where T : AnyObject for 't' usr=s:14swift_ide_test15genericFunction1tyx_tRlzClFACL_xvp
+decl: let t: T for 't' usr=s:14swift_ide_test15genericFunction1tyx_tRlzClFACL_xvp
type: (T) -> () for 'genericFunction' mangled=$S1ty14swift_ide_test15genericFunctionAAyx_tRlzClFQq__tcD
type: T for 't' mangled=$S14swift_ide_test15genericFunction1tyx_tRlzClFQq_D
decl: func takesInOut(fn: (inout Int) -> ()) for 'takesInOut' usr=s:14swift_ide_test10takesInOut2fnyySizXE_tF
-decl: func takesInOut(fn: (inout Int) -> ()) for 'fn' usr=s:14swift_ide_test10takesInOut2fnyySizXE_tFACL_yySizXEvp
+decl: let fn: (inout Int) -> () for 'fn' usr=s:14swift_ide_test10takesInOut2fnyySizXE_tFACL_yySizXEvp
decl: struct Outer for 'Outer' usr=s:14swift_ide_test5OuterV
decl: struct Inner for 'Inner' usr=s:14swift_ide_test5OuterV5InnerV
decl: let x: Int for 'x' usr=s:14swift_ide_test5OuterV5InnerV1xSivp
@@ -134,19 +134,19 @@
decl: init(t: T, u: U) for '' usr=s:14swift_ide_test12GenericOuterV0D5InnerV1t1uAEyx_qd__Gx_qd__tcfc
decl: init() for '' usr=s:14swift_ide_test12GenericOuterVACyxGycfc
decl: func takesGeneric(_ t: Outer.GenericInner<Int>) for 'takesGeneric' usr=s:14swift_ide_test12takesGenericyyAA5OuterV0E5InnerVy_SiGF
-decl: func takesGeneric(_ t: Outer.GenericInner<Int>) for 't' usr=s:14swift_ide_test12takesGenericyyAA5OuterV0E5InnerVy_SiGF1tL_AGvp
+decl: let t: Outer.GenericInner<Int> for 't' usr=s:14swift_ide_test12takesGenericyyAA5OuterV0E5InnerVy_SiGF1tL_AGvp
type: (Outer.GenericInner<Int>) -> () for 'takesGeneric' mangled=$Syy14swift_ide_test5OuterV12GenericInnerVy_SiGcD
type: Outer.GenericInner<Int> for 't' mangled=$S14swift_ide_test5OuterV12GenericInnerVy_SiGD
decl: func takesGeneric(_ t: GenericOuter<Int>.Inner) for 'takesGeneric' usr=s:14swift_ide_test12takesGenericyyAA0E5OuterV5InnerVySi_GF
-decl: func takesGeneric(_ t: GenericOuter<Int>.Inner) for 't' usr=s:14swift_ide_test12takesGenericyyAA0E5OuterV5InnerVySi_GF1tL_AGvp
+decl: let t: GenericOuter<Int>.Inner for 't' usr=s:14swift_ide_test12takesGenericyyAA0E5OuterV5InnerVySi_GF1tL_AGvp
type: (GenericOuter<Int>.Inner) -> () for 'takesGeneric' mangled=$Syy14swift_ide_test12GenericOuterV5InnerVySi_GcD
type: GenericOuter<Int>.Inner for 't' mangled=$S14swift_ide_test12GenericOuterV5InnerVySi_GD
decl: func takesGeneric(_ t: GenericOuter<Int>.GenericInner<String>) for 'takesGeneric' usr=s:14swift_ide_test12takesGenericyyAA0E5OuterV0E5InnerVySi_SSGF
-decl: func takesGeneric(_ t: GenericOuter<Int>.GenericInner<String>) for 't' usr=s:14swift_ide_test12takesGenericyyAA0E5OuterV0E5InnerVySi_SSGF1tL_AGvp
+decl: let t: GenericOuter<Int>.GenericInner<String> for 't' usr=s:14swift_ide_test12takesGenericyyAA0E5OuterV0E5InnerVySi_SSGF1tL_AGvp
type: (GenericOuter<Int>.GenericInner<String>) -> () for 'takesGeneric' mangled=$Syy14swift_ide_test12GenericOuterV0D5InnerVySi_SSGcD
type: GenericOuter<Int>.GenericInner<String> for 't' mangled=$S14swift_ide_test12GenericOuterV0D5InnerVySi_SSGD
decl: func hasLocalDecls() for 'hasLocalDecls' usr=s:14swift_ide_test13hasLocalDeclsyyF
-decl: func hasLocalDecls() for 'localFunction' usr=s:14swift_ide_test13hasLocalDeclsyyF13localFunctionL_yyF
+decl: func localFunction() for 'localFunction' usr=s:14swift_ide_test13hasLocalDeclsyyF13localFunctionL_yyF
decl: FAILURE for 'LocalType' usr=s:14swift_ide_test13hasLocalDeclsyyF0E4TypeL_V unable to lookup local type 14swift_ide_test13hasLocalDeclsyyF0E4TypeL_Vdecl for symbol name '$S14swift_ide_test13hasLocalDeclsyyF0E4TypeL_V' was not found
decl: FAILURE for '' usr=s:14swift_ide_test13hasLocalDeclsyyF0E4TypeL_VADycfc decl for symbol name '$S14swift_ide_test13hasLocalDeclsyyF0E4TypeL_VADycfc' was not found
decl: FAILURE for 'LocalAlias' usr=s:14swift_ide_test13hasLocalDeclsyyF0E5AliasL_a unable to lookup local type 14swift_ide_test13hasLocalDeclsyyF0E5AliasL_adecl for symbol name '$S14swift_ide_test13hasLocalDeclsyyF0E5AliasL_a' was not found
@@ -156,7 +156,7 @@
decl: fileprivate struct VeryPrivateData for 'd' usr=s:14swift_ide_test15privateFunction33_D7B956AE2D93947DFA67A1ECF93EF238LLyyAA15VeryPrivateDataACLLVF1dL_AEvp
decl: struct HasSubscript for 'HasSubscript' usr=s:14swift_ide_test12HasSubscriptV
decl: subscript(t: Int) -> Int { get set } for 'subscript' usr=s:14swift_ide_test12HasSubscriptVyS2icip
-decl: struct HasSubscript for 't' usr=s:14swift_ide_test12HasSubscriptV1tL_Sivp
+decl: struct Int : FixedWidthInteger, SignedInteger, _ExpressibleByBuiltinIntegerLiteral for 't' usr=s:14swift_ide_test12HasSubscriptV1tL_Sivp
decl: get {} for '' usr=s:14swift_ide_test12HasSubscriptVyS2icig
dref: struct Int : FixedWidthInteger, SignedInteger, _ExpressibleByBuiltinIntegerLiteral for 't' usr=s:14swift_ide_test12HasSubscriptVyS2icig1tL_Sivp
type: Int for 't' mangled=$SSiD
@@ -166,7 +166,7 @@
decl: FAILURE for 'T' usr=s:14swift_ide_test19HasGenericSubscriptV1Txmfp decl for symbol name '$S14swift_ide_test19HasGenericSubscriptV1Txmfp' was not found
decl: subscript<U>(t: T) -> U { get set } for 'subscript' usr=s:14swift_ide_test19HasGenericSubscriptVyqd__xcluip
decl: FAILURE for 'U' usr=s:14swift_ide_test19HasGenericSubscriptV1UL_qd__mfp decl for symbol name '$S14swift_ide_test19HasGenericSubscriptV1UL_qd__mfp' was not found
-decl: struct HasGenericSubscript<T> for 't' usr=s:14swift_ide_test19HasGenericSubscriptV1tL_xvp
+decl: FAILURE for 't' usr=s:14swift_ide_test19HasGenericSubscriptV1tL_xvp decl for symbol name '$S14swift_ide_test19HasGenericSubscriptV1tL_xvp' was not found
decl: get {} for '' usr=s:14swift_ide_test19HasGenericSubscriptVyqd__xcluig
dref: FAILURE for 't' usr=s:14swift_ide_test19HasGenericSubscriptVyqd__xcluig1tL_xvp decl for symbol name '$S14swift_ide_test19HasGenericSubscriptVyqd__xcluig1tL_xvp' was not found
type: T for 't' mangled=$S14swift_ide_test19HasGenericSubscriptVQq_D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.