@@ -2293,7 +2293,7 @@ class ModuleExpr extends TModuleExpr, TypeRef {
22932293
22942294 /**
22952295 * Gets the `i`th type argument if this module is a module instantiation.
2296- * The result is either a `PredicateExpr` or a `TypeExpr `.
2296+ * The result is either a `PredicateExpr`, `TypeExpr`, or `ModuleExpr `.
22972297 */
22982298 SignatureExpr getArgument ( int i ) {
22992299 result .toQL ( ) = me .getAFieldOrChild ( ) .( QL:: ModuleInstantiation ) .getChild ( i )
@@ -2313,14 +2313,16 @@ class ModuleExpr extends TModuleExpr, TypeRef {
23132313 }
23142314}
23152315
2316- /** A signature expression, either a `PredicateExpr` or a `TypeExpr `. */
2316+ /** A signature expression, either a `PredicateExpr`, a `TypeExpr`, or a `ModuleExpr `. */
23172317class SignatureExpr extends TSignatureExpr , AstNode {
23182318 QL:: SignatureExpr sig ;
23192319
23202320 SignatureExpr ( ) {
23212321 toQL ( this ) = sig .getPredicate ( )
23222322 or
23232323 toQL ( this ) = sig .getTypeExpr ( )
2324+ or
2325+ toQL ( this ) = sig .getModExpr ( )
23242326 }
23252327
23262328 /** Gets the generated AST node that contains this signature expression. */
@@ -2329,8 +2331,8 @@ class SignatureExpr extends TSignatureExpr, AstNode {
23292331 /** Gets this signature expression if it represents a predicate expression. */
23302332 PredicateExpr asPredicate ( ) { result = this }
23312333
2332- /** Gets this signature expression if it represents a type expression. */
2333- TypeExpr asType ( ) { result = this }
2334+ /** Gets this signature expression if it represents a type expression (either a `TypeExpr` or a `ModuleExpr`) . */
2335+ TypeRef asType ( ) { result = this }
23342336}
23352337
23362338/** An argument to an annotation. */
0 commit comments