@@ -155,8 +155,6 @@ class ExternalModuleDeclaration extends Stmt, StmtContainer, @externalmoduledecl
155155 int getNumStmt ( ) { result = count ( getAStmt ( ) ) }
156156
157157 override StmtContainer getEnclosingContainer ( ) { result = this .getContainer ( ) }
158-
159- override predicate isAmbient ( ) { any ( ) }
160158}
161159
162160/**
@@ -176,8 +174,6 @@ class GlobalAugmentationDeclaration extends Stmt, StmtContainer, @globalaugmenta
176174 int getNumStmt ( ) { result = count ( getAStmt ( ) ) }
177175
178176 override StmtContainer getEnclosingContainer ( ) { result = this .getContainer ( ) }
179-
180- override predicate isAmbient ( ) { any ( ) }
181177}
182178
183179/** A TypeScript "import-equals" declaration. */
@@ -237,8 +233,6 @@ class ExportAsNamespaceDeclaration extends Stmt, @exportasnamespacedeclaration {
237233 * Gets the `X` in `export as namespace X`.
238234 */
239235 Identifier getIdentifier ( ) { result = getChildExpr ( 0 ) }
240-
241- override predicate isAmbient ( ) { any ( ) }
242236}
243237
244238/**
@@ -259,8 +253,6 @@ class TypeAliasDeclaration extends @typealiasdeclaration, TypeParameterized, Stm
259253
260254 override string describe ( ) { result = "type alias " + getName ( ) }
261255
262- override predicate isAmbient ( ) { any ( ) }
263-
264256 /**
265257 * Gets the canonical name of the type being defined.
266258 */
@@ -286,8 +278,6 @@ class InterfaceDeclaration extends Stmt, InterfaceDefinition, @interfacedeclarat
286278
287279 override StmtContainer getContainer ( ) { result = Stmt .super .getContainer ( ) }
288280
289- override predicate isAmbient ( ) { any ( ) }
290-
291281 override string describe ( ) { result = "interface " + getName ( ) }
292282
293283 /**
@@ -533,8 +523,6 @@ class LocalNamespaceName extends @local_namespace_name, LexicalName {
533523class TypeExpr extends ExprOrType , @typeexpr, TypeAnnotation {
534524 override string toString ( ) { typeexprs ( this , _, _, _, result ) }
535525
536- override predicate isAmbient ( ) { any ( ) }
537-
538526 /**
539527 * Gets the static type expressed by this type annotation.
540528 *
@@ -1410,8 +1398,6 @@ class EnumDeclaration extends NamespaceDefinition, @enumdeclaration, AST::ValueN
14101398 /** Holds if this enumeration is declared with the `const` keyword. */
14111399 predicate isConst ( ) { isConstEnum ( this ) }
14121400
1413- override predicate isAmbient ( ) { hasDeclareKeyword ( this ) or getParent ( ) .isAmbient ( ) }
1414-
14151401 override ControlFlowNode getFirstControlFlowNode ( ) { result = getIdentifier ( ) }
14161402}
14171403
0 commit comments