class LocationTokens {

    public List<Token> tokensOfType(TokenType... tokenTypes) {
        List<Token> tokensOfType = new ArrayList<>();
        for (Token token : getTokens()) {
            for (int i = 0; i < tokenTypes.length; i++) {
                if (tokenTypes[i].equals(token.getType())) {
                    tokensOfType.add(token);
                }
            }
        }
        return tokensOfType;
    }

    public  LocationTokens(Input input, List<Chunk> chunks);

}