Example #1
0
 /*
  * (non-Javadoc)
  *
  * @see edu.pdx.svl.coDoc.cdt.core.dom.ast.IBinding#getScope()
  */
 public IScope getScope() {
   IASTDeclarator declarator = (IASTDeclarator) name.getParent();
   return CVisitor.getContainingScope(declarator.getParent());
 }
Example #2
0
 /*
  * (non-Javadoc)
  *
  * @see edu.pdx.svl.coDoc.cdt.core.dom.ast.ITypedef#getType()
  */
 public IType getType() {
   if (type == null && name.getParent() instanceof IASTDeclarator)
     type = CVisitor.createType((IASTDeclarator) name.getParent());
   return type;
 }