コード例 #1
0
 public ExprEmptyRenderer(string name, ExprRenderType renderType, ExprType type, Parser.ExprMatchResult exprMatchResult, ExprMatchTree exprMatchTree)
     : base(exprMatchResult, exprMatchTree)
 {
     _name = name;
     _renderType = renderType;
     _type = type;
 }
コード例 #2
0
 public static void RegisterEmptyRendere(ExprType type, ExprRenderType renderType, string exprRegex, string name)
 {
     string finalRegex = BuildRegex(type, exprRegex);
     if (finalRegex != null)
         _emptyExprRenderers[new Regex(finalRegex, RegexOptions.Compiled | RegexOptions.ExplicitCapture)] = new object[] { name, renderType, type };
 }