fromAst static method

MemberExpression? fromAst(
  1. Map? ast
)

Implementation

static MemberExpression? fromAst(Map? ast) {
  if (ast != null &&
      ast['type'] == astNodeNameValue(AstNodeName.MemberExpression)) {
    return MemberExpression(Expression.fromAst(ast['object']),
        Identifier.fromAst(ast['property'])?.name,
        ast: ast);
  }
  return null;
}