|
9 | 9 | -define(line(Opts), elixir_tree_helpers:get_line(Opts)). |
10 | 10 |
|
11 | 11 | -record(elixir_scope, { |
12 | | - context=nil, %% can be assign, guards or nil |
13 | | - noname=false, %% when true, don't add new names (used by try) |
14 | | - check_clauses=true, %% when true, check def clauses ordering |
15 | | - super=false, %% when true, it means super was invoked |
16 | | - caller=false, %% when true, it means caller was invoked |
17 | | - name_args=false, %% when true, it means arguments should be named |
18 | | - module=nil, %% the current module |
19 | | - function=nil, %% the current function |
20 | | - vars=[], %% a dict of defined variables and their alias |
21 | | - temp_vars=[], %% a dict of all variables defined in a particular assign |
22 | | - clause_vars=nil, %% a dict of all variables defined in a particular clause |
23 | | - extra_guards=nil, %% extra guards from args expansion |
24 | | - counter=[], %% a counter for the variables defined |
25 | | - local=nil, %% the scope to evaluate local functions against |
26 | | - scheduled=[], %% scheduled modules to be loaded |
27 | | - file, %% the current scope filename |
28 | | - aliases, %% an orddict with aliases by new -> old names |
29 | | - requires, %% a set with modules required |
30 | | - macros, %% a list with macros imported by module |
31 | | - functions}). %% a list with functions imported by module |
| 12 | + context=nil, %% can be assign, guards or nil |
| 13 | + noname=false, %% when true, don't add new names (used by try) |
| 14 | + check_requires=true, %% when true, check requires |
| 15 | + check_clauses=true, %% when true, check def clauses ordering |
| 16 | + super=false, %% when true, it means super was invoked |
| 17 | + caller=false, %% when true, it means caller was invoked |
| 18 | + name_args=false, %% when true, it means arguments should be named |
| 19 | + module=nil, %% the current module |
| 20 | + function=nil, %% the current function |
| 21 | + vars=[], %% a dict of defined variables and their alias |
| 22 | + temp_vars=[], %% a dict of all variables defined in a particular assign |
| 23 | + clause_vars=nil, %% a dict of all variables defined in a particular clause |
| 24 | + extra_guards=nil, %% extra guards from args expansion |
| 25 | + counter=[], %% a counter for the variables defined |
| 26 | + local=nil, %% the scope to evaluate local functions against |
| 27 | + scheduled=[], %% scheduled modules to be loaded |
| 28 | + file, %% the current scope filename |
| 29 | + aliases, %% an orddict with aliases by new -> old names |
| 30 | + requires, %% a set with modules required |
| 31 | + macros, %% a list with macros imported by module |
| 32 | + functions}). %% a list with functions imported by module |
32 | 33 |
|
33 | 34 | -record(elixir_quote, { |
34 | 35 | line=0, |
|
0 commit comments