File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
javascript/ql/lib/semmle/javascript/frameworks/data/internal Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,11 @@ import JS::DataFlow as DataFlow
3232private 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+ */
4140bindingset [ rawType]
4241predicate parseTypeString ( string rawType , string package , string qualifiedName ) {
4342 exists ( string regexp |
You can’t perform that action at this time.
0 commit comments