Package st.gravel.support.compiler.ast

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


    return WriteHolderNode.factory.varName_value_(_anObject.varName(), ((Expression) this.visit_(_anObject.value())));
  }

  @Override
  public Node visit_(final Node _anObject) {
    final Node _newNode;
    if (_anObject == null) {
      return null;
    }
    _newNode = ((Node) _anObject.accept_(this));
    if (_newNode == null) {
      return null;
    }
    return _newNode.withSourcePosition_(_anObject.sourcePosition());
  }
View Full Code Here


      public Object value() {
        JVMMethodCompiler.this.pushInt_(_literalNode.elements().length);
        JVMMethodCompiler.this.emit_(NewArray.factory.elementType_(JVMDynamicObjectType.factory.basicNew()));
        for (int _temp1 = 0; _temp1 < _literalNode.elements().length; _temp1++) {
          final int _i = _temp1 + 1;
          final Node _elem = _literalNode.elements()[_temp1];
          JVMMethodCompiler.this.emit_(Dup.factory.basicNew());
          JVMMethodCompiler.this.pushInt_((_i - 1));
          JVMMethodCompiler.this.visit_(_elem);
          JVMMethodCompiler.this.ensureCast_(JVMDynamicObjectType.factory.basicNew());
          JVMMethodCompiler.this.emit_(ObjectArrayStore.factory.basicNew());
View Full Code Here

      }
    })));
  }

  public Node localLink_instVars_ownerReference_owner_(final Node _node, final BoundVariableDeclarationNode[] _instVars, final Reference _ownerReference, final Expression _owner) {
    final Node _intermediate;
    final Node _nonLocal;
    final Node _holderized;
    final Node _fieldAccessed;
    _intermediate = IntermediateNodeRewriter.factory.visit_(_node);
    _nonLocal = NonLocalReturnRewriter.factory.nlrMarker_(_compilerTools.nextNlrMarker()).visit_(_intermediate);
    _holderized = NonLocalTempWritesToHolderConverter.factory.visit_(_nonLocal);
    _fieldAccessed = VariableAccessToFieldAccessConverter.factory.instVars_owner_ownerReference_(_instVars, _owner, _ownerReference).visit_(_holderized);
    return _fieldAccessed;
View Full Code Here

    return factory;
  }

  @Override
  public Node visit_(final Node _anObject) {
    final Node _newNode;
    if (_anObject == null) {
      return null;
    }
    _newNode = ((Node) _anObject.accept_(this));
    if (_newNode == null) {
      return null;
    }
    return _newNode.withSourcePosition_(null);
  }
View Full Code Here

TOP

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

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.