private void EnsureContextInitialized()
 {
     if (_context == null)
     {
         _context = CodeGeneratorContext.Create(Host, ClassName, RootNamespaceName, SourceFileName, GenerateLinePragmas);
         Initialize(_context);
     }
 }