diff options
author | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-03-17 06:21:10 +0000 |
---|---|---|
committer | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-03-17 06:22:12 +0000 |
commit | 6dd20249658f711ff327cc71375f0f8d93841403 (patch) | |
tree | e1ddd76290329e6d53d4f4bf83610e301e96adfe | |
parent | ed4fa19ba2812c286562baf26bbbcb49afad83bc (diff) | |
download | yosys-6dd20249658f711ff327cc71375f0f8d93841403.tar.gz yosys-6dd20249658f711ff327cc71375f0f8d93841403.tar.bz2 yosys-6dd20249658f711ff327cc71375f0f8d93841403.zip |
Add AST node source location information in a couple more parser rules.
-rw-r--r-- | frontends/verilog/verilog_parser.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y index 1132e97ae..d04b32509 100644 --- a/frontends/verilog/verilog_parser.y +++ b/frontends/verilog/verilog_parser.y @@ -2380,6 +2380,7 @@ rvalue: hierarchical_id range { $$ = new AstNode(AST_IDENTIFIER, $2); $$->str = *$1; + SET_AST_NODE_LOC($$, @1, @1); delete $1; if ($2 == nullptr && ($$->str == "\\$initstate" || $$->str == "\\$anyconst" || $$->str == "\\$anyseq" || @@ -2389,6 +2390,7 @@ rvalue: hierarchical_id non_opt_multirange { $$ = new AstNode(AST_IDENTIFIER, $2); $$->str = *$1; + SET_AST_NODE_LOC($$, @1, @1); delete $1; }; |