Skip to content

Commit e2b3392

Browse files
committed
JS: Deprecate some things from JSDoc name resolution
1 parent e311d2b commit e2b3392

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/lib/semmle/javascript/JSDoc.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class JSDocNamedTypeExpr extends JSDocTypeExpr {
415415
* - `foo.bar.Baz` has prefix `foo` and suffix `.bar.Baz`.
416416
* - `Baz` has prefix `Baz` and an empty suffix.
417417
*/
418-
predicate hasNameParts(string prefix, string suffix) {
418+
deprecated predicate hasNameParts(string prefix, string suffix) {
419419
not this = any(JSDocQualifiedTypeAccess a).getBase() and // restrict size of predicate
420420
exists(string regex, string name | regex = "([^.]+)(.*)" |
421421
name = this.getRawName() and
@@ -635,7 +635,7 @@ module JSDoc {
635635
/**
636636
* A statement container which may declare JSDoc name aliases.
637637
*/
638-
class Environment extends StmtContainer {
638+
deprecated class Environment extends StmtContainer {
639639
/**
640640
* Gets the fully qualified name aliased by the given unqualified name
641641
* within this container.
@@ -685,7 +685,7 @@ module JSDoc {
685685
}
686686

687687
pragma[noinline]
688-
private predicate isTypenamePrefix(string name) {
688+
deprecated private predicate isTypenamePrefix(string name) {
689689
any(JSDocNamedTypeExpr expr).hasNameParts(name, _)
690690
}
691691
}

0 commit comments

Comments
 (0)