@@ -378,10 +378,6 @@ module API {
378
378
*
379
379
* Anything in the global scope is considered to be an entry point, but
380
380
* additional entry points may be added by extending this class.
381
- *
382
- * By default, instances of this class will have a single edge from the root
383
- * of the API graph. If you wish to construct more complex paths to an entry
384
- * point, override the `edge` predicate.
385
381
*/
386
382
abstract class EntryPoint extends string {
387
383
bindingset [ this ]
@@ -404,41 +400,6 @@ module API {
404
400
405
401
/** Gets an API-node for this entry point. */
406
402
API:: Node getANode ( ) { result = root ( ) .getASuccessor ( Label:: entryPoint ( this ) ) }
407
-
408
- /**
409
- * Holds if there is an edge from `pred` to this entry point, with label
410
- * `lbl`. Override this predicate to define new paths to this entry point.
411
- *
412
- * For example, to define an entry point for `ActiveStorage::Attachment` we
413
- * can use an intermediate entry point for `ActiveStorage`:
414
- *
415
- * ```ql
416
- * class ActiveStorage extends EntryPoint {
417
- * ActiveStorage() { this = "ActiveStorage" }
418
- *
419
- * override predicate edge(Node pred, Label::ApiLabel lbl) {
420
- * pred = root() and lbl = Label::member("ActiveStorage")
421
- * }
422
- * }
423
- *
424
- * class Attachment extends EntryPoint {
425
- * Attachment() { this = "ActiveStorage::Attachment" }
426
- *
427
- * override predicate edge(Node pred, Label::ApiLabel lbl) {
428
- * pred = getTopLevelMember("ActiveStorage") and
429
- * lbl = Label::member("Attachment")
430
- * }
431
- *
432
- * override DataFlow::LocalSourceNode getAUse() { result = customAttachmentPredicate() }
433
- * }
434
- * ```
435
- *
436
- * This means that
437
- * `getTopLevelMember("ActiveStorage").getMember("Attachment")` will return
438
- * results from `customAttachmentPredicate()`, even if there are no
439
- * references to `ActiveStorage` or `Attachment` in the codebase.
440
- */
441
- predicate edge ( API:: Node pred , Label:: ApiLabel lbl ) { none ( ) }
442
403
}
443
404
444
405
// Ensure all entry points are imported from ApiGraphs.qll
@@ -757,8 +718,6 @@ module API {
757
718
exists ( EntryPoint entry |
758
719
pred = root ( ) and
759
720
lbl = Label:: entryPoint ( entry )
760
- or
761
- entry .edge ( pred , lbl )
762
721
|
763
722
succ = MkDef ( entry .getASink ( ) )
764
723
or
0 commit comments