JS: Autoformat

This commit is contained in:
Asger Feldthaus
2021-10-04 13:30:15 +02:00
parent c8e7df7900
commit cbd577694c

View File

@@ -52,7 +52,8 @@ private DataFlow::Node getAValueExportedByPackage() {
result = getAValueExportedByPackage().getALocalSource()
or
// Nested property reads.
result = getAValueExportedByPackage().(DataFlow::SourceNode).getAPropertyReference(publicPropertyName())
result =
getAValueExportedByPackage().(DataFlow::SourceNode).getAPropertyReference(publicPropertyName())
or
// module.exports.foo = require("./other-module.js");
exists(Module mod |
@@ -186,9 +187,7 @@ private DataFlow::Node getAnExportFromModule(Module mod) {
* This only allows properties whose first character is a letter or number.
*/
bindingset[result]
private string publicPropertyName() {
result.regexpMatch("[a-zA-Z0-9].*")
}
private string publicPropertyName() { result.regexpMatch("[a-zA-Z0-9].*") }
/**
* Holds if the given function is part of a private (or protected) method declaration.