mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
ArgumentTuple cleanup
This commit is contained in:
parent
fe351b5ca4
commit
ffadc0dd69
12 changed files with 88 additions and 105 deletions
|
|
@ -2,10 +2,8 @@
|
|||
|
||||
local primary = require("parser.expression.primary.primary")
|
||||
|
||||
local StringInterpolation = require("ast.StringInterpolation")
|
||||
|
||||
local ast = require("ast")
|
||||
local String = ast.String
|
||||
local String, StringInterpolation = ast.String, ast.StringInterpolation
|
||||
|
||||
local expression_to_ast = require("parser.expression.to_ast")
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ return primary {
|
|||
if type_check:match(rem, 0, nil_val) then
|
||||
local exp
|
||||
exp, rem = type_check:parse(source, rem, nil, 0, nil_val)
|
||||
type_check_exp = exp.arguments.list[2]
|
||||
type_check_exp = exp.arguments.positional[2]
|
||||
end
|
||||
|
||||
return ident:to_symbol{ constant = constant, persistent = persistent, exported = exported, type_check = type_check_exp }:set_source(source), rem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue