Package org.eclipse.xtext

Examples of org.eclipse.xtext.RuleCall


    BidiTreeIterable<INode> _asTreeIterable = node.getAsTreeIterable();
    final Function1<INode, Boolean> _function = new Function1<INode, Boolean>() {
      public Boolean apply(final INode it) {
        EObject _grammarElement = it.getGrammarElement();
        TargetPlatformGrammarAccess.IUElements _iUAccess = TargetPlatformValidator.this.grammarAccess.getIUAccess();
        RuleCall _iDIDTerminalRuleCall_0_0 = _iUAccess.getIDIDTerminalRuleCall_0_0();
        return Boolean.valueOf(Objects.equal(_grammarElement, _iDIDTerminalRuleCall_0_0));
      }
    };
    final INode idRule = IterableExtensions.<INode>findFirst(_asTreeIterable, _function);
    String _xifexpression = null;
View Full Code Here


    boolean _equals = Objects.equal(string, null);
    if (_equals) {
      return null;
    }
    EObject _grammarElement = node.getGrammarElement();
    final RuleCall ge = ((RuleCall) _grammarElement);
    EObject _eContainer = ge.eContainer();
    final Assignment container = ((Assignment) _eContainer);
    int _length = string.length();
    int _minus = (_length - 1);
    String _substring = string.substring(1, _minus);
    final String value = Strings.convertFromJavaString(_substring, true);
View Full Code Here

    // }

    // No space between the two @@ in a virtual exported resource
    {
      Keyword at1 = ga.getVirtualNameOrReferenceAccess().getCommercialAtKeyword_0();
      RuleCall at2 = ga.getVirtualNameOrReferenceAccess().getExportedATBooleanParserRuleCall_1_0();
      RuleCall value = ga.getVirtualNameOrReferenceAccess().getValueUnionNameOrReferenceParserRuleCall_2_0();

      c.setNoSpace().between(at1, at2);
      c.setNoSpace().between(at1, value);
      c.setNoSpace().between(at2, value);
      // ga.getVirtualNameOrReferenceAccess().getCommercialAtKeyword_0(),
View Full Code Here

    delegate.leaveUnssignedParserRuleCall(rc);
    pop();
  }

  protected void pop() {
    RuleCall top = stack.remove(stack.size() - 1);

    // if the rule call on top defines hidden, it pushed on the hidden stack, and state needs to
    // be restored
    final AbstractRule r = top.getRule();
    if(r instanceof ParserRule && ((ParserRule) r).isDefinesHiddenTokens()) {
      currentHidden = hiddenStack.remove(hiddenStack.size() - 1);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.RuleCall

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.