Mercurial > octave
diff libinterp/parse-tree/pt-id.h @ 24270:bc3819b7cca1
don't use symbol_table:: nesting for symbol_record, symbol_scope, or fcn_info
Change all uses of symbol_table::symbol_record to symbol_record.
Change all uses of symbol_table::scope to symbol_scope.
Change all uses of symbol_table::fcn_info to fcn_info.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 16 Nov 2017 21:43:47 -0500 |
parents | 21915520ac7b |
children | bff8e3884a88 |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-id.h Thu Nov 16 19:39:00 2017 -0500 +++ b/libinterp/parse-tree/pt-id.h Thu Nov 16 21:43:47 2017 -0500 @@ -53,7 +53,7 @@ tree_identifier (int l = -1, int c = -1) : tree_expression (l, c) { } - tree_identifier (const symbol_table::symbol_record& s, + tree_identifier (const symbol_record& s, int l = -1, int c = -1) : tree_expression (l, c), sym (s) { } @@ -121,14 +121,14 @@ name ().c_str ()); } - tree_identifier * dup (symbol_table::scope& scope) const; + tree_identifier * dup (symbol_scope& scope) const; void accept (tree_walker& tw) { tw.visit_identifier (*this); } - symbol_table::symbol_record symbol (void) const + symbol_record symbol (void) const { return sym; } @@ -136,7 +136,7 @@ private: // The symbol record that this identifier references. - symbol_table::symbol_record sym; + symbol_record sym; }; class tree_black_hole : public tree_identifier @@ -152,7 +152,7 @@ bool is_black_hole (void) { return true; } - tree_black_hole * dup (symbol_table::scope&) const + tree_black_hole * dup (symbol_scope&) const { return new tree_black_hole; }