Lines Matching refs:scope
37 * The linked list of symbols with the same name is ordered by scope
43 * Link to the next symbol in the table with the same scope
45 * The linked list of symbols with the same scope is unordered. Symbols
61 * Element of the scope stack.
64 /** Link to next (inner) scope level. */
67 /** Linked list of symbols with the same scope. */
79 /** Top of scope stack. */
82 /** Current scope depth. */
89 struct scope_level *const scope = table->current_scope;
90 struct symbol *sym = scope->symbols;
92 table->current_scope = scope->next;
95 free(scope);
102 /* If there is a symbol with this name in an outer scope update
121 struct scope_level *const scope = calloc(1, sizeof(*scope));
122 if (scope == NULL) {
127 scope->next = table->current_scope;
128 table->current_scope = scope;
142 * Determine the scope "distance" of a symbol from the current scope
145 * A non-negative number for the number of scopes between the current scope
146 * and the scope where a symbol was defined. A value of zero means the current
147 * scope. A negative number if the symbol does not exist.
193 /* Store link to symbol in outer scope with the same name */
245 /* Get symbol from the outer scope with the same name */
249 /* Find the top-level scope */