Skip to content

Commit

Permalink
Make filename mandatory in __convert_unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Senier committed Feb 27, 2021
1 parent 3ef392f commit 978597b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rflx/specification/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ def __init__(self, skip_verification: bool = False, cached: bool = False) -> Non
self.__cache = Cache(cached)

def __convert_unit(
self, spec: Specification, filename: Path = STDIN, transitions: List[ID] = None
self, spec: Specification, filename: Path, transitions: List[ID] = None
) -> RecordFluxError:
transitions = transitions or []
error = RecordFluxError()
Expand Down Expand Up @@ -1254,7 +1254,7 @@ def parse_string(
error = RecordFluxError()
unit = AnalysisContext().get_from_buffer("<stdin>", string, rule=rule)
if not diagnostics_to_error(unit.diagnostics, error):
error = self.__convert_unit(unit.root)
error = self.__convert_unit(unit.root, STDIN)
error.propagate()

def create_model(self) -> model.Model:
Expand Down

0 comments on commit 978597b

Please sign in to comment.