Package org.eclipse.xtext

Examples of org.eclipse.xtext.TerminalRule


    FormattingConfig.NoSpaceLocator _setNoSpace_5 = c.setNoSpace();
    TargetPlatformGrammarAccess.VersionRangeElements _versionRangeAccess_3 = this._targetPlatformGrammarAccess.getVersionRangeAccess();
    Keyword _rightSquareBracketKeyword_0_4_1 = _versionRangeAccess_3.getRightSquareBracketKeyword_0_4_1();
    _setNoSpace_5.around(_rightSquareBracketKeyword_0_4_1);
    FormattingConfig.LinewrapLocator _setLinewrap_5 = c.setLinewrap(0, 1, 2);
    TerminalRule _sL_COMMENTRule = this._targetPlatformGrammarAccess.getSL_COMMENTRule();
    _setLinewrap_5.before(_sL_COMMENTRule);
    FormattingConfig.LinewrapLocator _setLinewrap_6 = c.setLinewrap(0, 1, 2);
    TerminalRule _mL_COMMENTRule = this._targetPlatformGrammarAccess.getML_COMMENTRule();
    _setLinewrap_6.before(_mL_COMMENTRule);
    FormattingConfig.LinewrapLocator _setLinewrap_7 = c.setLinewrap(0, 1, 1);
    TerminalRule _mL_COMMENTRule_1 = this._targetPlatformGrammarAccess.getML_COMMENTRule();
    _setLinewrap_7.after(_mL_COMMENTRule_1);
  }
View Full Code Here


    }
    EObject o = node.getGrammarElement();
    if (!(o instanceof TerminalRule)) {
      return false;
    }
    TerminalRule rule = (TerminalRule) o;
    return commentRuleName.equals(rule.getName());
  }
View Full Code Here

    }
    AbstractRule rule = ((RuleCall) grammarElement).getRule();
    if (!(rule instanceof TerminalRule)) {
      return false;
    }
    TerminalRule terminalRule = (TerminalRule) rule;
    return "STRING".equals(terminalRule.getName());
  }
View Full Code Here

    boolean _matched = false;
    if (!_matched) {
      if (grammarElement instanceof RuleCall) {
        _matched=true;
        AbstractRule _rule = ((RuleCall)grammarElement).getRule();
        TerminalRule _tEXTRule = this.grammarAccess.getTEXTRule();
        _switchResult = Objects.equal(_rule, _tEXTRule);
      }
    }
    if (!_matched) {
      _switchResult = false;
View Full Code Here

    // clear stored tasks
    associateTasks(model, null);
    clearDocumentation(model);
    List<PPTask> tasks = Lists.newArrayList();

    final TerminalRule mlRule = ga.getML_COMMENTRule();
    final TerminalRule slRule = ga.getSL_COMMENTRule();
    final TerminalRule wsRule = ga.getWSRule();

    // a sequence of SL comment or a single ML comment that is immediately (no NL) before
    // a definition, class, or node is taken to be a documentation comment, as is associated with
    // the following semantic object using an adapter.
    //
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.TerminalRule

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.