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: Created Aug. 24, 2016, 11:08 a.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
Index: scripts/doxygen.js
diff --git a/scripts/doxygen.js b/scripts/doxygen.js
index 8d8138b1d15aaaf537519baaa8168b100c6e1ce9..44e4d795a35e9f485e6c946e463b106bfd96c931 100644
--- a/scripts/doxygen.js
+++ b/scripts/doxygen.js
@@ -27,17 +27,17 @@ function process_js(ast, f) {
}
let toplevel = clean_ast(ast);
associate_comments(f, toplevel);
- for each (let v in toplevel.variables) {
+ for (let v of toplevel.variables) {
if (v.comment)
_print(v.comment);
_print(loc(v.loc) + " VARIABLE " + v.name);
}
- for each (let v in toplevel.constants) {
+ for (let v of toplevel.constants) {
if (v.comment)
_print(v.comment);
_print(loc(v.loc) + " CONST " + v.name);
}
- for each (let v in toplevel.objects) {
+ for (let v of toplevel.objects) {
divine_inheritance(v, toplevel.constants);
if (v.comment)
_print(v.comment);
@@ -54,7 +54,7 @@ function process_js(ast, f) {
}
_print("CLASS END");
}
- for each (let v in toplevel.classes) {
+ for (let v of toplevel.classes) {
divine_inheritance(v, toplevel.constants);
if (v.constructor && v.constructor.comment)
_print(v.constructor.comment);
@@ -73,7 +73,7 @@ function process_js(ast, f) {
}
_print("CLASS END");
}
- for each (let v in toplevel.functions) {
+ for (let v of toplevel.functions) {
if (v.comment)
_print(v.comment);
_print(loc(v.loc) + " FUNCTION " + v.name);
« scripts/decompile.js ('K') | « scripts/decompile.js ('k') | scripts/dxr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld