Package dtool.parser

Examples of dtool.parser.DeeTokens


      assertTrue(token.getError() == expectedError);
     
      assertTrue(token.getStartPos() == readOffset);
      assertEquals(deeLexer.source.subSequence(token.getStartPos(), token.getEndPos()), token.getSourceValue());
     
      DeeTokens tokenCode = token.getType();
      if(tokenCode == DeeTokens.EOF) {
        assertTrue(token.getEndPos() >= token.getStartPos());
      } else {
        assertTrue(token.getEndPos() > token.getStartPos());
      }
View Full Code Here


        raw = raw.replace("\n", "<br/>");
        raw = raw.replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp;");
        break;
      default:
       
        DeeTokens tokenTypeGroup = token.type.getGroupingToken();
       
        if(DeeTokenHelper.isKeyword(token.type)) {
          styleClassName = IDeeDocColorConstants.JAVA_KEYWORD;
        } else {
          if(tokenTypeGroup == DeeTokens.GROUP_STRING || token.type.getGroupingToken() == DeeTokens.CHARACTER) {
View Full Code Here

    while(true) {
      lexer.parseToken();
      Token token = lexer.createParsedToken();
      tokenParsed(token);
     
      DeeTokens tkType = lexer.tokenType;
      if(tkType.isSubChannel && !isRelevant(tkType)) {
        continue;
      }
     
      if(tkType.isSubChannel) {
View Full Code Here

   
    // We reparse the snipped source as it's the easiest way to determine search prefix
    String refModuleSnippedSource = source.substring(refModule.getStartPos(), offset);
    DeeParser parser = new DeeParser(refModuleSnippedSource);
    String moduleQualifiedNameCanonicalPrefix = parser.parseRefModule().toStringAsCode();
    DeeTokens lookAhead = parser.lookAhead();
    if(lookAhead != DeeTokens.EOF) {
      assertTrue(lookAhead.isKeyword());
      moduleQualifiedNameCanonicalPrefix += lookAhead.getSourceValue();
    }
   
    PrefixSearchOptions searchOptions = new PrefixSearchOptions();
    searchOptions.setPrefixSearchOptions(moduleQualifiedNameCanonicalPrefix, rplLen);
    searchOptions.isImportModuleSearch = true;
View Full Code Here

TOP

Related Classes of dtool.parser.DeeTokens

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.