mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
d404fee38f
Merge all the command-line scripts for generating tuple-tree implementations into a single `tuple-tree-generate.py` script. Move all the other files a directory down.
19 lines
473 B
Python
19 lines
473 B
Python
#
|
|
# This file is distributed under the MIT License. See LICENSE.md for details.
|
|
#
|
|
|
|
|
|
from typing import Optional, Set
|
|
|
|
|
|
class Definition:
|
|
def __init__(self, is_scalar: bool, name: Optional[str] = None):
|
|
self.name = name
|
|
# Names of types on which this definition depends on.
|
|
# Not necessarily names defined by the user
|
|
self.dependencies: Set[str] = set()
|
|
self.is_scalar = is_scalar
|
|
|
|
def __hash__(self):
|
|
return id(self)
|