Search in sources :

Example 1 with MetaclassNode

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

the class ClassNode method flattenTraitsIn_.

@Override
public ClassNode flattenTraitsIn_(final SystemNode _aSystemNode) {
    final MetaclassNode _newMetaclassNode;
    final ClassNode _newClassNode;
    _newMetaclassNode = _metaclassNode.flattenTraitsIn_(_aSystemNode);
    _newClassNode = _traitUsage.flattenClassNode_in_(this, _aSystemNode);
    if ((_newClassNode == this) && (_newMetaclassNode == _metaclassNode)) {
        return ClassNode.this;
    }
    return _newClassNode.copy().pvtSetMetaclassNode_(_newMetaclassNode);
}
Also used : MetaclassNode(st.gravel.support.compiler.ast.MetaclassNode)

Aggregations

MetaclassNode (st.gravel.support.compiler.ast.MetaclassNode)1