internal static string Print(EventDeclaration e)
        {
            var printer = new NodePrinter();

            printer._type = e.GetOwnerType();
            printer.PrintEvent(e);

            return(printer.ToString());
        }
Esempio n. 2
0
        public EventViewModel FindEvent(EventDeclaration eventDecl)
        {
            var type = eventDecl.GetOwnerType();

            var typeViewModel = FindType(type);

            if (typeViewModel == null)
            {
                return(null);
            }

            return(typeViewModel.FindEvent(eventDecl));
        }