Skip to content

Commit d9f81b0

Browse files
committed
JS: Autoformat
1 parent 4793431 commit d9f81b0

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

javascript/ql/src/semmle/javascript/Variables.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,12 @@ class LocalVariable extends Variable {
325325
* If it has no declaration, the location of its declaring scope is used.
326326
*/
327327
Location getLocation() {
328-
result = min(Location loc | loc = getADeclaration().getLocation() | loc order by loc.getStartLine(), loc.getStartColumn() )
328+
result =
329+
min(Location loc |
330+
loc = getADeclaration().getLocation()
331+
|
332+
loc order by loc.getStartLine(), loc.getStartColumn()
333+
)
329334
or
330335
not exists(getADeclaration()) and
331336
result = getDeclaringContainer().getLocation()

javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,29 +1230,23 @@ module DataFlow {
12301230

12311231
CapturedVariableNode() { this = TCapturedVariableNode(variable) }
12321232

1233-
override BasicBlock getBasicBlock() {
1234-
result = variable.getDeclaringContainer().getStartBB()
1235-
}
1233+
override BasicBlock getBasicBlock() { result = variable.getDeclaringContainer().getStartBB() }
12361234

12371235
override predicate hasLocationInfo(
12381236
string filepath, int startline, int startcolumn, int endline, int endcolumn
12391237
) {
12401238
variable.getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
12411239
}
12421240

1243-
override string toString() {
1244-
result = variable.getName()
1245-
}
1241+
override string toString() { result = variable.getName() }
12461242
}
12471243

12481244
/**
12491245
* INTERNAL. DO NOT USE.
12501246
*
12511247
* Gets a data flow node representing the given captured variable.
12521248
*/
1253-
Node capturedVariableNode(LocalVariable variable) {
1254-
result = TCapturedVariableNode(variable)
1255-
}
1249+
Node capturedVariableNode(LocalVariable variable) { result = TCapturedVariableNode(variable) }
12561250

12571251
/**
12581252
* Gets the data flow node corresponding to `nd`.

0 commit comments

Comments
 (0)