MCPcopy Create free account
hub / github.com/ablab/spades / check_event

Method check_event

ext/src/python_libs/pyyaml3/parser.py:94–105  ·  view source on GitHub ↗
(self, *choices)

Source from the content-addressed store, hash-verified

92 self.state = None
93
94 def check_event(self, *choices):
95 # Check the type of the next event.
96 if self.current_event is None:
97 if self.state:
98 self.current_event = self.state()
99 if self.current_event is not None:
100 if not choices:
101 return True
102 for choice in choices:
103 if isinstance(self.current_event, choice):
104 return True
105 return False
106
107 def peek_event(self):
108 # Get the next event.

Callers 7

parseFunction · 0.80
check_nodeMethod · 0.80
get_nodeMethod · 0.80
get_single_nodeMethod · 0.80
compose_nodeMethod · 0.80
compose_sequence_nodeMethod · 0.80
compose_mapping_nodeMethod · 0.80

Calls 1

stateMethod · 0.80

Tested by

no test coverage detected