Skip to content
Snippets Groups Projects
Commit 00ee16f3 authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Represent identities internally as tuples.

parent 87db57d8
No related branches found
No related tags found
No related merge requests found
......@@ -459,6 +459,10 @@ class IdentityrefType(DataType):
super().__init__(mid)
self.bases = [] # type: List[QualName]
def _convert_raw(self, raw: str) -> QualName:
i1, s, i2 = raw.partition(":")
return (i2, i1) if s else (i1, self.module_id[0])
def handle_properties(self, stmt: Statement, mid: ModuleId) -> None:
"""Handle type substatements.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment