Changeset 4108


Ignore:
Timestamp:
Aug 30, 2014, 10:47:37 PM (4 years ago)
Author:
ksherdy
Message:

Added accessor for IDISA calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/s2k/trunk/framework/src/toolchain/s2k/ast/Accessors.java

    r3829 r4108  
    458458        // 2^k stream type
    459459        ////////////////////////////////////////////////////////////////////////////
    460 
     460    public static ASTNode nameNode(IdisaFuncCallNode node) {
     461        return node.child(0);
     462    }
    461463        ////////////////////////////////////////////////////////////////////////////
    462464        // CompoundIdentifierNode
     
    540542            } else if(node instanceof StreamDeclNode) {
    541543                return name(nameNode((StreamDeclNode)node));
    542             }
     544            }  else if(node instanceof IdisaFuncCallNode) {
     545            return funcCallName(nameNode((IdisaFuncCallNode)node));
     546        }
    543547            assert false : "Accessors.name(ASTNode node) method not implemented on node class : " + node.getClass();
    544548            return null;
Note: See TracChangeset for help on using the changeset viewer.