Skip to content

Commit

Permalink
f: revert changes to get_var and rm for_keyword_queue as it is al…
Browse files Browse the repository at this point in the history
…ready taken care of
  • Loading branch information
ven-k committed Jun 20, 2023
1 parent a6d66b5 commit ef9fc23
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/systems/model_parsing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@ function parse_variable_def!(dict, mod, arg, varclass)
end
end

function for_keyword_queue()
# These args contain potential keywords
# Handle it along with vars without defaults
end

# Takes in args and populates kw and var definition exprs.
# This should be modified to handle the other cases (i.e they should use existing
# methods)
function parse_variables_with_kw!(exprs, var, dict, mod, body, varexpr, varclass, kwargs)
for arg in body.args
arg isa LineNumberNode && continue
Expand Down Expand Up @@ -192,7 +184,7 @@ function set_var_metadata(a, ms)
end

function get_var(mod::Module, b)
b isa Symbol ? getproperty(mod, b) : for_keyword_queue()
b isa Symbol ? getproperty(mod, b) : b
end

macro model(name::Symbol, expr)
Expand Down

0 comments on commit ef9fc23

Please sign in to comment.