Package st.gravel.support.compiler.ast

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


            if (!_canUnderstand) {
              return _requirements[0].add(_method.ofTrait_(_component.reference()));
            }
          } else {
            if (!_aClassDescriptionNode.includesSelector_(_selector)) {
              final MethodNode _other;
              MethodNode _temp1 = _definitionInOtherTraits[0].get(_selector);
              _other = ((MethodNode) _temp1);
              if (_other != null) {
                if (CompositeTraitUsageNode.this.conflicts_with_(_other, _method)) {
                  _n[0] = _n[0].copyReplaceMethodNode_(_method.withBody_(SequenceNode.factory.statement_(GlobalReadNode.factory.namespace_name_(AbsoluteReference.factory.object(), "TraitConflict").send_with_("raiseSignal:", StringLiteralNode.factory.value_(CompositeTraitUsageNode.this.traitConflictStringFor_in_(_selector, _aSystemNode))))));
                }
View Full Code Here


    return this.copy().pvtSetInstVars_(st.gravel.support.jvm.ArrayExtensions.copyWith_(_instVars, _aVariableDeclarationNode));
  }

  @Override
  public ClassNode withMethodNode_(final MethodNode _aMethodNode) {
    final MethodNode _current;
    _current = this.methodOrNilAt_(_aMethodNode.selector());
    if (_current != null) {
      throw new RuntimeException("Duplicate selector: " + _aMethodNode.selector());
    }
    return this.copy().pvtSetMethods_(st.gravel.support.jvm.ArrayExtensions.copyWith_(_methods, _aMethodNode));
View Full Code Here

    return this.copy().pvtSetInstVars_(st.gravel.support.jvm.ArrayExtensions.copyWith_(_instVars, _aVariableDeclarationNode));
  }

  @Override
  public MetaclassNode withMethodNode_(final MethodNode _aMethodNode) {
    final MethodNode _current;
    _current = this.methodOrNilAt_(_aMethodNode.selector());
    if (_current != null) {
      throw new RuntimeException("Duplicate selector: " + _aMethodNode.selector());
    }
    return this.copy().pvtSetMethods_(st.gravel.support.jvm.ArrayExtensions.copyWith_(_methods, _aMethodNode));
View Full Code Here

  public ClassDescriptionNode withInstVar_(final VariableDeclarationNode _aVariableDeclarationNode) {
    return this.copy().pvtSetInstVars_(st.gravel.support.jvm.ArrayExtensions.copyWith_(_instVars, _aVariableDeclarationNode));
  }

  public ClassDescriptionNode withMethodNode_(final MethodNode _aMethodNode) {
    final MethodNode _current;
    _current = this.methodOrNilAt_(_aMethodNode.selector());
    if (_current != null) {
      throw new RuntimeException("Duplicate selector: " + _aMethodNode.selector());
    }
    return this.copy().pvtSetMethods_(st.gravel.support.jvm.ArrayExtensions.copyWith_(_methods, _aMethodNode));
View Full Code Here

TOP

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

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.