public override object VisitClassDeclarationStatements_Ex([NotNull] ClepsParser.ClassDeclarationStatementsContext context) { //if this qualified name already exists, there is an error if (ClassManager.IsClassBuilderAvailable(FullyQualifiedClassName)) { string errorMessage = String.Format("Class {0} has multiple definitions", FullyQualifiedClassName); Status.AddError(new CompilerError(FileName, context.Start.Line, context.Start.Column, errorMessage)); //Don't process this class return(false); } ClassManager.AddNewClassDeclaration(FullyQualifiedClassName); CodeGenerator.CreateClass(FullyQualifiedClassName); return(true); }