示例#1
0
        public CodeClassWrapper(CodeClass2 cls, CodeClassWrapper parent = null)
        {
            _class  = cls;
            _parent = parent;
            if (_class.ProjectItem == null)
            {
                _code = new List <string>();
            }

            string fileName = _class.ProjectItem.get_FileNames(0);

            _code = File.ReadAllLines(fileName).ToList();

            _funcs   = _class.Members.OfType <CodeFunction2>().Select(x => new CodeFunctionWrapper(x, this)).ToList();
            _props   = _class.Members.OfType <CodeProperty2>().Select(x => new CodePropertyWrapper(x, this)).ToList();
            _classes = _class.Members.OfType <CodeClass2>().Select(x => new CodeClassWrapper(x, this)).ToList();
        }
示例#2
0
 public CodeFunctionWrapper(CodeFunction2 func, CodeClassWrapper parent)
 {
     _func   = func;
     _parent = parent;
 }
示例#3
0
 public CodePropertyWrapper(CodeProperty2 func, CodeClassWrapper parent)
 {
     _prop   = func;
     _parent = parent;
 }