Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: scripts/doxygen.js

Issue 29350140: Issue 4353 - Remove non standard for each syntax (Closed)
Patch Set: Removed unused code Created Aug. 24, 2016, 2:40 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/decompile.js ('k') | scripts/dxr.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/doxygen.js
diff --git a/scripts/doxygen.js b/scripts/doxygen.js
deleted file mode 100644
index 8d8138b1d15aaaf537519baaa8168b100c6e1ce9..0000000000000000000000000000000000000000
--- a/scripts/doxygen.js
+++ /dev/null
@@ -1,81 +0,0 @@
-// This is a complex script used for producing doxygen-readable input
-
-/* The following is a sample doxygen input file:
-FILE doxygen.js
-// Documentation for thing
-0:0 VARIABLE variable1
-// More documentation
-1:0 FUNCTION function ARGS a b c
-// Yet more documentation
-25:0 CLASS clazz INHERITS base1 base2
-40:2 CLASS VARIABLE clazzvar
-41:2 CLASS METHOD clazzfunc ARGS
-52:2 CLASS GETTER vara ARGS
-// Some Constant
-101:0 CONSTANT const1 VALUE 10
-*/
-
-include("../utils/dumpast.js");
-include("../utils/cleanast.js");
-include("../utils/comments.js");
-include("../utils/jstypes.js");
-
-function process_js(ast, f) {
- _print("FILE " + f);
- function loc(l) {
- return l.line + ":" + l.column;
- }
- let toplevel = clean_ast(ast);
- associate_comments(f, toplevel);
- for each (let v in toplevel.variables) {
- if (v.comment)
- _print(v.comment);
- _print(loc(v.loc) + " VARIABLE " + v.name);
- }
- for each (let v in toplevel.constants) {
- if (v.comment)
- _print(v.comment);
- _print(loc(v.loc) + " CONST " + v.name);
- }
- for each (let v in toplevel.objects) {
- divine_inheritance(v, toplevel.constants);
- if (v.comment)
- _print(v.comment);
- let inherits = v.inherits ? (" INHERITS " + v.inherits.join(", ")) : "";
- _print(loc(v.loc) + " CLASS " + v.name + inherits);
- let attrs = { METHOD: v.functions, VARIABLE: v.variables, GETTER: v.getters,
- SETTER: v.setters };
- for (let attr in attrs) {
- for (let name in attrs[attr]) {
- if (attrs[attr][name].comment)
- _print(attrs[attr][name].comment);
- _print(loc(attrs[attr][name].loc) + " CLASS " + attr + " " + name);
- }
- }
- _print("CLASS END");
- }
- for each (let v in toplevel.classes) {
- divine_inheritance(v, toplevel.constants);
- if (v.constructor && v.constructor.comment)
- _print(v.constructor.comment);
- if (v.comment)
- _print(v.comment);
- let inherits = v.inherits ? (" INHERITS " + v.inherits.join(", ")) : "";
- _print(loc(v.loc) + " CLASS " + v.name + inherits);
- let attrs = { METHOD: v.functions, VARIABLE: v.variables, GETTER: v.getters,
- SETTER: v.setters };
- for (let attr in attrs) {
- for (let name in attrs[attr]) {
- if (attrs[attr][name].comment)
- _print(attrs[attr][name].comment);
- _print(loc(attrs[attr][name].loc) + " CLASS " + attr + " " + name);
- }
- }
- _print("CLASS END");
- }
- for each (let v in toplevel.functions) {
- if (v.comment)
- _print(v.comment);
- _print(loc(v.loc) + " FUNCTION " + v.name);
- }
-}
« no previous file with comments | « scripts/decompile.js ('k') | scripts/dxr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld