mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
JS: Autoformat
This commit is contained in:
@@ -60,8 +60,7 @@ class AmdModuleDefinition extends CallExpr {
|
||||
result instanceof DataFlow::ValueNode
|
||||
}
|
||||
|
||||
private
|
||||
DataFlow::Node getFactoryNodeInternal() {
|
||||
private DataFlow::Node getFactoryNodeInternal() {
|
||||
result = DataFlow::valueNode(getLastArgument()) or
|
||||
result = getFactoryNodeInternal().getAPredecessor()
|
||||
}
|
||||
|
||||
@@ -10,8 +10,7 @@ module LazyCache {
|
||||
*
|
||||
* A lazy-cache object, usually created through an expression of form `require('lazy-cache')(require)`.
|
||||
*/
|
||||
deprecated
|
||||
class LazyCacheObject extends DataFlow::SourceNode {
|
||||
deprecated class LazyCacheObject extends DataFlow::SourceNode {
|
||||
LazyCacheObject() {
|
||||
// Use `require` directly instead of `moduleImport` to avoid recursion.
|
||||
// For the same reason, avoid `Import.getImportedPath`.
|
||||
@@ -55,9 +54,7 @@ module LazyCache {
|
||||
|
||||
override PathExpr getImportedPath() { result = getArgument(0) }
|
||||
|
||||
private LazyCacheVariable getVariable() {
|
||||
result = cache
|
||||
}
|
||||
private LazyCacheVariable getVariable() { result = cache }
|
||||
|
||||
pragma[noopt]
|
||||
override DataFlow::Node getImportedModuleNode() {
|
||||
|
||||
Reference in New Issue
Block a user