public override void ExtendDeclaration(IDeclarationModel declaration, CompilationModel model)
{
var classDecl = declaration as ClassDeclaration;
if (classDecl.Definition == null)
throw new CompilationException("A script object literal attribute may only be applied to a class.", declaration);
ValidateClass(classDecl);
// remove from the model, this produces no declaration
model.RemoveType(classDecl);
}