public CodegenExpression Codegen( CodegenMethod method, CodegenClassScope classScope, CodegenExpression typeInitSvcRef) { // TBD: Shouldn't this be a static field reference? return(CodegenExpressionBuilder.EnumValue(typeof(NullEPType), "INSTANCE")); }
public CodegenExpression ToCodegenExpression( CodegenMethodScope parent, CodegenClassScope scope) { var typeExpr = CodegenExpressionBuilder.EnumValue(typeof(XPathResultType), Type.GetName()); return(new CodegenSetterBuilder(typeof(XPathPropertyDesc), typeof(XPathPropertyDesc), "desc", parent, scope) .Constant("Name", Name) .Expression("Type", typeExpr) .Constant("XPath", XPath) .Constant("OptionalEventTypeName", OptionalEventTypeName) .Constant("OptionalCastToType", OptionalCastToType) .Build()); }