fromAst static method

Identifier? fromAst(
  1. Map? ast
)

Implementation

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