forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRazorCodeTransformerBase.cs
More file actions
28 lines (24 loc) · 890 Bytes
/
RazorCodeTransformerBase.cs
File metadata and controls
28 lines (24 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System.CodeDom;
using System.Collections.Generic;
namespace ServiceStack.Razor.Compilation.CodeTransformers
{
public class RazorCodeTransformerBase : IRazorCodeTransformer
{
void IRazorCodeTransformer.Initialize(IRazorHost razorHost, IDictionary<string, string> directives)
{
Initialize((RazorPageHost)razorHost, directives);
}
public virtual void Initialize(RazorPageHost razorHost, IDictionary<string, string> directives)
{
// do nothing
}
public virtual void ProcessGeneratedCode(CodeCompileUnit codeCompileUnit, CodeNamespace generatedNamespace, CodeTypeDeclaration generatedClass, CodeMemberMethod executeMethod)
{
// do nothing.
}
public virtual string ProcessOutput(string codeContent)
{
return codeContent;
}
}
}