Skip to content

Instantly share code, notes, and snippets.

@harlanhaskins
Created November 8, 2016 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlanhaskins/38226593760c2cd0a27e90e9d7ff3bef to your computer and use it in GitHub Desktop.
Save harlanhaskins/38226593760c2cd0a27e90e9d7ff3bef to your computer and use it in GitHub Desktop.
(source_file
(import_decl 'Foundation')
(top_level_code_decl
(brace_stmt
(pattern_binding_decl
(pattern_named type='CGPoint' 'a')
(call_expr type='CGPoint' location=point.swift:2:9 range=[point.swift:2:9 - line:2:38] nothrow arg_labels=x:y:
(constructor_ref_call_expr type='(Int, Int) -> CGPoint' location=point.swift:2:9 range=[point.swift:2:9 - line:2:9] nothrow
(declref_expr implicit type='(CGPoint.Type) -> (Int, Int) -> CGPoint' location=point.swift:2:9 range=[point.swift:2:9 - line:2:9] decl=CoreGraphics.(file).CGPoint.init(x:y:) function_ref=single specialized=no)
(type_expr type='CGPoint.Type' location=point.swift:2:9 range=[point.swift:2:9 - line:2:9] typerepr='CGPoint'))
(tuple_expr type='(x: Int, y: Int)' location=point.swift:2:16 range=[point.swift:2:16 - line:2:38] names=x,y
(binary_expr type='Int' location=point.swift:2:22 range=[point.swift:2:20 - line:2:23] nothrow
(declref_expr type='(Int, Int) -> Int' location=point.swift:2:22 range=[point.swift:2:22 - line:2:22] decl=Swift.(file)./ function_ref=unapplied specialized=no)
(tuple_expr implicit type='(Int, Int)' location=point.swift:2:20 range=[point.swift:2:20 - line:2:23]
(call_expr implicit type='Int' location=point.swift:2:20 range=[point.swift:2:20 - line:2:20] nothrow arg_labels=_builtinIntegerLiteral:
(constructor_ref_call_expr implicit type='(Int2048) -> Int' location=point.swift:2:20 range=[point.swift:2:20 - line:2:20] nothrow
(declref_expr implicit type='(Int.Type) -> (Int2048) -> Int' location=point.swift:2:20 range=[point.swift:2:20 - line:2:20] decl=Swift.(file).Int.init(_builtinIntegerLiteral:) function_ref=single specialized=no)
(type_expr implicit type='Int.Type' location=point.swift:2:20 range=[point.swift:2:20 - line:2:20] typerepr='Int'))
(tuple_expr implicit type='(_builtinIntegerLiteral: Int2048)' location=point.swift:2:20 range=[point.swift:2:20 - line:2:20] names=_builtinIntegerLiteral
(integer_literal_expr type='Int2048' location=point.swift:2:20 range=[point.swift:2:20 - line:2:20] value=90)))
(call_expr implicit type='Int' location=point.swift:2:23 range=[point.swift:2:23 - line:2:23] nothrow arg_labels=_builtinIntegerLiteral:
(constructor_ref_call_expr implicit type='(Int2048) -> Int' location=point.swift:2:23 range=[point.swift:2:23 - line:2:23] nothrow
(declref_expr implicit type='(Int.Type) -> (Int2048) -> Int' location=point.swift:2:23 range=[point.swift:2:23 - line:2:23] decl=Swift.(file).Int.init(_builtinIntegerLiteral:) function_ref=single specialized=no)
(type_expr implicit type='Int.Type' location=point.swift:2:23 range=[point.swift:2:23 - line:2:23] typerepr='Int'))
(tuple_expr implicit type='(_builtinIntegerLiteral: Int2048)' location=point.swift:2:23 range=[point.swift:2:23 - line:2:23] names=_builtinIntegerLiteral
(integer_literal_expr type='Int2048' location=point.swift:2:23 range=[point.swift:2:23 - line:2:23] value=375)))))
(binary_expr type='Int' location=point.swift:2:34 range=[point.swift:2:31 - line:2:35] nothrow
(declref_expr type='(Int, Int) -> Int' location=point.swift:2:34 range=[point.swift:2:34 - line:2:34] decl=Swift.(file)./ function_ref=unapplied specialized=no)
(tuple_expr implicit type='(Int, Int)' location=point.swift:2:31 range=[point.swift:2:31 - line:2:35]
(call_expr implicit type='Int' location=point.swift:2:31 range=[point.swift:2:31 - line:2:31] nothrow arg_labels=_builtinIntegerLiteral:
(constructor_ref_call_expr implicit type='(Int2048) -> Int' location=point.swift:2:31 range=[point.swift:2:31 - line:2:31] nothrow
(declref_expr implicit type='(Int.Type) -> (Int2048) -> Int' location=point.swift:2:31 range=[point.swift:2:31 - line:2:31] decl=Swift.(file).Int.init(_builtinIntegerLiteral:) function_ref=single specialized=no)
(type_expr implicit type='Int.Type' location=point.swift:2:31 range=[point.swift:2:31 - line:2:31] typerepr='Int'))
(tuple_expr implicit type='(_builtinIntegerLiteral: Int2048)' location=point.swift:2:31 range=[point.swift:2:31 - line:2:31] names=_builtinIntegerLiteral
(integer_literal_expr type='Int2048' location=point.swift:2:31 range=[point.swift:2:31 - line:2:31] value=230)))
(call_expr implicit type='Int' location=point.swift:2:35 range=[point.swift:2:35 - line:2:35] nothrow arg_labels=_builtinIntegerLiteral:
(constructor_ref_call_expr implicit type='(Int2048) -> Int' location=point.swift:2:35 range=[point.swift:2:35 - line:2:35] nothrow
(declref_expr implicit type='(Int.Type) -> (Int2048) -> Int' location=point.swift:2:35 range=[point.swift:2:35 - line:2:35] decl=Swift.(file).Int.init(_builtinIntegerLiteral:) function_ref=single specialized=no)
(type_expr implicit type='Int.Type' location=point.swift:2:35 range=[point.swift:2:35 - line:2:35] typerepr='Int'))
(tuple_expr implicit type='(_builtinIntegerLiteral: Int2048)' location=point.swift:2:35 range=[point.swift:2:35 - line:2:35] names=_builtinIntegerLiteral
(integer_literal_expr type='Int2048' location=point.swift:2:35 range=[point.swift:2:35 - line:2:35] value=375))))))))
))
(var_decl "a" type='CGPoint' access=internal let storage_kind=stored)
(top_level_code_decl
(brace_stmt
(pattern_binding_decl
(pattern_named type='CGPoint' 'b')
(call_expr type='CGPoint' location=point.swift:3:9 range=[point.swift:3:9 - line:3:36] nothrow arg_labels=x:y:
(constructor_ref_call_expr type='(Double, Double) -> CGPoint' location=point.swift:3:9 range=[point.swift:3:9 - line:3:9] nothrow
(declref_expr implicit type='(CGPoint.Type) -> (Double, Double) -> CGPoint' location=point.swift:3:9 range=[point.swift:3:9 - line:3:9] decl=CoreGraphics.(file).CGPoint.init(x:y:) function_ref=single specialized=no)
(type_expr type='CGPoint.Type' location=point.swift:3:9 range=[point.swift:3:9 - line:3:9] typerepr='CGPoint'))
(tuple_expr type='(x: Double, y: Double)' location=point.swift:3:16 range=[point.swift:3:16 - line:3:36] names=x,y
(call_expr implicit type='Double' location=point.swift:3:20 range=[point.swift:3:20 - line:3:20] nothrow arg_labels=_builtinFloatLiteral:
(constructor_ref_call_expr implicit type='(FPIEEE80) -> Double' location=point.swift:3:20 range=[point.swift:3:20 - line:3:20] nothrow
(declref_expr implicit type='(Double.Type) -> (FPIEEE80) -> Double' location=point.swift:3:20 range=[point.swift:3:20 - line:3:20] decl=Swift.(file).Double.init(_builtinFloatLiteral:) function_ref=single specialized=no)
(type_expr implicit type='Double.Type' location=point.swift:3:20 range=[point.swift:3:20 - line:3:20] typerepr='Double'))
(tuple_expr implicit type='(_builtinFloatLiteral: FPIEEE80)' location=point.swift:3:20 range=[point.swift:3:20 - line:3:20] names=_builtinFloatLiteral
(float_literal_expr type='FPIEEE80' location=point.swift:3:20 range=[point.swift:3:20 - line:3:20] value=0.24)))
(binary_expr type='Double' location=point.swift:3:32 range=[point.swift:3:29 - line:3:33] nothrow
(declref_expr type='(Double, Double) -> Double' location=point.swift:3:32 range=[point.swift:3:32 - line:3:32] decl=Swift.(file)./ function_ref=unapplied specialized=no)
(tuple_expr implicit type='(Double, Double)' location=point.swift:3:29 range=[point.swift:3:29 - line:3:33]
(call_expr implicit type='Double' location=point.swift:3:29 range=[point.swift:3:29 - line:3:29] nothrow arg_labels=_builtinIntegerLiteral:
(constructor_ref_call_expr implicit type='(Int2048) -> Double' location=point.swift:3:29 range=[point.swift:3:29 - line:3:29] nothrow
(declref_expr implicit type='(Double.Type) -> (Int2048) -> Double' location=point.swift:3:29 range=[point.swift:3:29 - line:3:29] decl=Swift.(file).Double.init(_builtinIntegerLiteral:) function_ref=single specialized=no)
(type_expr implicit type='Double.Type' location=point.swift:3:29 range=[point.swift:3:29 - line:3:29] typerepr='Double'))
(tuple_expr implicit type='(_builtinIntegerLiteral: Int2048)' location=point.swift:3:29 range=[point.swift:3:29 - line:3:29] names=_builtinIntegerLiteral
(integer_literal_expr type='Int2048' location=point.swift:3:29 range=[point.swift:3:29 - line:3:29] value=230)))
(call_expr implicit type='Double' location=point.swift:3:33 range=[point.swift:3:33 - line:3:33] nothrow arg_labels=_builtinIntegerLiteral:
(constructor_ref_call_expr implicit type='(Int2048) -> Double' location=point.swift:3:33 range=[point.swift:3:33 - line:3:33] nothrow
(declref_expr implicit type='(Double.Type) -> (Int2048) -> Double' location=point.swift:3:33 range=[point.swift:3:33 - line:3:33] decl=Swift.(file).Double.init(_builtinIntegerLiteral:) function_ref=single specialized=no)
(type_expr implicit type='Double.Type' location=point.swift:3:33 range=[point.swift:3:33 - line:3:33] typerepr='Double'))
(tuple_expr implicit type='(_builtinIntegerLiteral: Int2048)' location=point.swift:3:33 range=[point.swift:3:33 - line:3:33] names=_builtinIntegerLiteral
(integer_literal_expr type='Int2048' location=point.swift:3:33 range=[point.swift:3:33 - line:3:33] value=375))))))))
))
(var_decl "b" type='CGPoint' access=internal let storage_kind=stored)
(top_level_code_decl
(brace_stmt
(call_expr type='()' location=point.swift:4:1 range=[point.swift:4:1 - line:4:8] nothrow arg_labels=_:
(declref_expr type='(Any..., String, String) -> ()' location=point.swift:4:1 range=[point.swift:4:1 - line:4:1] decl=Swift.(file).print(_:separator:terminator:) function_ref=single specialized=no)
(tuple_shuffle_expr implicit type='(Any..., separator: String, terminator: String)' location=point.swift:4:7 range=[point.swift:4:6 - line:4:8] sourceIsScalar elements=[-2, -1, -1] variadic_sources=[0]
(paren_expr type='Any' location=point.swift:4:7 range=[point.swift:4:6 - line:4:8]
(erasure_expr implicit type='Any' location=point.swift:4:7 range=[point.swift:4:7 - line:4:7]
(declref_expr type='CGPoint' location=point.swift:4:7 range=[point.swift:4:7 - line:4:7] decl=point.(file).a@point.swift:2:5 direct_to_storage function_ref=unapplied specialized=no)))))))
(top_level_code_decl
(brace_stmt
(call_expr type='()' location=point.swift:5:1 range=[point.swift:5:1 - line:5:8] nothrow arg_labels=_:
(declref_expr type='(Any..., String, String) -> ()' location=point.swift:5:1 range=[point.swift:5:1 - line:5:1] decl=Swift.(file).print(_:separator:terminator:) function_ref=single specialized=no)
(tuple_shuffle_expr implicit type='(Any..., separator: String, terminator: String)' location=point.swift:5:7 range=[point.swift:5:6 - line:5:8] sourceIsScalar elements=[-2, -1, -1] variadic_sources=[0]
(paren_expr type='Any' location=point.swift:5:7 range=[point.swift:5:6 - line:5:8]
(erasure_expr implicit type='Any' location=point.swift:5:7 range=[point.swift:5:7 - line:5:7]
(declref_expr type='CGPoint' location=point.swift:5:7 range=[point.swift:5:7 - line:5:7] decl=point.(file).b@point.swift:3:5 direct_to_storage function_ref=unapplied specialized=no))))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment