ABB.Swum.CheckerRule.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)
            {
                var mdn = (MethodDeclarationNode)node;

                //fill in SWUM
                mdn.AssignStructuralInformation(this.Splitter, this.PosTagger);
                mdn.Role = MethodRole.Checker;
                ParseBaseVerbName(mdn);
                SetDefaultActionAndTheme(mdn);
                mdn.SwumRuleUsed = this;
            }
        }
    }