Skip to content

Commit 76afc2d

Browse files
committed
JS: Fix formatting and rephrase comment
1 parent e99571b commit 76afc2d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

javascript/ql/lib/semmle/javascript/frameworks/data/internal/ApiGraphModelsSpecific.qll

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ import JS::DataFlow as DataFlow
3232
private import AccessPathSyntax
3333

3434
/**
35-
* Holds if `rawType` represents the JavaScript npm `package` with type `qualifiedName`.
36-
* The `qualifiedName` is everything after the first ".".
37-
* So e.g. `rawType = "foo.bar"` will parse to `package = "foo" and qualifiedName = "bar"`.
38-
* `package´ can be enclosed in single-quotes if the package name includes dots,
39-
* e.g. `'my.package'.type` parses to `package = "my.package" and qualifiedName = "type"`.
40-
*/
35+
* Holds if `rawType` represents the JavaScript type `qualifiedName` from the given NPM `package`.
36+
*
37+
* Type names have form `package.type` or just `package` if referring to the package export
38+
* object. If `package` contains a `.` character it must be enclosed in single quotes, such as `'package'.type`.
39+
*/
4140
bindingset[rawType]
4241
predicate parseTypeString(string rawType, string package, string qualifiedName) {
4342
exists(string regexp |

0 commit comments

Comments
 (0)