hdl.ast: deprecate Repl and remove from AST; add Value.replicate.
This commit is contained in:
parent
b1cce87630
commit
d218273b9b
13 changed files with 83 additions and 95 deletions
|
|
@ -632,9 +632,6 @@ class _RHSValueCompiler(_ValueCompiler):
|
|||
}, src=_src(value.src_loc))
|
||||
return res
|
||||
|
||||
def on_Repl(self, value):
|
||||
return "{{ {} }}".format(" ".join(self(value.value) for _ in range(value.count)))
|
||||
|
||||
|
||||
class _LHSValueCompiler(_ValueCompiler):
|
||||
def on_Const(self, value):
|
||||
|
|
@ -695,9 +692,6 @@ class _LHSValueCompiler(_ValueCompiler):
|
|||
range(1 << len(value.offset))[:max_branches],
|
||||
value.src_loc)
|
||||
|
||||
def on_Repl(self, value):
|
||||
raise TypeError # :nocov:
|
||||
|
||||
|
||||
class _StatementCompiler(xfrm.StatementVisitor):
|
||||
def __init__(self, state, rhs_compiler, lhs_compiler):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue