Package st.gravel.support.compiler.ast

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


  public MethodNode newMethodNode_arguments_body_(final String _selector, final VariableDeclarationNode[] _arguments, final SequenceNode _body) {
    return _arguments.length == 0 ? UnaryMethodNode.factory.selector_body_(_selector, _body) : KeywordMethodNode.factory.selector_arguments_body_(_selector, _arguments, _body);
  }

  public String newTempName_for_(final String _argName, final Node _node) {
    final LiteralSendInliner _lsi;
    _lsi = LiteralSendInliner.factory.basicNew();
    _lsi.initializeRoot_(_node);
    return _lsi.newTempName_(_argName);
  }
View Full Code Here


      newInstance.initialize();
      return newInstance;
    }

    public Expression for_renameAll_in_(final Node _aNode, final java.util.Set<String> _localNames, final Expression _replacementNode) {
      final LiteralSendInliner _lsi;
      Expression _res;
      _lsi = LiteralSendInliner.factory.basicNew();
      _lsi.initializeRoot_(_aNode);
      _lsi.addUsedNode_(_replacementNode);
      _res = _replacementNode;
      for (final String _oldName : _localNames) {
        final String _newName;
        _newName = _lsi.newTempName_(_oldName);
        _res = ((Expression) LocalDefinedVariableRenamer.factory.in_rename_to_(_res, _oldName, _newName));
      }
      return _res;
    }
View Full Code Here

TOP

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

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.