We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c263139 commit b94039fCopy full SHA for b94039f
fluent.syntax/fluent/syntax/ast.py
@@ -378,6 +378,14 @@ def __init__(
378
def add_annotation(self, annot: "Annotation") -> None:
379
self.annotations.append(annot)
380
381
+class SourcePosition(BaseNode):
382
+ """
383
+ Represents a zero-indexed row/column position in the source string.
384
385
+ def __init__(self, row_index: int, column_index: int, **kwargs: Any):
386
+ super().__init__(**kwargs)
387
+ self.row_index = row_index
388
+ self.column_index = column_index
389
390
class Span(BaseNode):
391
def __init__(self, start: Location, end: Location, **kwargs: Any):
0 commit comments