visitBooleanLiteral method

  1. @override
Future<Element> visitBooleanLiteral(
  1. BooleanLiteral node
)
override

Implementation

@override
Future<Element> visitBooleanLiteral(BooleanLiteral node) async {
  return LiteralElement(
    constant: true,
    constantValue: node.literal.type == TokenType.trueKeyword ? true : false,
    type: const BooleanType(),
  );
}