}
}
+ //
+ // This is used to prevent confusing Moma about methods not implemented.
+ //
+ Exception GetNotImplemented ()
+ {
+ return new NotImplementedException ();
+ }
+
//
// Methods
//
{
ICodeCompiler cc = CreateCompiler ();
if (cc == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
return cc.CompileAssemblyFromDomBatch (options, compilationUnits);
}
{
ICodeCompiler cc = CreateCompiler ();
if (cc == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
return cc.CompileAssemblyFromFileBatch (options, fileNames);
}
{
ICodeCompiler cc = CreateCompiler ();
if (cc == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
return cc.CompileAssemblyFromSourceBatch (options, fileNames);
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
return cg.CreateEscapedIdentifier (value);
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
return cg.CreateValidIdentifier (value);
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
cg.GenerateCodeFromCompileUnit (compileUnit, writer, options);
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
cg.GenerateCodeFromExpression (expression, writer, options);
}
public virtual void GenerateCodeFromMember (CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options)
{
// Documented to always throw an exception (if not overriden)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
// Note: the pattern is different from other GenerateCodeFrom* because
// ICodeGenerator doesn't have a GenerateCodeFromMember member
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
cg.GenerateCodeFromNamespace (codeNamespace, writer, options);
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
cg.GenerateCodeFromStatement (statement, writer, options);
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
cg.GenerateCodeFromType (codeType, writer, options);
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
return cg.GetTypeOutput (type);
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
return cg.IsValidIdentifier (value);
}
{
ICodeParser cp = CreateParser ();
if (cp == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
return cp.Parse (codeStream);
}
{
ICodeGenerator cg = CreateGenerator ();
if (cg == null)
- throw new NotImplementedException ();
+ throw GetNotImplemented ();
return cg.Supports (supports);
}