add documentation
This commit is contained in:
parent
73a9aa0c06
commit
5088aeedac
|
|
@ -585,10 +585,11 @@ var AST_New = DEFNODE("New", null, {
|
|||
var AST_Seq = DEFNODE("Seq", "car cdr", {
|
||||
$documentation: "A sequence expression (two comma-separated expressions)",
|
||||
$propdoc: {
|
||||
car: "[AST_Node] first element in sequence",
|
||||
cdr: "[AST_Node] second element in sequence"
|
||||
car: "[AST_Node] first element in sequence (should not be instanceof AST_Seq or null)",
|
||||
cdr: "[AST_Node] second element in sequence (should not be null)"
|
||||
},
|
||||
$cons: function(x, y) {
|
||||
// TODO: Remove these sanity checks at the end of PR
|
||||
if (!x) {
|
||||
throw new Error('AST_Seq.car missing');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user