Search in sources :

Example 11 with MessageNode

use of st.gravel.support.compiler.ast.MessageNode in project gravel by gravel-st.

the class MessageSendRewriter method visitUnaryMessageNode_.

@Override
public Statement visitUnaryMessageNode_(final UnaryMessageNode _anObject) {
    final st.gravel.core.Symbol _selector;
    final st.gravel.support.jvm.Block1<Statement, MessageNode> _res;
    _selector = st.gravel.core.Symbol.value(_anObject.selector());
    st.gravel.support.jvm.Block1<Statement, MessageNode> _temp1 = _specialSelectors.get(_selector);
    _res = ((st.gravel.support.jvm.Block1<Statement, MessageNode>) _temp1);
    if (_res != null) {
        final Statement _trans;
        _trans = _res.value_(_anObject);
        if (_trans != null) {
            return _trans;
        }
    }
    return super.visitUnaryMessageNode_(_anObject);
}
Also used : BinaryMessageNode(st.gravel.support.compiler.ast.BinaryMessageNode) MessageNode(st.gravel.support.compiler.ast.MessageNode) UnaryMessageNode(st.gravel.support.compiler.ast.UnaryMessageNode) KeywordMessageNode(st.gravel.support.compiler.ast.KeywordMessageNode) Statement(st.gravel.support.compiler.ast.Statement)

Aggregations

MessageNode (st.gravel.support.compiler.ast.MessageNode)11 BinaryMessageNode (st.gravel.support.compiler.ast.BinaryMessageNode)8 ArrayList (java.util.ArrayList)5 List (java.util.List)4 KeywordMessageNode (st.gravel.support.compiler.ast.KeywordMessageNode)4 ArrayAtNode (st.gravel.support.compiler.ast.ArrayAtNode)3 ArrayAtPutNode (st.gravel.support.compiler.ast.ArrayAtPutNode)3 ArrayLiteralNode (st.gravel.support.compiler.ast.ArrayLiteralNode)3 ArraySizeNode (st.gravel.support.compiler.ast.ArraySizeNode)3 BlockNode (st.gravel.support.compiler.ast.BlockNode)3 BooleanAndNode (st.gravel.support.compiler.ast.BooleanAndNode)3 BooleanLiteralNode (st.gravel.support.compiler.ast.BooleanLiteralNode)3 BooleanOrNode (st.gravel.support.compiler.ast.BooleanOrNode)3 ByteArrayLiteralNode (st.gravel.support.compiler.ast.ByteArrayLiteralNode)3 CascadeNode (st.gravel.support.compiler.ast.CascadeNode)3 CharacterLiteralNode (st.gravel.support.compiler.ast.CharacterLiteralNode)3 CreateHolderNode (st.gravel.support.compiler.ast.CreateHolderNode)3 DoubleLiteralNode (st.gravel.support.compiler.ast.DoubleLiteralNode)3 Expression (st.gravel.support.compiler.ast.Expression)3 FieldReadNode (st.gravel.support.compiler.ast.FieldReadNode)3