Add line number field to AST structure