コード例 #1
0
 /**
  * Adds a class to the definition
  *
  * @param doOn
  * @return
  */
 protected IInfo addClass(ClassDef def, String moduleDeclared, int doOn, String path) {
   ClassInfo info = ClassInfo.fromClassDef(def, moduleDeclared, path);
   add(info, doOn);
   return info;
 }
コード例 #2
0
 /**
  * Adds an attribute to the definition (this is either a global, a class attribute or an instance
  * (self) attribute
  *
  * @return
  */
 protected IInfo addAttribute(String def, String moduleDeclared, int doOn, String path) {
   AttrInfo info = AttrInfo.fromAssign(def, moduleDeclared, path);
   add(info, doOn);
   return info;
 }
コード例 #3
0
 /**
  * adds a method to the definition
  *
  * @param doOn
  * @return
  */
 protected IInfo addMethod(FunctionDef def, String moduleDeclared, int doOn, String path) {
   FuncInfo info2 = FuncInfo.fromFunctionDef(def, moduleDeclared, path);
   add(info2, doOn);
   return info2;
 }