Package st.gravel.support.compiler.ast

Examples of st.gravel.support.compiler.ast.MessageNode


    return _pkg[0];
  }

  public ClassNode readClass_packageName_file_namespace_(final String _aName, final st.gravel.core.Symbol _packageName, final java.io.File _aFilename, final String[] _anArray) {
    final Parser _parser;
    MessageNode _expr;
    ClassNode _cn;
    st.gravel.support.jvm.Block3<ClassNode, ClassNode, MessageNode, Parser> _directive;
    final int _start;
    _cn = ClassNode.factory.name_namespacePath_(st.gravel.core.Symbol.value(_aName), st.gravel.support.jvm.ArrayExtensions.collect_(_anArray, ((st.gravel.support.jvm.Block1<st.gravel.core.Symbol, String>) (new st.gravel.support.jvm.Block1<st.gravel.core.Symbol, String>() {

      @Override
      public st.gravel.core.Symbol value_(final String _each) {
        return (st.gravel.core.Symbol) st.gravel.core.Symbol.value(_each);
      }
    }))));
    _parser = Parser.factory.source_sourceFile_(st.gravel.support.jvm.FilenameExtensions.contentsOfEntireFile(_aFilename), SourceFile.factory.directory_name_packageName_(_aFilename.getParent(), _aFilename.getName(), _packageName));
    _start = _parser.position();
    boolean _temp1 = false;
    while (!_temp1) {
      _temp1 = _parser.atEnd();
      if (!_temp1) {
        _expr = ((MessageNode) _parser.parseExpression());
        _directive = DiskClassReader.this.directiveAt_(_expr.selector());
        _cn = _directive.value_value_value_(_cn, _expr, _parser);
        if (!_parser.atEnd()) {
          _parser.parseBang();
        }
      }
View Full Code Here


    final Expression _exp;
    List<MessageNode> _messages;
    _exp = this.parseNoCascadeMessageChain_(_receiver);
    this.eatWhitespace();
    if (st.gravel.support.jvm.ReadStreamExtensions.peekFor_(_stream, ';')) {
      final MessageNode _baseMsg;
      _messages = new java.util.ArrayList();
      _baseMsg = ((MessageNode) _exp);
      _messages.add(_baseMsg);
      boolean _temp1 = true;
      while (_temp1) {
        final MessageNode _msg;
        _msg = ((MessageNode) Parser.this.parseNoCascadeMessageChain_(_baseMsg.receiver()));
        _messages.add(_msg);
        _temp1 = st.gravel.support.jvm.ReadStreamExtensions.peekFor_(_stream, ';');
      }
      return CascadeNode.factory.messages_(_messages.toArray(new MessageNode[_messages.size()]));
View Full Code Here

    return this;
  }

  @Override
  public SourcePrinter visitPragmaNode_(final PragmaNode _aPragmaNode) {
    final MessageNode _aNode;
    _stream.append('<');
    _aNode = _aPragmaNode.expression();
    if (st.gravel.support.jvm.IntegerExtensions.equals_(_aNode.arguments().length, 0)) {
      _stream.append(_aNode.selector());
    } else {
      st.gravel.support.jvm.ArrayExtensions.with_do_separatedBy_(_aNode.keywords(), _aNode.arguments(), new st.gravel.support.jvm.Block2<Object, String, Expression>() {

        @Override
        public Object value_value_(final String _key, final Expression _value) {
          _stream.append(_key);
          _stream.append(' ');
View Full Code Here

TOP

Related Classes of st.gravel.support.compiler.ast.MessageNode

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.