mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Merge pull request #7598 from erik-krogh/fieldOnlyUsedInCharPred
QL: field only used in charPred
This commit is contained in:
@@ -149,12 +149,10 @@ DataFlow::CallNode moduleRef(AngularModule m) {
|
||||
* A call to a method from the `angular.Module` API.
|
||||
*/
|
||||
class ModuleApiCall extends DataFlow::CallNode {
|
||||
/** The module on which the method is called. */
|
||||
AngularModule mod;
|
||||
/** The name of the called method. */
|
||||
string methodName;
|
||||
|
||||
ModuleApiCall() { this = moduleRef(mod).getAMethodCall(methodName) }
|
||||
ModuleApiCall() { this = moduleRef(_).getAMethodCall(methodName) }
|
||||
|
||||
/**
|
||||
* Gets the name of the invoked method.
|
||||
|
||||
@@ -65,10 +65,9 @@ private string getInterpolatedExpressionPattern() { result = "(?<=\\{\\{).*?(?=\
|
||||
*/
|
||||
private class HtmlTextNodeAsNgSourceProvider extends NgSourceProvider, HTML::TextNode {
|
||||
string source;
|
||||
int offset;
|
||||
|
||||
HtmlTextNodeAsNgSourceProvider() {
|
||||
source = this.getText().regexpFind(getInterpolatedExpressionPattern(), _, offset)
|
||||
source = this.getText().regexpFind(getInterpolatedExpressionPattern(), _, _)
|
||||
}
|
||||
|
||||
override predicate providesSourceAt(
|
||||
|
||||
Reference in New Issue
Block a user