private void parseImport() {
        tokenizer.consumeExpectedKeyword(KEYWORD_IMPORT);
        if (!tokenizer.current().isString()) {
            tokenizer.addError(tokenizer.current(),
                               "Unexpected token: '"
                               + tokenizer.current().getSource()
                               + "'. Expected a string constant naming an import file.");
        } else {
            result.addImport(tokenizer.consume().getContents());
        }
        tokenizer.consumeExpectedSymbol(";");
    }
private void parseImport ( ) { tokenizer . consumeExpectedKeyword ( KEYWORD_IMPORT ) ; if ( ! tokenizer . current ( ) . isString ( ) ) { tokenizer . addError ( tokenizer . current ( ) , "Unexpected token: '" + tokenizer . current ( ) . getSource ( ) + "'. Expected a string constant naming an import file." ) ; } else { result . addImport ( tokenizer . consume ( ) . getContents ( ) ) ; } tokenizer . consumeExpectedSymbol ( ";" ) ; }
/*
Parses an import statement like "@import 'test';"