From 0c29937c55230b9bb5801bbf4ad7b1c2718c700b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 9 Nov 2015 18:04:33 +0800 Subject: [PATCH] JSDOC/Token.vala --- JSDOC/Token.vala | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/JSDOC/Token.vala b/JSDOC/Token.vala index 9b3f3d3..41c19d7 100644 --- a/JSDOC/Token.vala +++ b/JSDOC/Token.vala @@ -31,6 +31,20 @@ namespace JSDOC { int Token_id = 1; + + public class TokenKeyMap : Object { + public Token key; + public Gee.ArrayList vals; + + public TokenKeyMap() + { + this.key = new Token("","VOID", "VOID"); + this.vals = new Gee.ArrayList(); + } + + + } + public class Token : Object { int id; @@ -43,12 +57,12 @@ namespace JSDOC public string outData; - public string identifier; + public Token? identifier; // used to stuff tokens together when building a tree.. public Gee.ArrayList> items; // for a object definition, key -> array of tokens.. - public Gee.HashMap> props; + public Gee.HashMap props; // props??? what's this??? @@ -65,7 +79,7 @@ namespace JSDOC this.items = new Gee.ArrayList>(); - this.props = new Gee.HashMap>(); + this.props = new Gee.HashMap(); } public string asString() -- 2.39.2