Package com.google.dart.engine.element

Examples of com.google.dart.engine.element.LabelElement


  @Override
  public Void visitLabeledStatement(LabeledStatement node) {
    for (Label label : node.getLabels()) {
      SimpleIdentifier labelName = label.getLabel();
      LabelElement element = findIdentifier(enclosingExecutable.getLabels(), labelName);
      processElement(element);
    }
    return super.visitLabeledStatement(node);
  }
View Full Code Here


  @Override
  public Void visitSwitchCase(SwitchCase node) {
    for (Label label : node.getLabels()) {
      SimpleIdentifier labelName = label.getLabel();
      LabelElement element = findIdentifier(enclosingExecutable.getLabels(), labelName);
      processElement(element);
    }
    return super.visitSwitchCase(node);
  }
View Full Code Here

  @Override
  public Void visitSwitchDefault(SwitchDefault node) {
    for (Label label : node.getLabels()) {
      SimpleIdentifier labelName = label.getLabel();
      LabelElement element = findIdentifier(enclosingExecutable.getLabels(), labelName);
      processElement(element);
    }
    return super.visitSwitchDefault(node);
  }
View Full Code Here

    try {
      labelScope = new LabelScope(outerScope, true, false);
      for (SwitchMember member : node.getMembers()) {
        for (Label label : member.getLabels()) {
          SimpleIdentifier labelName = label.getLabel();
          LabelElement labelElement = (LabelElement) labelName.getStaticElement();
          labelScope = new LabelScope(labelScope, labelName.getName(), labelElement);
        }
      }
      super.visitSwitchStatement(node);
    } finally {
View Full Code Here

  private LabelScope addScopesFor(NodeList<Label> labels) {
    LabelScope outerScope = labelScope;
    for (Label label : labels) {
      SimpleIdentifier labelNameNode = label.getLabel();
      String labelName = labelNameNode.getName();
      LabelElement labelElement = (LabelElement) labelNameNode.getStaticElement();
      labelScope = new LabelScope(labelScope, labelName, labelElement);
    }
    return outerScope;
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.element.LabelElement

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.