def undefined_var(var_name, l1, c1, op_name, l2, c2): return { 'message': NoUndefinedVariables.undefined_var_message(var_name, op_name), 'locations': [ SourceLocation(l1, c1), SourceLocation(l2, c2), ] }
def undefined_var_by_op(var_name, l1, c1, op_name, l2, c2): return { 'message': NoUndefinedVariables.undefined_var_by_op_message(var_name, op_name), 'locations': [ SourceLocation(l1, c1), SourceLocation(l2, c2), ] }
def undefined_var(var_name, line, column): return { 'message': NoUndefinedVariables.undefined_var_message(var_name), 'locations': [SourceLocation(line, column)] }