Examples of PragmaNode


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

  }

  public Object pragmaPropertyAt_ifAbsent_(final st.gravel.core.Symbol _aKey, final st.gravel.support.jvm.Block0<Object> _aBlock) {
    final Object _temp1 = new Object();
    try {
      final PragmaNode _pr;
      _pr = ((PragmaNode) st.gravel.support.jvm.ArrayExtensions.detect_ifNone_(_pragmas, new st.gravel.support.jvm.Predicate1<PragmaNode>() {

        @Override
        public boolean value_(final PragmaNode _each) {
          return _each.isPropertyPragmaAt_(_aKey);
        }
      }, ((st.gravel.support.jvm.Block0<PragmaNode>) (new st.gravel.support.jvm.Block0<PragmaNode>() {

        @Override
        public PragmaNode value() {
          throw new NonLocalReturn(_aBlock.value(), _temp1);
        }
      }))));
      return ((LiteralNode) _pr.expression().arguments()[1]).value();
    } catch (NonLocalReturn nlr) {
      if (nlr.marker == _temp1) {
        return (Object) nlr.returnValue;
      } else {
        throw nlr;
View Full Code Here

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

    SourcePrinter.factory.on_(_aStream).visit_(this);
    return this;
  }

  public String[] primitiveIn_(final String _className) {
    final PragmaNode _pragma;
    final Expression _argument;
    final ArrayLiteralNode _arrayNode;
    _pragma = this.primitivePragma();
    if (_pragma == null) {
      return null;
    }
    _argument = _pragma.expression().argument();
    if (_argument.isStringLiteralNode()) {
      return MethodNode.this.localPrimitiveIn_nameNode_(_className, ((StringLiteralNode) _argument));
    }
    if (!_argument.isArrayLiteralNode()) {
      return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.