Branch: Tag:

2019-02-06

2019-02-06 22:17:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Annotations: Only register annotations in the first pass.

Annotations are now created in the first pass, and kept
as is for later passes. This makes it possible to store
pass-persistent state in the annotations.

1025:    | modifiers enum { free_node($2); }    | annotation ';'    { +  if (Pike_compiler->compiler_pass == COMPILER_PASS_FIRST) {    $1 = mknode(F_COMMA_EXPR, $1, NULL);    compiler_add_program_annotations(0, $1); -  +  }    free_node($1);    }    | '@' TOK_CONSTANT ';'