mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JS: Rename EntryPoint.getNode -> getANode
This commit is contained in:
@@ -389,7 +389,10 @@ module API {
|
||||
abstract DataFlow::Node getARhs();
|
||||
|
||||
/** Gets an API-node for this entry point. */
|
||||
API::Node getNode() { result = root().getASuccessor(Label::entryPoint(this)) }
|
||||
API::Node getANode() { result = root().getASuccessor(Label::entryPoint(this)) }
|
||||
|
||||
/** DEPRECATED. Use `getANode()` instead. */
|
||||
deprecated API::Node getNode() { result = this.getANode() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,7 @@ module D3 {
|
||||
or
|
||||
result = API::moduleImport("d3-node").getInstance().getMember("d3")
|
||||
or
|
||||
result = any(D3GlobalEntry i).getNode()
|
||||
result = any(D3GlobalEntry i).getANode()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,7 +17,7 @@ module History {
|
||||
* Gets a reference to the [`history`](https://npmjs.org/package/history) library.
|
||||
*/
|
||||
private API::Node history() {
|
||||
result = [API::moduleImport("history"), any(HistoryGlobalEntry h).getNode()]
|
||||
result = [API::moduleImport("history"), any(HistoryGlobalEntry h).getANode()]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,7 +27,7 @@ private module Immutable {
|
||||
API::Node immutableImport() {
|
||||
result = API::moduleImport("immutable")
|
||||
or
|
||||
result = any(ImmutableGlobalEntry i).getNode()
|
||||
result = any(ImmutableGlobalEntry i).getANode()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,7 +45,7 @@ private module Console {
|
||||
*/
|
||||
private API::Node console() {
|
||||
result = API::moduleImport("console") or
|
||||
result = any(ConsoleGlobalEntry e).getNode()
|
||||
result = any(ConsoleGlobalEntry e).getANode()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -151,7 +151,7 @@ module NestJS {
|
||||
private API::Node validationPipe() {
|
||||
result = nestjs().getMember("ValidationPipe")
|
||||
or
|
||||
result = any(ValidationNodeEntry e).getNode()
|
||||
result = any(ValidationNodeEntry e).getANode()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1111,7 +1111,7 @@ module Redux {
|
||||
|
||||
/** A heuristic call to `connect`, recognized by it taking arguments named `mapStateToProps` and `mapDispatchToProps`. */
|
||||
private class HeuristicConnectFunction extends ConnectCall {
|
||||
HeuristicConnectFunction() { this = any(HeuristicConnectEntryPoint e).getNode().getACall() }
|
||||
HeuristicConnectFunction() { this = any(HeuristicConnectEntryPoint e).getANode().getACall() }
|
||||
|
||||
override API::Node getMapStateToProps() {
|
||||
result = getAParameter() and
|
||||
|
||||
@@ -19,7 +19,7 @@ module TrustedTypes {
|
||||
override DataFlow::Node getARhs() { none() }
|
||||
}
|
||||
|
||||
private API::Node trustedTypesObj() { result = any(TrustedTypesEntry entry).getNode() }
|
||||
private API::Node trustedTypesObj() { result = any(TrustedTypesEntry entry).getANode() }
|
||||
|
||||
/** A call to `trustedTypes.createPolicy`. */
|
||||
class PolicyCreation extends API::CallNode {
|
||||
|
||||
@@ -35,7 +35,7 @@ module Vue {
|
||||
API::Node vueLibrary() {
|
||||
result = API::moduleImport("vue")
|
||||
or
|
||||
result = any(GlobalVueEntryPoint e).getNode()
|
||||
result = any(GlobalVueEntryPoint e).getANode()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -51,7 +51,7 @@ module Vue {
|
||||
or
|
||||
result = vueLibrary().getMember("component").getReturn()
|
||||
or
|
||||
result = any(VueFileImportEntryPoint e).getNode()
|
||||
result = any(VueFileImportEntryPoint e).getANode()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -67,7 +67,7 @@ private class GlobalApiEntryPoint extends API::EntryPoint {
|
||||
* Gets an API node referring to the given global variable (if relevant).
|
||||
*/
|
||||
private API::Node getGlobalNode(string globalName) {
|
||||
result = any(GlobalApiEntryPoint e | e.getGlobal() = globalName).getNode()
|
||||
result = any(GlobalApiEntryPoint e | e.getGlobal() = globalName).getANode()
|
||||
}
|
||||
|
||||
/** Gets a JavaScript-specific interpretation of the `(package, type, path)` tuple after resolving the first `n` access path tokens. */
|
||||
|
||||
Reference in New Issue
Block a user