ABB.Swum.EventHandlerRule.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;
                mdn.Action = mdn.ParsedName[0].GetNewWord("handle", PartOfSpeechTag.Verb);
                this.PosTagger.TagNounPhrase(mdn.ParsedName);
                mdn.CreateThemeFromPhrases(mdn.Preamble, mdn.ParsedName);

                SetDefaultUnknownArguments(mdn);
                mdn.IsReactive = true;

                mdn.SwumRuleUsed = this;
            }
        }
    }