fromAst static method

PrefixExpression? fromAst(
  1. Map? ast
)

Implementation

static PrefixExpression? fromAst(Map? ast) {
  if (ast != null &&
      ast['type'] == astNodeNameValue(AstNodeName.PrefixExpression)) {
    return PrefixExpression(Expression.fromAst(ast['argument']),
        ast['operator'], ast['prefix'] as bool,
        ast: ast);
  }
  return null;
}