Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/checks/FunctionRecord.java

Issue 2441163002: DevTools: clean up scripts folder (Closed)
Patch Set: Fix sys.path for chromevox to load rjsmin Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/checks/FunctionRecord.java
diff --git a/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/FunctionRecord.java b/third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/checks/FunctionRecord.java
similarity index 82%
rename from third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/FunctionRecord.java
rename to third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/checks/FunctionRecord.java
index 516c0adf788699752263aa873d59fe910dae8e67..a44286d092b0bd5e85cb28ac09190fafe5bf774b 100644
--- a/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/FunctionRecord.java
+++ b/third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/checks/FunctionRecord.java
@@ -15,9 +15,8 @@ public class FunctionRecord {
final TypeRecord enclosingType;
final FunctionRecord enclosingFunctionRecord;
- public FunctionRecord(Node functionNode, String name,
- List<String> parameterNames, TypeRecord parentType,
- FunctionRecord enclosingFunctionRecord) {
+ public FunctionRecord(Node functionNode, String name, List<String> parameterNames,
+ TypeRecord parentType, FunctionRecord enclosingFunctionRecord) {
this.functionNode = functionNode;
this.info = NodeUtil.getBestJSDocInfo(functionNode);
this.name = name;
@@ -57,13 +56,12 @@ public class FunctionRecord {
public boolean suppressesGlobalPropertiesCheck() {
return info != null
- && info.getOriginalCommentString().contains("@suppressGlobalPropertiesCheck");
+ && info.getOriginalCommentString().contains("@suppressGlobalPropertiesCheck");
}
@Override
public String toString() {
- return (info == null ? "" : info.getOriginalCommentString() + "\n") +
- (name == null ? "<anonymous>" : name) + "() @" +
- functionNode.getLineno();
+ return (info == null ? "" : info.getOriginalCommentString() + "\n")
+ + (name == null ? "<anonymous>" : name) + "() @" + functionNode.getLineno();
}
}

Powered by Google App Engine
This is Rietveld 408576698