Exemplo n.º 1
0
        public static void WalkInterface(EnvDTE.CodeInterface ifac, string indent)
        {
            doInterface(ifac, indent);
            foreach (EnvDTE.CodeElement codeElem in ifac.Bases)
            {
                doInheritsFrom(codeElem, indent);
            }
            foreach (EnvDTE.CodeElement codeElem in ifac.Members)
            {
                switch (codeElem.Kind)
                {
                // no EnvDTE.vsCMElement.vsCMElementVariable case for interface
                case EnvDTE.vsCMElement.vsCMElementProperty:
                    doCodeProperty((CodeProperty)codeElem, indent);
                    break;

                case EnvDTE.vsCMElement.vsCMElementFunction:
                    WalkFunction((CodeFunction)codeElem, indent + "...");
                    break;

                default:
                    doCodeElement(codeElem, indent);
                    break;
                }
            }
        }
Exemplo n.º 2
0
 public static void doInterface(EnvDTE.CodeInterface ifac, string indent)
 {
     Debug.WriteLine(indent + "interface:" + ifac.Name);
 }