From ee4c0eee34c9e1dcd427602ab67923093b6b7d0e Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Tue, 3 Jan 2023 10:12:48 +0300 Subject: [PATCH] Remove col from fann --- src/aeso_ast_to_fcode.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/aeso_ast_to_fcode.erl b/src/aeso_ast_to_fcode.erl index c588237..c477b2d 100644 --- a/src/aeso_ast_to_fcode.erl +++ b/src/aeso_ast_to_fcode.erl @@ -58,7 +58,7 @@ | {contract_code, string()} %% for CREATE, by name | {typerep, ftype()}. --type fann() :: [ {file, aeso_syntax:ann_file()} | {line, aeso_syntax:ann_line()} | {col, aeso_syntax:ann_col()} ]. +-type fann() :: [ {file, aeso_syntax:ann_file()} | {line, aeso_syntax:ann_line()} ]. -type fexpr() :: {lit, fann(), flit()} | {nil, fann()} @@ -391,8 +391,7 @@ to_fcode(Env, [{namespace, _, {con, _, Con}, Decls} | Code]) -> to_fann(Ann) -> File = proplists:lookup_all(file, Ann), Line = proplists:lookup_all(line, Ann), - Col = proplists:lookup_all(col, Ann), - lists:flatten([File, Line, Col]). + lists:flatten([File, Line]). -spec get_fann(fexpr()) -> fann(). get_fann(FExpr) -> element(2, FExpr).