ABB.Swum.EmptyNameRule.ConstructSwum C# (CSharp) Method

ConstructSwum() public method

Constructs the SWUM for the given node, using this rule.
public ConstructSwum ( ProgramElementNode node ) : void
node ABB.Swum.Nodes.ProgramElementNode The node to construct SWUM for.
return void
        public override void ConstructSwum(ProgramElementNode node)
        {
            if (node is MethodDeclarationNode)
            {
                MethodDeclarationNode mdn = (MethodDeclarationNode)node;
                //don't need to parse or tag, because there's no name
                //fill in SWUM
                mdn.AssignStructuralInformation(this.Splitter, this.PosTagger);
                mdn.Theme = mdn.Preamble;
                //TODO: from Emily, how to fill in Action?
                mdn.SwumRuleUsed = this;
            }
        }
    }