fromAst static method

NumericLiteral? fromAst(
  1. Map? ast
)

Implementation

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