mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
fix ln and remove unused code
This commit is contained in:
@@ -132,13 +132,13 @@ func parseSetVariable(code UNPARSEcode, index int, lines []UNPARSEcode, isLine i
|
||||
if err.EXISTS {
|
||||
return setVariable{}, success, err, namei
|
||||
}
|
||||
switch toset.(type) {
|
||||
switch x := toset.(type) {
|
||||
case accessVariable:
|
||||
break
|
||||
case setFunction:
|
||||
function = true
|
||||
params = toset.(setFunction).params
|
||||
toset = toset.(setFunction).toset
|
||||
params = x.params
|
||||
toset = x.toset
|
||||
if toset == nil {
|
||||
return setVariable{}, false, ArErr{"Type Error", "can't set for non variable, did you mean to put 'let' before?", code.line, code.path, code.realcode, true}, 1
|
||||
}
|
||||
@@ -165,15 +165,15 @@ func parseAutoAsignVariable(code UNPARSEcode, index int, lines []UNPARSEcode, is
|
||||
if err.EXISTS {
|
||||
return setVariable{}, success, err, namei
|
||||
}
|
||||
switch toset.(type) {
|
||||
switch x := toset.(type) {
|
||||
case accessVariable:
|
||||
break
|
||||
case ArMapGet:
|
||||
break
|
||||
case setFunction:
|
||||
function = true
|
||||
params = toset.(setFunction).params
|
||||
toset = toset.(setFunction).toset
|
||||
params = x.params
|
||||
toset = x.toset
|
||||
default:
|
||||
return setVariable{}, false, ArErr{"Type Error", "can't set for non variable, did you mean '=='?", code.line, code.path, code.realcode, true}, 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user