mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
make EventEmitter classses non final, and add a comment about extending EventEmitter::Range
This commit is contained in:
@@ -45,9 +45,10 @@ module EventEmitter {
|
||||
}
|
||||
|
||||
/**
|
||||
* An EventEmitter instance that implements the NodeJS EventEmitter API.
|
||||
* An EventEmitter instance that implements the NodeJS EventEmitter API.
|
||||
* Extend EventEmitter::Range to mark something as being an EventEmitter.
|
||||
*/
|
||||
final class EventEmitter extends DataFlow::Node {
|
||||
class EventEmitter extends DataFlow::Node {
|
||||
EventEmitterRange::Range range;
|
||||
|
||||
EventEmitter() { this = range }
|
||||
@@ -85,7 +86,7 @@ module EventEmitter {
|
||||
/**
|
||||
* A registration of an event handler on an EventEmitter.
|
||||
*/
|
||||
final class EventRegistration extends DataFlow::Node {
|
||||
class EventRegistration extends DataFlow::Node {
|
||||
EventRegistration::Range range;
|
||||
|
||||
EventRegistration() { this = range }
|
||||
@@ -147,7 +148,7 @@ module EventEmitter {
|
||||
/**
|
||||
* A dispatch of an event on an EventEmitter.
|
||||
*/
|
||||
final class EventDispatch extends DataFlow::Node {
|
||||
class EventDispatch extends DataFlow::Node {
|
||||
EventDispatch::Range range;
|
||||
|
||||
EventDispatch() { this = range }
|
||||
|
||||
Reference in New Issue
Block a user