visitHexColorTerm method

  1. @override
void visitHexColorTerm(
  1. HexColorTerm node
)
override

Implementation

@override
void visitHexColorTerm(HexColorTerm node) {
  String? mappedName;
  if (_isTesting && (node.value is! BAD_HEX_VALUE)) {
    mappedName = TokenKind.hexToColorName(node.value);
  }
  mappedName ??= '#${node.text}';

  emit(mappedName);
}