visitTypeAliasDecl method

  1. @override
String visitTypeAliasDecl(
  1. TypeAliasDecl stmt
)
override

Implementation

@override
String visitTypeAliasDecl(TypeAliasDecl stmt) {
  final output = StringBuffer();
  output.write('${_lexicon.kType} ${stmt.id.id} ${_lexicon.assign} ');
  final valueString = formatAST(stmt.typeValue);
  output.write(valueString);
  if (stmt.hasEndOfStmtMark) {
    output.write(_lexicon.endOfStatementMark);
  }
  return output.toString();
}