File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
javascript/ql/lib/semmle/javascript/internal/paths Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -80,17 +80,14 @@ module ResolveExpr<exprSig/1 shouldResolveExpr> {
8080 private class RelevantExpr extends FinalExpr {
8181 RelevantExpr ( ) { shouldResolveExpr ( this ) }
8282
83+ /** Gets the string-value of this path. */
8384 string getValue ( ) { result = getValue ( TValueNode ( this ) ) }
8485
85- /**
86- * Gets a path mapping relevant for resolving `expr`.
87- */
86+ /** Gets a path mapping affecting this path. */
8887 pragma [ nomagic]
8988 PathMapping getAPathMapping ( ) { result .getAnAffectedFile ( ) = this .getFile ( ) }
9089
91- /**
92- * Gets the NPM package name from the beginning of the given import path.
93- */
90+ /** Gets the NPM package name from the beginning of this path. */
9491 pragma [ nomagic]
9592 string getPackagePrefix ( ) { result = this .getValue ( ) .( FilePath ) .getPackagePrefix ( ) }
9693 }
You can’t perform that action at this time.
0 commit comments