Some info was added

This commit is contained in:
Onoshko Dan 2014-07-03 01:07:41 +07:00
parent 1b36947fc7
commit c635d9e1f1

View File

@ -113,6 +113,7 @@ Cola.AST_Node = Cola.DEFNODE("Node", "start end", {
}, null); }, null);
Cola.AST_Command = Cola.DEFNODE("Command", "name args", { Cola.AST_Command = Cola.DEFNODE("Command", "name args", {
$iscola: true,
$documentation: "Compiler-command statement", $documentation: "Compiler-command statement",
$propdoc: { $propdoc: {
name: "[string] Name of command", name: "[string] Name of command",
@ -401,6 +402,7 @@ Cola.AST_Defun = Cola.DEFNODE("Defun", "type", {
}, Cola.AST_Lambda); }, Cola.AST_Lambda);
Cola.AST_Namedarg = Cola.DEFNODE("Namedarg", "start end name value", { Cola.AST_Namedarg = Cola.DEFNODE("Namedarg", "start end name value", {
$iscola: true,
$documentation: "Named argument", $documentation: "Named argument",
$propdoc: { $propdoc: {
value: "Value of named argument" value: "Value of named argument"
@ -408,6 +410,7 @@ Cola.AST_Namedarg = Cola.DEFNODE("Namedarg", "start end name value", {
}, Cola.AST_SymbolRef); }, Cola.AST_SymbolRef);
Cola.AST_ArgDef = Cola.DEFNODE("ArgDef", "start end name type argtype defval", { Cola.AST_ArgDef = Cola.DEFNODE("ArgDef", "start end name type argtype defval", {
$iscola: true,
$documentation: "A function argument expression", $documentation: "A function argument expression",
$propdoc: { $propdoc: {
type: "Data type", type: "Data type",
@ -515,6 +518,7 @@ Cola.AST_Case = Cola.DEFNODE("Case", "expression", {
}, Cola.AST_SwitchBranch); }, Cola.AST_SwitchBranch);
Cola.AST_When = Cola.DEFNODE("When", null, { Cola.AST_When = Cola.DEFNODE("When", null, {
$iscola: true,
$documentation: "A `when` switch branch" $documentation: "A `when` switch branch"
}, Cola.AST_Case); }, Cola.AST_Case);
@ -689,6 +693,7 @@ Cola.AST_Dot = Cola.DEFNODE("Dot", null, {
}, Cola.AST_PropAccess); }, Cola.AST_PropAccess);
Cola.AST_Proto = Cola.DEFNODE("Proto", null, { Cola.AST_Proto = Cola.DEFNODE("Proto", null, {
$iscola: true,
$documentation: "Accessor to prototype", $documentation: "Accessor to prototype",
_walk: function(visitor) { _walk: function(visitor) {
return visitor._visit(this, function(){ return visitor._visit(this, function(){
@ -698,6 +703,7 @@ Cola.AST_Proto = Cola.DEFNODE("Proto", null, {
}, Cola.AST_PropAccess); }, Cola.AST_PropAccess);
Cola.AST_Cascade = Cola.DEFNODE("Cascade", "expression subexpressions", { Cola.AST_Cascade = Cola.DEFNODE("Cascade", "expression subexpressions", {
$iscola: true,
$documentation: "Base class for properties access expressions, i.e. `a..foo..bar`", $documentation: "Base class for properties access expressions, i.e. `a..foo..bar`",
$propdoc: { $propdoc: {
expression: "[AST_Node] the “container” expression", expression: "[AST_Node] the “container” expression",
@ -796,10 +802,12 @@ Cola.AST_Array = Cola.DEFNODE("Array", "elements template vardef", {
}); });
Cola.AST_ArrayTemplate = Cola.DEFNODE("ArrayTemplate", null, { Cola.AST_ArrayTemplate = Cola.DEFNODE("ArrayTemplate", null, {
$iscola: true,
$documentation: "Array assignment template.", $documentation: "Array assignment template.",
}, Cola.AST_Array); }, Cola.AST_Array);
Cola.AST_ArrayRange = Cola.DEFNODE("ArrayRange", "from to triple", { Cola.AST_ArrayRange = Cola.DEFNODE("ArrayRange", "from to triple", {
$iscola: true,
$documentation: "An array range.", $documentation: "An array range.",
$propdoc: { $propdoc: {
from: "[AST_Node] range from", from: "[AST_Node] range from",
@ -828,6 +836,7 @@ Cola.AST_Object = Cola.DEFNODE("Object", "properties template vardef", {
}); });
Cola.AST_ObjectTemplate = Cola.DEFNODE("ObjectTemplate", null, { Cola.AST_ObjectTemplate = Cola.DEFNODE("ObjectTemplate", null, {
$iscola: true,
$documentation: "Object assignment template.", $documentation: "Object assignment template.",
}, Cola.AST_Object); }, Cola.AST_Object);
@ -938,6 +947,7 @@ Cola.AST_String = Cola.DEFNODE("String", "value", {
}, Cola.AST_Constant); }, Cola.AST_Constant);
Cola.AST_StringTemplate = Cola.DEFNODE("StringTemplate", "body", { Cola.AST_StringTemplate = Cola.DEFNODE("StringTemplate", "body", {
$iscola: true,
$documentation: "A string template", $documentation: "A string template",
$propdoc: { $propdoc: {
body: "[AST_Statement*] the contents of this string template" body: "[AST_Statement*] the contents of this string template"