-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose "indexed" attribute on event parameters (used to indicate incl…
…usion in bloom filter).
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
from .variable import Variable | ||
from slither.core.children.child_event import ChildEvent | ||
|
||
class EventVariable(ChildEvent, Variable): pass | ||
class EventVariable(ChildEvent, Variable): | ||
def __init__(self): | ||
super(EventVariable, self).__init__() | ||
self._indexed = False | ||
|
||
@property | ||
def indexed(self): | ||
""" | ||
Indicates whether the event variable is indexed in the bloom filter. | ||
:return: Returns True if the variable is indexed in bloom filter, False otherwise. | ||
""" | ||
return self._indexed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters