projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3b1bdb8
)
JSDOC/ScopeParser.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 6 Nov 2015 08:21:56 +0000
(16:21 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 6 Nov 2015 08:21:56 +0000
(16:21 +0800)
JSDOC/ScopeParser.vala
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.vala
b/JSDOC/ScopeParser.vala
index
0da866b
..
724d18e
100644
(file)
--- a/
JSDOC/ScopeParser.vala
+++ b/
JSDOC/ScopeParser.vala
@@
-3,6
+3,11
@@
namespace JSDOC {
namespace JSDOC {
+ public enum ScopeParserMode {
+ BUILDING_SYMBOL_TREE
+ }
+
+
public class ScopeParser : Object {
TokenStream ts;
public class ScopeParser : Object {
TokenStream ts;
@@
-13,7
+18,7
@@
namespace JSDOC {
Scope global ;
Scope global ;
- //mode : "", //"BUILDING_SYMBOL_TREE",
+ ScopeParserMode mode;
//braceNesting : 0,
Gee.HashMap<int,Scope> indexedScopes;
//munge: true,
//braceNesting : 0,
Gee.HashMap<int,Scope> indexedScopes;
//munge: true,
@@
-124,7
+129,8
@@
namespace JSDOC {
this.globalScope = new Scope(-1, false, -1, '');
this.globalScope = new Scope(-1, false, -1, '');
- this.indexedScopes = { 0 : this.globalScope };
+ this.indexedScopes = new Gee.HashMap<int,Scope>();
+ this.indexedScopes.set(0, this.globalScope );
this.mode = 'BUILDING_SYMBOL_TREE';
this.parseScope(this.globalScope);
this.mode = 'BUILDING_SYMBOL_TREE';
this.parseScope(this.globalScope);