How to use the token-types.IgnoreType function in token-types

To help you get started, we’ve selected a few token-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Borewit / music-metadata / src / flac / FlacParser.ts View on Github external
break;
      case BlockType.APPLICATION:
        break;
      case BlockType.SEEKTABLE:
        break;
      case BlockType.VORBIS_COMMENT:
        return this.parseComment(blockHeader.length);
      case BlockType.CUESHEET:
        break;
      case BlockType.PICTURE:
        return this.parsePicture(blockHeader.length);
      default:
        this.warnings.push("Unknown block type: " + blockHeader.type);
    }
    // Ignore data block
    return this.tokenizer.readToken(new Token.IgnoreType(blockHeader.length));
  }