mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Add AST node source location information in a couple more parser rules.
This commit is contained in:
		
							parent
							
								
									ed4fa19ba2
								
							
						
					
					
						commit
						6dd2024965
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -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; | ||||
| 	}; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue