示例#1
0
 private void validateJstSource(IJstNode node, String message) {
   if (node instanceof ISynthesized) {
     return;
   }
   if (node.getSource() == null) {
     m_failures.add(node.getClass().getName() + "\t" + message);
   }
   visitChildren(node);
 }
  private CustomType getCustomType(IJstNode jstNode) {
    if (jstNode == null) {
      return null;
    }
    MetaProvider metaProvider = (MetaProvider) getMetaProvider();
    IJstType ownerType = jstNode.getOwnerType();
    CustomType cType = metaProvider.getCustomType(ownerType.getName());

    if (cType == null) {
      cType = new CustomType(ownerType.getName());
      metaProvider.addCustomType(ownerType.getName(), cType);
    }

    return cType;
  }
示例#3
0
 private void visitChild(IJstNode child) {
   child.accept(this);
 }
示例#4
0
 private void visitChildren(IJstNode jstNode) {
   for (IJstNode child : jstNode.getChildren()) {
     visitChild(child);
   }
 }