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; }
private void visitChild(IJstNode child) { child.accept(this); }
private void visitChildren(IJstNode jstNode) { for (IJstNode child : jstNode.getChildren()) { visitChild(child); } }