示例#1
0
 /// <summary>基元字面量</summary>
 public static Expr CreatePrimitiveLiteral(PrimitiveLiteralExpr Value)
 {
     return(new Expr {
         _Tag = ExprTag.PrimitiveLiteral, PrimitiveLiteral = Value
     });
 }
示例#2
0
 /// <summary>基元字面量</summary>
 public static MatchPattern CreatePrimitiveLiteral(PrimitiveLiteralExpr Value)
 {
     return(new MatchPattern {
         _Tag = MatchPatternTag.PrimitiveLiteral, PrimitiveLiteral = Value
     });
 }