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:
c8075b0
)
JSDOC/CompressWhite.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 25 Nov 2015 08:31:03 +0000
(16:31 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 25 Nov 2015 08:31:03 +0000
(16:31 +0800)
JSDOC/CompressWhite.vala
patch
|
blob
|
history
diff --git
a/JSDOC/CompressWhite.vala
b/JSDOC/CompressWhite.vala
index
79d4fca
..
e556957
100644
(file)
--- a/
JSDOC/CompressWhite.vala
+++ b/
JSDOC/CompressWhite.vala
@@
-274,11
+274,11
@@
namespace JSDOC
// NOW OUTPUT THE THING.
//var f = new File(minfile, File.NEW);
// NOW OUTPUT THE THING.
//var f = new File(minfile, File.NEW);
- var out
= ''
;
+ var out
str = ""
;
var outoff = 0;
//try { out.length = ts.slen; } catch (e) {} // prealloc.
var outoff = 0;
//try { out.length = ts.slen; } catch (e) {} // prealloc.
- out = '';
+
Token tok;
while (true) {
Token tok;
while (true) {
@@
-293,28
+293,29
@@
namespace JSDOC
///print(tok.type + ':' + tok.data);
///print(tok.type + ':' + tok.data);
- if (tok.type == "NAME" && tok.identifier != null
- && tok.identifier.mungedValue && tok.identifier.mungedValue.length) {
+ if (tok.type == "NAME" &&
+ tok.identifier != null &&
+ tok.identifier.mungedValue.length > 0) {
//f.write(tok.identifier.mungedValue);
//print("MUNGED: " + tok.identifier.mungedValue);
//f.write(tok.identifier.mungedValue);
//print("MUNGED: " + tok.identifier.mungedValue);
- out += tok.identifier.mungedValue;
+ out
str
+= tok.identifier.mungedValue;
continue;
}
// at this point we can apply a text translation kit...
continue;
}
// at this point we can apply a text translation kit...
-
- if ((tok.type == "STRN") && (tok.name== "DOUBLE_QUOTE")) {
- if (packer && packer.stringHandler) {
-
out
+= packer.stringHandler(tok);
- continue;
- }
- }
+ // NOT SUPPORTED..
+
//
if ((tok.type == "STRN") && (tok.name== "DOUBLE_QUOTE")) {
+
//
if (packer && packer.stringHandler) {
+
// outstr
+= packer.stringHandler(tok);
+
//
continue;
+
//
}
+
//
}
- out += tok.outData != "" ? tok.outData : tok.data;
+ out
str
+= tok.outData != "" ? tok.outData : tok.data;
if ((tok.outData == ";") && (out.length - outoff > 255)) {
outoff = out.length;
if ((tok.outData == ";") && (out.length - outoff > 255)) {
outoff = out.length;
- out += "\n";
+ out
str
+= "\n";
}
}
//f.close();
}
}
//f.close();
@@
-324,7
+325,7
@@
namespace JSDOC
return out.substring(0,out.length-1);
}
*/
return out.substring(0,out.length-1);
}
*/
- return out;
+ return out
str
;
}
}
}
}