vhdlpp: Variable::write_to_stream().
This commit is contained in:
parent
1a367c84b6
commit
dae3410dcd
|
|
@ -77,3 +77,10 @@ int Variable::emit(ostream&out, Entity*, ScopeBase*)
|
|||
out << ";" << endl;
|
||||
return errors;
|
||||
}
|
||||
|
||||
void Variable::write_to_stream(std::ostream&fd)
|
||||
{
|
||||
fd << "variable " << peek_name() << " : ";
|
||||
peek_type()->write_to_stream(fd);
|
||||
fd << ";" << endl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ class Variable : public SigVarBase {
|
|||
Variable(perm_string name, const VType*type);
|
||||
|
||||
int emit(ostream&out, Entity*ent, ScopeBase*scope);
|
||||
void write_to_stream(std::ostream&fd);
|
||||
};
|
||||
|
||||
inline void SigVarBase::count_ref_sequ()
|
||||
|
|
|
|||
Loading…
Reference in New Issue