[MIRROR] Linter diagnostics + bans non-var relative pathing

This commit is contained in:
Chompstation Bot
2021-06-22 22:17:02 +00:00
parent 968067d0e7
commit fb343cec6c
351 changed files with 20094 additions and 11284 deletions

View File

@@ -41,23 +41,20 @@ var
/*
Class: node
*/
/node
proc
ToString()
return "[src.type]"
/node/proc/ToString()
return "[src.type]"
/*
Class: identifier
*/
/node/identifier
var
id_name
var/id_name
New(id)
.=..()
src.id_name=id
/node/identifier/New(id)
.=..()
src.id_name=id
ToString()
return id_name
/node/identifier/ToString()
return id_name
/*
Class: expression
@@ -68,72 +65,64 @@ var
See <Binary Operators> and <Unary Operators> for subtypes.
*/
/node/expression/operator
var
node/expression/exp
tmp
name
precedence
var/node/expression/exp
var/tmp/name
var/tmp/precedence
New()
.=..()
if(!src.name) src.name="[src.type]"
/node/expression/operator/New()
.=..()
if(!src.name) src.name="[src.type]"
ToString()
return "operator: [name]"
/node/expression/operator/ToString()
return "operator: [name]"
/*
Class: FunctionCall
*/
/node/expression/FunctionCall
//Function calls can also be expressions or statements.
var
func_name
node/identifier/object
list/parameters=new
var/func_name
var/node/identifier/object
var/list/parameters = list()
/*
Class: literal
*/
/node/expression/value/literal
var
value
var/value
New(value)
.=..()
src.value=value
/node/expression/value/literal/New(value)
.=..()
src.value=value
ToString()
return src.value
/node/expression/value/literal/ToString()
return src.value
/*
Class: variable
*/
/node/expression/value/variable
var
node
object //Either a node/identifier or another node/expression/value/variable which points to the object
node/identifier
id
var/node/object //Either a node/identifier or another node/expression/value/variable which points to the object
var/node/identifier/id
New(ident)
.=..()
id=ident
if(istext(id))id=new(id)
/node/expression/value/variable/New(ident)
.=..()
id=ident
if(istext(id))id=new(id)
ToString()
return src.id.ToString()
/node/expression/value/variable/ToString()
return src.id.ToString()
/*
Class: reference
*/
/node/expression/value/reference
var
datum/value
var/datum/value
New(value)
.=..()
src.value=value
/node/expression/value/reference/New(value)
.=..()
src.value=value
ToString()
return "ref: [src.value] ([src.value.type])"
/node/expression/value/reference/ToString()
return "ref: [src.value] ([src.value.type])"