comparison src/pt-id.h @ 10313:f3b65e1ae355

untabify src header files
author John W. Eaton <jwe@octave.org>
date Thu, 11 Feb 2010 12:16:43 -0500
parents 37a08e0ce2dc
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
10312:cbc402e64d83 10313:f3b65e1ae355
48 48
49 tree_identifier (int l = -1, int c = -1) 49 tree_identifier (int l = -1, int c = -1)
50 : tree_expression (l, c), sym (), scope (-1) { } 50 : tree_expression (l, c), sym (), scope (-1) { }
51 51
52 tree_identifier (const symbol_table::symbol_record& s, 52 tree_identifier (const symbol_table::symbol_record& s,
53 int l = -1, int c = -1, 53 int l = -1, int c = -1,
54 symbol_table::scope_id sc = symbol_table::current_scope ()) 54 symbol_table::scope_id sc = symbol_table::current_scope ())
55 : tree_expression (l, c), sym (s), scope (sc) { } 55 : tree_expression (l, c), sym (s), scope (sc) { }
56 56
57 ~tree_identifier (void) { } 57 ~tree_identifier (void) { }
58 58
59 bool has_magic_end (void) const { return (name () == "__end__"); } 59 bool has_magic_end (void) const { return (name () == "__end__"); }
109 octave_lvalue lvalue (void); 109 octave_lvalue lvalue (void);
110 110
111 void eval_undefined_error (void); 111 void eval_undefined_error (void);
112 112
113 tree_identifier *dup (symbol_table::scope_id scope, 113 tree_identifier *dup (symbol_table::scope_id scope,
114 symbol_table::context_id context) const; 114 symbol_table::context_id context) const;
115 115
116 void accept (tree_walker& tw); 116 void accept (tree_walker& tw);
117 117
118 private: 118 private:
119 119
129 { 129 {
130 symbol_table::scope_id curr_scope = symbol_table::current_scope (); 130 symbol_table::scope_id curr_scope = symbol_table::current_scope ();
131 131
132 if (scope != curr_scope) 132 if (scope != curr_scope)
133 { 133 {
134 scope = curr_scope; 134 scope = curr_scope;
135 sym = symbol_table::insert (sym.name ()); 135 sym = symbol_table::insert (sym.name ());
136 } 136 }
137 137
138 return sym; 138 return sym;
139 } 139 }
140 140