Package com.google.dart.engine.html.ast

Examples of com.google.dart.engine.html.ast.HtmlUnit


   * @return the parse result (not {@code null})
   */
  public HtmlUnit parse(Token token, LineInfo lineInfo) {
    this.lineInfo = lineInfo;
    List<XmlTagNode> tagNodes = parseTopTagNodes(token);
    return new HtmlUnit(token, tagNodes, getCurrentToken());
  }
View Full Code Here


   *           resolved
   */
  private HtmlEntry cacheHtmlParseData(Source source, HtmlEntry htmlEntry,
      DataDescriptor<?> descriptor) throws AnalysisException {
    if (descriptor == HtmlEntry.PARSED_UNIT) {
      HtmlUnit unit = htmlEntry.getAnyParsedUnit();
      if (unit != null) {
        return htmlEntry;
      }
    }
    //
View Full Code Here

      if (parseErrorsState == CacheState.INVALID
          || (isPriority && parseErrorsState == CacheState.FLUSHED)) {
        return createParseHtmlTask(source, htmlEntry);
      }
      if (isPriority && parseErrorsState != CacheState.ERROR) {
        HtmlUnit parsedUnit = htmlEntry.getAnyParsedUnit();
        if (parsedUnit == null) {
          return createParseHtmlTask(source, htmlEntry);
        }
      }
View Full Code Here

          }
        }
        HtmlEntryImpl htmlCopy = ((HtmlEntry) sourceEntry).getWritableCopy();
        if (thrownException == null) {
          LineInfo lineInfo = task.getLineInfo();
          HtmlUnit unit = task.getHtmlUnit();
          htmlCopy.setValue(SourceEntry.LINE_INFO, lineInfo);
          htmlCopy.setValue(HtmlEntry.PARSED_UNIT, unit);
          htmlCopy.setValue(HtmlEntry.PARSE_ERRORS, task.getErrors());
          htmlCopy.setValue(HtmlEntry.REFERENCED_LIBRARIES, task.getReferencedLibraries());
          cache.storedAst(source);
View Full Code Here

TOP

Related Classes of com.google.dart.engine.html.ast.HtmlUnit

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.