isKindIdentifier static method

bool isKindIdentifier(
  1. int kind
)

Implementation

static bool isKindIdentifier(int kind) {
  switch (kind) {
    // Synthesized tokens.
    case TokenKind.DIRECTIVE_IMPORT:
    case TokenKind.DIRECTIVE_MEDIA:
    case TokenKind.DIRECTIVE_PAGE:
    case TokenKind.DIRECTIVE_CHARSET:
    case TokenKind.DIRECTIVE_STYLET:
    case TokenKind.DIRECTIVE_KEYFRAMES:
    case TokenKind.DIRECTIVE_WEB_KIT_KEYFRAMES:
    case TokenKind.DIRECTIVE_MOZ_KEYFRAMES:
    case TokenKind.DIRECTIVE_MS_KEYFRAMES:
    case TokenKind.DIRECTIVE_O_KEYFRAMES:
    case TokenKind.DIRECTIVE_FONTFACE:
    case TokenKind.DIRECTIVE_NAMESPACE:
    case TokenKind.DIRECTIVE_HOST:
    case TokenKind.DIRECTIVE_MIXIN:
    case TokenKind.DIRECTIVE_INCLUDE:
    case TokenKind.DIRECTIVE_CONTENT:
    case TokenKind.UNIT_EM:
    case TokenKind.UNIT_EX:
    case TokenKind.UNIT_LENGTH_PX:
    case TokenKind.UNIT_LENGTH_CM:
    case TokenKind.UNIT_LENGTH_MM:
    case TokenKind.UNIT_LENGTH_IN:
    case TokenKind.UNIT_LENGTH_PT:
    case TokenKind.UNIT_LENGTH_PC:
    case TokenKind.UNIT_ANGLE_DEG:
    case TokenKind.UNIT_ANGLE_RAD:
    case TokenKind.UNIT_ANGLE_GRAD:
    case TokenKind.UNIT_TIME_MS:
    case TokenKind.UNIT_TIME_S:
    case TokenKind.UNIT_FREQ_HZ:
    case TokenKind.UNIT_FREQ_KHZ:
    case TokenKind.UNIT_FRACTION:
    case TokenKind.UNIT_LH:
    case TokenKind.UNIT_RLH:
      return true;
    default:
      return false;
  }
}