{ "kind" : "Program", "location" : [ 2, 1, 105, 70 ], "declarations" : [ { "kind" : "ClassDef", "location" : [ 2, 1, 9, 16 ], "name" : { "kind" : "Identifier", "location" : [ 2, 7, 2, 13 ], "name" : "A_CLASS" }, "superClass" : { "kind" : "Identifier", "location" : [ 2, 15, 2, 20 ], "name" : "object" }, "declarations" : [ { "kind" : "VarDef", "location" : [ 3, 5, 3, 21 ], "var" : { "kind" : "TypedVar", "location" : [ 3, 5, 3, 17 ], "identifier" : { "kind" : "Identifier", "location" : [ 3, 5, 3, 13 ], "name" : "a_class_i" }, "type" : { "kind" : "ClassType", "location" : [ 3, 15, 3, 17 ], "className" : "int" } }, "value" : { "kind" : "IntegerLiteral", "location" : [ 3, 21, 3, 21 ], "value" : 0 } }, { "kind" : "FuncDef", "location" : [ 4, 5, 5, 18 ], "name" : { "kind" : "Identifier", "location" : [ 4, 9, 4, 16 ], "errorMsg" : "Method overridden with different type signature: __init__", "name" : "__init__" }, "params" : [ { "kind" : "TypedVar", "location" : [ 4, 18, 4, 31 ], "identifier" : { "kind" : "Identifier", "location" : [ 4, 18, 4, 21 ], "name" : "self" }, "type" : { "kind" : "ClassType", "location" : [ 4, 23, 4, 31 ], "className" : "A_CLASS" } }, { "kind" : "TypedVar", "location" : [ 4, 34, 4, 38 ], "identifier" : { "kind" : "Identifier", "location" : [ 4, 34, 4, 34 ], "name" : "x" }, "type" : { "kind" : "ClassType", "location" : [ 4, 36, 4, 38 ], "className" : "int" } } ], "returnType" : { "kind" : "ClassType", "location" : [ 4, 40, 4, 40 ], "className" : "" }, "declarations" : [ ], "statements" : [ { "kind" : "AssignStmt", "location" : [ 5, 9, 5, 18 ], "targets" : [ { "kind" : "MemberExpr", "location" : [ 5, 9, 5, 14 ], "object" : { "kind" : "Identifier", "location" : [ 5, 9, 5, 12 ], "name" : "self" }, "member" : { "kind" : "Identifier", "location" : [ 5, 14, 5, 14 ], "name" : "x" } } ], "value" : { "kind" : "Identifier", "location" : [ 5, 18, 5, 18 ], "name" : "x" } } ] }, { "kind" : "FuncDef", "location" : [ 7, 5, 9, 16 ], "name" : { "kind" : "Identifier", "location" : [ 7, 9, 7, 11 ], "name" : "add" }, "params" : [ { "kind" : "TypedVar", "location" : [ 7, 13, 7, 26 ], "identifier" : { "kind" : "Identifier", "location" : [ 7, 13, 7, 16 ], "name" : "self" }, "type" : { "kind" : "ClassType", "location" : [ 7, 18, 7, 26 ], "className" : "A_CLASS" } }, { "kind" : "TypedVar", "location" : [ 7, 29, 7, 33 ], "identifier" : { "kind" : "Identifier", "location" : [ 7, 29, 7, 29 ], "name" : "y" }, "type" : { "kind" : "ClassType", "location" : [ 7, 31, 7, 33 ], "className" : "int" } } ], "returnType" : { "kind" : "ClassType", "location" : [ 7, 39, 7, 41 ], "className" : "int" }, "declarations" : [ ], "statements" : [ { "kind" : "AssignStmt", "location" : [ 8, 9, 8, 20 ], "targets" : [ { "kind" : "Identifier", "location" : [ 8, 9, 8, 9 ], "name" : "y" } ], "value" : { "kind" : "BinaryExpr", "location" : [ 8, 13, 8, 20 ], "left" : { "kind" : "Identifier", "location" : [ 8, 13, 8, 13 ], "name" : "y" }, "operator" : "+", "right" : { "kind" : "MemberExpr", "location" : [ 8, 15, 8, 20 ], "object" : { "kind" : "Identifier", "location" : [ 8, 15, 8, 18 ], "name" : "self" }, "member" : { "kind" : "Identifier", "location" : [ 8, 20, 8, 20 ], "name" : "x" } } } }, { "kind" : "ReturnStmt", "location" : [ 9, 9, 9, 16 ], "value" : { "kind" : "Identifier", "location" : [ 9, 16, 9, 16 ], "name" : "y" } } ] } ] }, { "kind" : "ClassDef", "location" : [ 11, 1, 12, 21 ], "name" : { "kind" : "Identifier", "location" : [ 11, 7, 11, 13 ], "name" : "B_CLASS" }, "superClass" : { "kind" : "Identifier", "location" : [ 11, 15, 11, 20 ], "name" : "object" }, "declarations" : [ { "kind" : "VarDef", "location" : [ 12, 5, 12, 21 ], "var" : { "kind" : "TypedVar", "location" : [ 12, 5, 12, 17 ], "identifier" : { "kind" : "Identifier", "location" : [ 12, 5, 12, 13 ], "name" : "b_class_i" }, "type" : { "kind" : "ClassType", "location" : [ 12, 15, 12, 17 ], "className" : "int" } }, "value" : { "kind" : "IntegerLiteral", "location" : [ 12, 21, 12, 21 ], "value" : 0 } } ] }, { "kind" : "ClassDef", "location" : [ 14, 1, 0, 0 ], "name" : { "kind" : "Identifier", "location" : [ 14, 7, 14, 13 ], "name" : "C_CLASS" }, "superClass" : { "kind" : "Identifier", "location" : [ 14, 15, 14, 21 ], "name" : "B_CLASS" }, "declarations" : [ ] }, { "kind" : "VarDef", "location" : [ 18, 1, 18, 15 ], "var" : { "kind" : "TypedVar", "location" : [ 18, 1, 18, 7 ], "identifier" : { "kind" : "Identifier", "location" : [ 18, 1, 18, 3 ], "name" : "a_s" }, "type" : { "kind" : "ClassType", "location" : [ 18, 5, 18, 7 ], "className" : "str" } }, "value" : { "kind" : "StringLiteral", "location" : [ 18, 11, 18, 15 ], "value" : "a_s" } }, { "kind" : "VarDef", "location" : [ 19, 1, 19, 15 ], "var" : { "kind" : "TypedVar", "location" : [ 19, 1, 19, 7 ], "identifier" : { "kind" : "Identifier", "location" : [ 19, 1, 19, 3 ], "name" : "b_s" }, "type" : { "kind" : "ClassType", "location" : [ 19, 5, 19, 7 ], "className" : "str" } }, "value" : { "kind" : "StringLiteral", "location" : [ 19, 11, 19, 15 ], "value" : "b_s" } }, { "kind" : "VarDef", "location" : [ 20, 1, 20, 15 ], "var" : { "kind" : "TypedVar", "location" : [ 20, 1, 20, 7 ], "identifier" : { "kind" : "Identifier", "location" : [ 20, 1, 20, 3 ], "name" : "c_s" }, "type" : { "kind" : "ClassType", "location" : [ 20, 5, 20, 7 ], "className" : "str" } }, "value" : { "kind" : "StringLiteral", "location" : [ 20, 11, 20, 15 ], "value" : "c_s" } }, { "kind" : "VarDef", "location" : [ 22, 1, 22, 11 ], "var" : { "kind" : "TypedVar", "location" : [ 22, 1, 22, 7 ], "identifier" : { "kind" : "Identifier", "location" : [ 22, 1, 22, 3 ], "name" : "a_i" }, "type" : { "kind" : "ClassType", "location" : [ 22, 5, 22, 7 ], "className" : "int" } }, "value" : { "kind" : "IntegerLiteral", "location" : [ 22, 11, 22, 11 ], "value" : 0 } }, { "kind" : "VarDef", "location" : [ 23, 1, 23, 11 ], "var" : { "kind" : "TypedVar", "location" : [ 23, 1, 23, 7 ], "identifier" : { "kind" : "Identifier", "location" : [ 23, 1, 23, 3 ], "name" : "b_i" }, "type" : { "kind" : "ClassType", "location" : [ 23, 5, 23, 7 ], "className" : "int" } }, "value" : { "kind" : "IntegerLiteral", "location" : [ 23, 11, 23, 11 ], "value" : 0 } }, { "kind" : "VarDef", "location" : [ 24, 1, 24, 11 ], "var" : { "kind" : "TypedVar", "location" : [ 24, 1, 24, 7 ], "identifier" : { "kind" : "Identifier", "location" : [ 24, 1, 24, 3 ], "name" : "c_i" }, "type" : { "kind" : "ClassType", "location" : [ 24, 5, 24, 7 ], "className" : "int" } }, "value" : { "kind" : "IntegerLiteral", "location" : [ 24, 11, 24, 11 ], "value" : 0 } }, { "kind" : "VarDef", "location" : [ 26, 1, 26, 16 ], "var" : { "kind" : "TypedVar", "location" : [ 26, 1, 26, 8 ], "identifier" : { "kind" : "Identifier", "location" : [ 26, 1, 26, 3 ], "name" : "a_b" }, "type" : { "kind" : "ClassType", "location" : [ 26, 5, 26, 8 ], "className" : "bool" } }, "value" : { "kind" : "BooleanLiteral", "location" : [ 26, 12, 26, 16 ], "value" : false } }, { "kind" : "VarDef", "location" : [ 27, 1, 27, 16 ], "var" : { "kind" : "TypedVar", "location" : [ 27, 1, 27, 8 ], "identifier" : { "kind" : "Identifier", "location" : [ 27, 1, 27, 3 ], "name" : "b_b" }, "type" : { "kind" : "ClassType", "location" : [ 27, 5, 27, 8 ], "className" : "bool" } }, "value" : { "kind" : "BooleanLiteral", "location" : [ 27, 12, 27, 16 ], "value" : false } }, { "kind" : "VarDef", "location" : [ 28, 1, 28, 16 ], "var" : { "kind" : "TypedVar", "location" : [ 28, 1, 28, 8 ], "identifier" : { "kind" : "Identifier", "location" : [ 28, 1, 28, 3 ], "name" : "c_b" }, "type" : { "kind" : "ClassType", "location" : [ 28, 5, 28, 8 ], "className" : "bool" } }, "value" : { "kind" : "BooleanLiteral", "location" : [ 28, 12, 28, 16 ], "value" : false } }, { "kind" : "VarDef", "location" : [ 30, 1, 30, 19 ], "var" : { "kind" : "TypedVar", "location" : [ 30, 1, 30, 12 ], "identifier" : { "kind" : "Identifier", "location" : [ 30, 1, 30, 6 ], "name" : "a_list" }, "type" : { "kind" : "ListType", "location" : [ 30, 8, 30, 12 ], "elementType" : { "kind" : "ClassType", "location" : [ 30, 9, 30, 11 ], "className" : "int" } } }, "value" : { "kind" : "NoneLiteral", "location" : [ 30, 16, 30, 19 ] } }, { "kind" : "VarDef", "location" : [ 31, 1, 31, 19 ], "var" : { "kind" : "TypedVar", "location" : [ 31, 1, 31, 12 ], "identifier" : { "kind" : "Identifier", "location" : [ 31, 1, 31, 6 ], "name" : "b_list" }, "type" : { "kind" : "ListType", "location" : [ 31, 8, 31, 12 ], "elementType" : { "kind" : "ClassType", "location" : [ 31, 9, 31, 11 ], "className" : "int" } } }, "value" : { "kind" : "NoneLiteral", "location" : [ 31, 16, 31, 19 ] } }, { "kind" : "VarDef", "location" : [ 32, 1, 32, 19 ], "var" : { "kind" : "TypedVar", "location" : [ 32, 1, 32, 12 ], "identifier" : { "kind" : "Identifier", "location" : [ 32, 1, 32, 6 ], "name" : "c_list" }, "type" : { "kind" : "ListType", "location" : [ 32, 8, 32, 12 ], "elementType" : { "kind" : "ClassType", "location" : [ 32, 9, 32, 11 ], "className" : "int" } } }, "value" : { "kind" : "NoneLiteral", "location" : [ 32, 16, 32, 19 ] } }, { "kind" : "VarDef", "location" : [ 34, 1, 34, 22 ], "var" : { "kind" : "TypedVar", "location" : [ 34, 1, 34, 15 ], "identifier" : { "kind" : "Identifier", "location" : [ 34, 1, 34, 7 ], "name" : "a_class" }, "type" : { "kind" : "ClassType", "location" : [ 34, 9, 34, 15 ], "className" : "A_CLASS" } }, "value" : { "kind" : "NoneLiteral", "location" : [ 34, 19, 34, 22 ] } }, { "kind" : "VarDef", "location" : [ 35, 1, 35, 22 ], "var" : { "kind" : "TypedVar", "location" : [ 35, 1, 35, 15 ], "identifier" : { "kind" : "Identifier", "location" : [ 35, 1, 35, 7 ], "name" : "b_class" }, "type" : { "kind" : "ClassType", "location" : [ 35, 9, 35, 15 ], "className" : "B_CLASS" } }, "value" : { "kind" : "NoneLiteral", "location" : [ 35, 19, 35, 22 ] } }, { "kind" : "VarDef", "location" : [ 36, 1, 36, 22 ], "var" : { "kind" : "TypedVar", "location" : [ 36, 1, 36, 15 ], "identifier" : { "kind" : "Identifier", "location" : [ 36, 1, 36, 7 ], "name" : "c_class" }, "type" : { "kind" : "ClassType", "location" : [ 36, 9, 36, 15 ], "className" : "C_CLASS" } }, "value" : { "kind" : "NoneLiteral", "location" : [ 36, 19, 36, 22 ] } }, { "kind" : "FuncDef", "location" : [ 40, 1, 0, 0 ], "name" : { "kind" : "Identifier", "location" : [ 40, 5, 40, 7 ], "name" : "f_1" }, "params" : [ ], "returnType" : { "kind" : "ClassType", "location" : [ 40, 14, 40, 19 ], "className" : "object" }, "declarations" : [ { "kind" : "FuncDef", "location" : [ 41, 5, 0, 0 ], "name" : { "kind" : "Identifier", "location" : [ 41, 9, 41, 13 ], "name" : "f_f_1" }, "params" : [ ], "returnType" : { "kind" : "ClassType", "location" : [ 41, 20, 41, 25 ], "className" : "object" }, "declarations" : [ { "kind" : "GlobalDecl", "location" : [ 42, 9, 42, 18 ], "variable" : { "kind" : "Identifier", "location" : [ 42, 16, 42, 18 ], "name" : "a_s" } } ], "statements" : [ ] } ], "statements" : [ ] }, { "kind" : "FuncDef", "location" : [ 46, 1, 0, 0 ], "name" : { "kind" : "Identifier", "location" : [ 46, 5, 46, 7 ], "name" : "f_2" }, "params" : [ ], "returnType" : { "kind" : "ClassType", "location" : [ 46, 14, 46, 19 ], "className" : "object" }, "declarations" : [ { "kind" : "VarDef", "location" : [ 47, 5, 47, 19 ], "var" : { "kind" : "TypedVar", "location" : [ 47, 5, 47, 13 ], "identifier" : { "kind" : "Identifier", "location" : [ 47, 5, 47, 9 ], "name" : "f_a_s" }, "type" : { "kind" : "ClassType", "location" : [ 47, 11, 47, 13 ], "className" : "str" } }, "value" : { "kind" : "StringLiteral", "location" : [ 47, 17, 47, 19 ], "value" : "s" } }, { "kind" : "FuncDef", "location" : [ 48, 5, 0, 0 ], "name" : { "kind" : "Identifier", "location" : [ 48, 9, 48, 13 ], "name" : "f_f_2" }, "params" : [ ], "returnType" : { "kind" : "ClassType", "location" : [ 48, 20, 48, 25 ], "className" : "object" }, "declarations" : [ { "kind" : "NonLocalDecl", "location" : [ 49, 9, 49, 22 ], "variable" : { "kind" : "Identifier", "location" : [ 49, 18, 49, 22 ], "name" : "f_a_s" } } ], "statements" : [ ] } ], "statements" : [ ] }, { "kind" : "FuncDef", "location" : [ 53, 1, 55, 18 ], "name" : { "kind" : "Identifier", "location" : [ 53, 5, 53, 7 ], "name" : "f_3" }, "params" : [ { "kind" : "TypedVar", "location" : [ 53, 9, 53, 13 ], "identifier" : { "kind" : "Identifier", "location" : [ 53, 9, 53, 9 ], "name" : "x" }, "type" : { "kind" : "ClassType", "location" : [ 53, 11, 53, 13 ], "className" : "int" } } ], "returnType" : { "kind" : "ClassType", "location" : [ 53, 19, 53, 21 ], "className" : "str" }, "declarations" : [ { "kind" : "VarDef", "location" : [ 54, 5, 54, 17 ], "var" : { "kind" : "TypedVar", "location" : [ 54, 5, 54, 13 ], "identifier" : { "kind" : "Identifier", "location" : [ 54, 5, 54, 9 ], "name" : "f_b_s" }, "type" : { "kind" : "ClassType", "location" : [ 54, 11, 54, 13 ], "className" : "int" } }, "value" : { "kind" : "IntegerLiteral", "location" : [ 54, 17, 54, 17 ], "value" : 3 } } ], "statements" : [ { "kind" : "ReturnStmt", "location" : [ 55, 5, 55, 18 ], "value" : { "kind" : "BinaryExpr", "location" : [ 55, 12, 55, 18 ], "left" : { "kind" : "Identifier", "location" : [ 55, 12, 55, 12 ], "name" : "x" }, "operator" : "*", "right" : { "kind" : "Identifier", "location" : [ 55, 14, 55, 18 ], "name" : "f_b_s" } } } ] } ], "statements" : [ { "kind" : "AssignStmt", "location" : [ 59, 1, 59, 18 ], "targets" : [ { "kind" : "Identifier", "location" : [ 59, 1, 59, 6 ], "name" : "a_list" } ], "value" : { "kind" : "ListExpr", "location" : [ 59, 10, 59, 18 ], "elements" : [ { "kind" : "IntegerLiteral", "location" : [ 59, 11, 59, 11 ], "value" : 1 }, { "kind" : "IntegerLiteral", "location" : [ 59, 14, 59, 14 ], "value" : 2 }, { "kind" : "IntegerLiteral", "location" : [ 59, 17, 59, 17 ], "value" : 3 } ] } }, { "kind" : "AssignStmt", "location" : [ 60, 1, 60, 18 ], "targets" : [ { "kind" : "Identifier", "location" : [ 60, 1, 60, 6 ], "name" : "b_list" } ], "value" : { "kind" : "ListExpr", "location" : [ 60, 10, 60, 18 ], "elements" : [ { "kind" : "IntegerLiteral", "location" : [ 60, 11, 60, 11 ], "value" : 0 }, { "kind" : "IntegerLiteral", "location" : [ 60, 14, 60, 14 ], "value" : 0 }, { "kind" : "IntegerLiteral", "location" : [ 60, 17, 60, 17 ], "value" : 0 } ] } }, { "kind" : "AssignStmt", "location" : [ 61, 1, 61, 21 ], "targets" : [ { "kind" : "Identifier", "location" : [ 61, 1, 61, 6 ], "name" : "c_list" } ], "value" : { "kind" : "ListExpr", "location" : [ 61, 10, 61, 21 ], "elements" : [ { "kind" : "UnaryExpr", "location" : [ 61, 11, 61, 12 ], "operator" : "-", "operand" : { "kind" : "IntegerLiteral", "location" : [ 61, 12, 61, 12 ], "value" : 1 } }, { "kind" : "UnaryExpr", "location" : [ 61, 15, 61, 16 ], "operator" : "-", "operand" : { "kind" : "IntegerLiteral", "location" : [ 61, 16, 61, 16 ], "value" : 2 } }, { "kind" : "UnaryExpr", "location" : [ 61, 19, 61, 20 ], "operator" : "-", "operand" : { "kind" : "IntegerLiteral", "location" : [ 61, 20, 61, 20 ], "value" : 3 } } ] } }, { "kind" : "AssignStmt", "location" : [ 63, 1, 63, 20 ], "targets" : [ { "kind" : "Identifier", "location" : [ 63, 1, 63, 7 ], "name" : "a_class" } ], "value" : { "kind" : "CallExpr", "location" : [ 63, 11, 63, 20 ], "function" : { "kind" : "Identifier", "location" : [ 63, 11, 63, 17 ], "name" : "A_CLASS" }, "args" : [ { "kind" : "IntegerLiteral", "location" : [ 63, 19, 63, 19 ], "value" : 5 } ] } }, { "kind" : "AssignStmt", "location" : [ 64, 1, 64, 19 ], "targets" : [ { "kind" : "Identifier", "location" : [ 64, 1, 64, 7 ], "name" : "b_class" } ], "value" : { "kind" : "CallExpr", "location" : [ 64, 11, 64, 19 ], "function" : { "kind" : "Identifier", "location" : [ 64, 11, 64, 17 ], "name" : "B_CLASS" }, "args" : [ ] } }, { "kind" : "AssignStmt", "location" : [ 65, 1, 65, 19 ], "targets" : [ { "kind" : "Identifier", "location" : [ 65, 1, 65, 7 ], "name" : "c_class" } ], "value" : { "kind" : "CallExpr", "location" : [ 65, 11, 65, 19 ], "function" : { "kind" : "Identifier", "location" : [ 65, 11, 65, 17 ], "name" : "C_CLASS" }, "args" : [ ] } }, { "kind" : "AssignStmt", "location" : [ 69, 1, 69, 10 ], "targets" : [ { "kind" : "Identifier", "location" : [ 69, 1, 69, 3 ], "name" : "c_i" } ], "value" : { "kind" : "BooleanLiteral", "location" : [ 69, 7, 69, 10 ], "value" : true } }, { "kind" : "ExprStmt", "location" : [ 71, 1, 71, 9 ], "expr" : { "kind" : "BinaryExpr", "location" : [ 71, 1, 71, 9 ], "left" : { "kind" : "Identifier", "location" : [ 71, 1, 71, 3 ], "name" : "c_i" }, "operator" : "+", "right" : { "kind" : "ListExpr", "location" : [ 71, 7, 71, 9 ], "elements" : [ { "kind" : "IntegerLiteral", "location" : [ 71, 8, 71, 8 ], "value" : 1 } ] } } }, { "kind" : "AssignStmt", "location" : [ 73, 1, 73, 23 ], "targets" : [ { "kind" : "Identifier", "location" : [ 73, 1, 73, 3 ], "name" : "a_i" }, { "kind" : "Identifier", "location" : [ 73, 7, 73, 9 ], "name" : "a_b" }, { "kind" : "Identifier", "location" : [ 73, 13, 73, 13 ], "name" : "z" } ], "value" : { "kind" : "StringLiteral", "location" : [ 73, 17, 73, 23 ], "value" : "Error" } }, { "kind" : "AssignStmt", "location" : [ 75, 1, 75, 13 ], "targets" : [ { "kind" : "Identifier", "location" : [ 75, 1, 75, 3 ], "name" : "a_s" } ], "value" : { "kind" : "BinaryExpr", "location" : [ 75, 7, 75, 13 ], "left" : { "kind" : "Identifier", "location" : [ 75, 7, 75, 9 ], "name" : "a_s" }, "operator" : "+", "right" : { "kind" : "IntegerLiteral", "location" : [ 75, 13, 75, 13 ], "value" : 1 } } }, { "kind" : "AssignStmt", "location" : [ 77, 1, 77, 14 ], "targets" : [ { "kind" : "Identifier", "location" : [ 77, 1, 77, 3 ], "name" : "c_s" } ], "value" : { "kind" : "IndexExpr", "location" : [ 77, 7, 77, 14 ], "list" : { "kind" : "Identifier", "location" : [ 77, 7, 77, 9 ], "name" : "a_s" }, "index" : { "kind" : "Identifier", "location" : [ 77, 11, 77, 13 ], "name" : "a_s" } } }, { "kind" : "AssignStmt", "location" : [ 79, 1, 79, 21 ], "targets" : [ { "kind" : "MemberExpr", "location" : [ 79, 1, 79, 17 ], "object" : { "kind" : "Identifier", "location" : [ 79, 1, 79, 7 ], "name" : "b_class" }, "member" : { "kind" : "Identifier", "location" : [ 79, 9, 79, 17 ], "name" : "b_class_i" } } ], "value" : { "kind" : "IntegerLiteral", "location" : [ 79, 21, 79, 21 ], "value" : 2 } }, { "kind" : "AssignStmt", "location" : [ 81, 1, 81, 7 ], "targets" : [ { "kind" : "Identifier", "location" : [ 81, 1, 81, 3 ], "name" : "f_1" } ], "value" : { "kind" : "IntegerLiteral", "location" : [ 81, 7, 81, 7 ], "value" : 5 } }, { "kind" : "AssignStmt", "location" : [ 83, 1, 83, 9 ], "targets" : [ { "kind" : "Identifier", "location" : [ 83, 1, 83, 3 ], "name" : "f_2" } ], "value" : { "kind" : "Identifier", "location" : [ 83, 7, 83, 9 ], "name" : "f_1" } }, { "kind" : "AssignStmt", "location" : [ 85, 1, 85, 31 ], "targets" : [ { "kind" : "Identifier", "location" : [ 85, 1, 85, 3 ], "name" : "a_i" }, { "kind" : "MemberExpr", "location" : [ 85, 7, 85, 23 ], "object" : { "kind" : "Identifier", "location" : [ 85, 7, 85, 13 ], "name" : "b_class" }, "member" : { "kind" : "Identifier", "location" : [ 85, 15, 85, 23 ], "name" : "b_class_i" } }, { "kind" : "Identifier", "location" : [ 85, 27, 85, 27 ], "name" : "z" } ], "value" : { "kind" : "IntegerLiteral", "location" : [ 85, 31, 85, 31 ], "value" : 5 } }, { "kind" : "AssignStmt", "location" : [ 87, 1, 87, 10 ], "targets" : [ { "kind" : "Identifier", "location" : [ 87, 1, 87, 3 ], "name" : "x_i" } ], "value" : { "kind" : "StringLiteral", "location" : [ 87, 7, 87, 10 ], "value" : "ss" } }, { "kind" : "AssignStmt", "location" : [ 89, 1, 89, 15 ], "targets" : [ { "kind" : "Identifier", "location" : [ 89, 1, 89, 3 ], "name" : "a_s" } ], "value" : { "kind" : "BinaryExpr", "location" : [ 89, 7, 89, 15 ], "left" : { "kind" : "Identifier", "location" : [ 89, 7, 89, 9 ], "name" : "a_i" }, "operator" : "+", "right" : { "kind" : "Identifier", "location" : [ 89, 13, 89, 15 ], "name" : "b_i" } } }, { "kind" : "AssignStmt", "location" : [ 91, 1, 91, 25 ], "targets" : [ { "kind" : "Identifier", "location" : [ 91, 1, 91, 3 ], "name" : "a_s" } ], "value" : { "kind" : "BinaryExpr", "location" : [ 91, 7, 91, 25 ], "left" : { "kind" : "BinaryExpr", "location" : [ 91, 7, 91, 16 ], "left" : { "kind" : "Identifier", "location" : [ 91, 7, 91, 9 ], "name" : "a_i" }, "operator" : "==", "right" : { "kind" : "Identifier", "location" : [ 91, 14, 91, 16 ], "name" : "b_i" } }, "operator" : "and", "right" : { "kind" : "BooleanLiteral", "location" : [ 91, 22, 91, 25 ], "value" : true } } }, { "kind" : "AssignStmt", "location" : [ 93, 1, 93, 21 ], "targets" : [ { "kind" : "Identifier", "location" : [ 93, 1, 93, 6 ], "name" : "a_list" } ], "value" : { "kind" : "BinaryExpr", "location" : [ 93, 10, 93, 21 ], "left" : { "kind" : "Identifier", "location" : [ 93, 10, 93, 15 ], "name" : "a_list" }, "operator" : "+", "right" : { "kind" : "Identifier", "location" : [ 93, 19, 93, 21 ], "name" : "a_s" } } }, { "kind" : "AssignStmt", "location" : [ 95, 1, 95, 17 ], "targets" : [ { "kind" : "Identifier", "location" : [ 95, 1, 95, 3 ], "name" : "a_s" } ], "value" : { "kind" : "IndexExpr", "location" : [ 95, 7, 95, 17 ], "list" : { "kind" : "Identifier", "location" : [ 95, 7, 95, 12 ], "name" : "a_list" }, "index" : { "kind" : "Identifier", "location" : [ 95, 14, 95, 16 ], "name" : "a_s" } } }, { "kind" : "AssignStmt", "location" : [ 97, 1, 97, 15 ], "targets" : [ { "kind" : "IndexExpr", "location" : [ 97, 1, 97, 9 ], "list" : { "kind" : "Identifier", "location" : [ 97, 1, 97, 6 ], "name" : "a_list" }, "index" : { "kind" : "IntegerLiteral", "location" : [ 97, 8, 97, 8 ], "value" : 1 } } ], "value" : { "kind" : "StringLiteral", "location" : [ 97, 13, 97, 15 ], "value" : "a" } }, { "kind" : "AssignStmt", "location" : [ 99, 1, 99, 16 ], "targets" : [ { "kind" : "Identifier", "location" : [ 99, 1, 99, 3 ], "name" : "a_i" } ], "value" : { "kind" : "BinaryExpr", "location" : [ 99, 7, 99, 16 ], "left" : { "kind" : "CallExpr", "location" : [ 99, 7, 99, 12 ], "function" : { "kind" : "Identifier", "location" : [ 99, 7, 99, 9 ], "name" : "f_3" }, "args" : [ { "kind" : "IntegerLiteral", "location" : [ 99, 11, 99, 11 ], "value" : 3 } ] }, "operator" : "+", "right" : { "kind" : "IntegerLiteral", "location" : [ 99, 16, 99, 16 ], "value" : 5 } } }, { "kind" : "ExprStmt", "location" : [ 101, 1, 101, 5 ], "expr" : { "kind" : "CallExpr", "location" : [ 101, 1, 101, 5 ], "function" : { "kind" : "Identifier", "location" : [ 101, 1, 101, 3 ], "name" : "f_1" }, "args" : [ ] } }, { "kind" : "ExprStmt", "location" : [ 103, 1, 103, 5 ], "expr" : { "kind" : "CallExpr", "location" : [ 103, 1, 103, 5 ], "function" : { "kind" : "Identifier", "location" : [ 103, 1, 103, 3 ], "name" : "f_2" }, "args" : [ ] } }, { "kind" : "AssignStmt", "location" : [ 105, 1, 105, 22 ], "targets" : [ { "kind" : "Identifier", "location" : [ 105, 1, 105, 3 ], "name" : "a_i" } ], "value" : { "kind" : "MethodCallExpr", "location" : [ 105, 7, 105, 22 ], "method" : { "kind" : "MemberExpr", "location" : [ 105, 7, 105, 17 ], "object" : { "kind" : "Identifier", "location" : [ 105, 7, 105, 13 ], "name" : "a_class" }, "member" : { "kind" : "Identifier", "location" : [ 105, 15, 105, 17 ], "name" : "add" } }, "args" : [ { "kind" : "Identifier", "location" : [ 105, 19, 105, 21 ], "name" : "a_s" } ] } } ], "errors" : { "errors" : [ { "kind" : "CompilerError", "location" : [ 4, 9, 4, 16 ], "message" : "Method overridden with different type signature: __init__" } ], "kind" : "Errors", "location" : [ 0, 0, 0, 0 ] } }