Package com.google.dart.engine.html.scanner

Examples of com.google.dart.engine.html.scanner.TokenType


   * @return the list of tag nodes found (not {@code null}, contains no {@code null})
   */
  protected List<XmlTagNode> parseTopTagNodes(Token firstToken) {
    currentToken = firstToken;
    List<XmlTagNode> tagNodes = new ArrayList<XmlTagNode>();
    TokenType type = currentToken.getType();
    while (type != EOF) {
      if (type == LT) {
        tagNodes.add(parseTagNode());
      } else if (type == DECLARATION || type == DIRECTIVE || type == COMMENT) {
        // ignored tokens
View Full Code Here


   * next {@link TokenType#GT}, {@link TokenType#SLASH_GT}, or {@link TokenType#EOF}.
   *
   * @return a collection of zero or more attributes (not {@code null}, contains no {@code null}s)
   */
  private List<XmlAttributeNode> parseAttributes() {
    TokenType type = currentToken.getType();
    if (type == GT || type == SLASH_GT || type == EOF) {
      return XmlTagNode.NO_ATTRIBUTES;
    }
    ArrayList<XmlAttributeNode> attributes = new ArrayList<XmlAttributeNode>();
    while (type != GT && type != SLASH_GT && type != EOF) {
View Full Code Here

   * advances the current token to the next {@link TokenType#LT_SLASH} or {@link TokenType#EOF}.
   *
   * @return a list of nodes (not {@code null}, contains no {@code null}s)
   */
  private List<XmlTagNode> parseChildTagNodes() {
    TokenType type = currentToken.getType();
    if (type == LT_SLASH || type == EOF) {
      return XmlTagNode.NO_TAG_NODES;
    }
    ArrayList<XmlTagNode> nodes = new ArrayList<XmlTagNode>();
    while (type != LT_SLASH && type != EOF) {
View Full Code Here

TOP

Related Classes of com.google.dart.engine.html.scanner.TokenType

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.