visitDoubleLiteral method

  1. @override
Future<Element> visitDoubleLiteral(
  1. DoubleLiteral node
)
override

Implementation

@override
Future<Element> visitDoubleLiteral(DoubleLiteral node) async {
  return LiteralElement(
    constant: true,
    constantValue: double.parse(_removeSeparators(node.literal.lexeme)),
    type: const DoubleType(),
  );
}