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:
0d4b43a
)
JSDOC/ScopeParser.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 6 Nov 2015 08:54:49 +0000
(16:54 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 6 Nov 2015 08:54:49 +0000
(16:54 +0800)
JSDOC/ScopeParser.vala
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.vala
b/JSDOC/ScopeParser.vala
index
5d0da20
..
3ba1366
100644
(file)
--- a/
JSDOC/ScopeParser.vala
+++ b/
JSDOC/ScopeParser.vala
@@
-845,7
+845,7
@@
namespace JSDOC {
//assert token.getType() == Token.RP; // )
}
//assert token.getType() == Token.RP; // )
}
- void parseFunctionDeclaration (scope)
+ void parseFunctionDeclaration (
Scope
scope)
{
//print("PARSE FUNCTION");
{
//print("PARSE FUNCTION");
@@
-858,7
+858,7
@@
namespace JSDOC {
var token = this.ts.nextTok();
if (token.type == "NAME") {
var token = this.ts.nextTok();
if (token.type == "NAME") {
- if (this.mode == copeParserMode.BUILDING_SYMBOL_TREE) {
+ if (this.mode ==
S
copeParserMode.BUILDING_SYMBOL_TREE) {
// Get the name of the function and declare it in the current scope.
symbol = token.data;
if (scope.getIdentifier(symbol,token) != false) {
// Get the name of the function and declare it in the current scope.
symbol = token.data;
if (scope.getIdentifier(symbol,token) != false) {
@@
-879,8
+879,8
@@
namespace JSDOC {
//assert token.getType() == Token.LP;
//assert token.getType() == Token.LP;
- if (this.mode ==
'BUILDING_SYMBOL_TREE'
) {
- fnScope = new Scope(1, scope, token.n, '', token);
+ if (this.mode ==
ScopeParserMode.BUILDING_SYMBOL_TREE
) {
+
var
fnScope = new Scope(1, scope, token.n, '', token);
//println("STORING SCOPE" + this.ts.cursor);
//println("STORING SCOPE" + this.ts.cursor);