fromAst static method

ImplementsClause? fromAst(
  1. Map? ast
)

Implementation

static ImplementsClause? fromAst(Map? ast) {
  if (ast != null &&
      ast['type'] == astNodeNameValue(AstRuntimeNodeName.ImplementsClause)) {
    var astImplements = ast['implements'] as List;
    var implements = <String?>[];
    for (var typeName in astImplements) {
      implements.add(typeName['name']);
    }
    return ImplementsClause(implements);
  }
//    logDebug(_tag, 'Can not parse ast to ImplementsClause');
  return null;
}