@@ -321,14 +321,14 @@ module API {
321321 f = trackDefNode ( _) and f .getFunction ( ) .isAsync ( ) and hasSemantics ( f )
322322 } or
323323 MkDef ( DataFlow:: Node nd ) { rhs ( _, _, nd ) } or
324- MkUse ( DataFlow:: SourceNode nd ) { use ( _, _, nd ) } or
324+ MkUse ( DataFlow:: Node nd ) { use ( _, _, nd ) } or
325325 MkCanonicalNameDef ( CanonicalName n ) { isDefined ( n ) } or
326326 MkCanonicalNameUse ( CanonicalName n ) { isUsed ( n ) }
327327
328328 private predicate hasSemantics ( DataFlow:: Node nd ) { not nd .getTopLevel ( ) .isExterns ( ) }
329329
330330 /** Holds if `imp` is an import of module `m`. */
331- private predicate imports ( DataFlow:: SourceNode imp , string m ) {
331+ private predicate imports ( DataFlow:: Node imp , string m ) {
332332 imp = DataFlow:: moduleImport ( m ) and
333333 // path must not start with a dot or a slash
334334 m .regexpMatch ( "[^./].*" ) and
@@ -367,7 +367,7 @@ module API {
367367 * incoming edge from `base` labeled `lbl` in the API graph.
368368 */
369369 cached
370- predicate rhs ( Feature base , string lbl , DataFlow:: Node rhs ) {
370+ predicate rhs ( TFeature base , string lbl , DataFlow:: Node rhs ) {
371371 hasSemantics ( rhs ) and
372372 (
373373 base = MkRoot ( ) and
@@ -433,7 +433,7 @@ module API {
433433 * Holds if `rhs` is the right-hand side of a definition of feature `nd`.
434434 */
435435 cached
436- predicate rhs ( Feature nd , DataFlow:: Node rhs ) {
436+ predicate rhs ( TFeature nd , DataFlow:: Node rhs ) {
437437 exists ( string m | nd = MkModuleExport ( m ) | exports ( m , rhs ) )
438438 or
439439 nd = MkDef ( rhs )
@@ -449,7 +449,7 @@ module API {
449449 * `lbl` in the API graph.
450450 */
451451 cached
452- predicate use ( Feature base , string lbl , DataFlow:: SourceNode ref ) {
452+ predicate use ( TFeature base , string lbl , DataFlow:: Node ref ) {
453453 hasSemantics ( ref ) and
454454 (
455455 base = MkRoot ( ) and
@@ -502,7 +502,7 @@ module API {
502502 * Holds if `ref` is a use of feature `nd`.
503503 */
504504 cached
505- predicate use ( Feature nd , DataFlow:: SourceNode ref ) {
505+ predicate use ( TFeature nd , DataFlow:: Node ref ) {
506506 exists ( string m , Module mod | nd = MkModule ( m ) and mod = importableModule ( m ) |
507507 ref = DataFlow:: ssaDefinitionNode ( SSA:: implicitInit ( mod .( NodeModule ) .getModuleVariable ( ) ) )
508508 or
0 commit comments