Skip to content

Commit e85dcc3

Browse files
committed
PathExprResolver docs
1 parent 8dd4d35 commit e85dcc3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

javascript/ql/lib/semmle/javascript/internal/paths/PathExprResolver.qll

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)