// TODO ideally, we could just convert this in-place to a ClassNode for downstream processing
// Good example of why an explicit type descriptor enum is generally more useful than subclassing
node.setName(classQName);
// Create a new Source for the node.
VirtualFile virtualFile = new TextFile("", unit.getSource().getName() + "$" + className,
unit.getSource().getName(), unit.getSource().getParent(),
MimeMappings.MXML, unit.getSource().getLastModified());
Source source = new Source(virtualFile, unit.getSource(), className, false, false);
// Set the Source's syntax tree to the DocumentNode