예제 #1
0
 public MethodDef(
     TypeRef type,
     FQName name,
     Lst <Arg> args,
     Vis vis,
     CsExpr source,
     Lst <AttributeDef> attributes,
     Option <Document> document,
     Lst <Constraint> constraints,
     bool isStatic,
     bool isAbstract,
     bool isVirtual,
     bool isOverride,
     bool isNew,
     bool isAsync
     )
 {
     Type        = type;
     Name        = name;
     Visibility  = vis;
     Source      = source;
     Args        = args;
     Attributes  = attributes;
     Document    = document;
     IsStatic    = isStatic;
     IsAbstract  = isAbstract;
     IsVirtual   = isVirtual;
     IsOverride  = isOverride;
     IsNew       = isNew;
     IsAsync     = isAsync;
     Constraints = constraints;
 }
예제 #2
0
 public PropDef(
     TypeRef type,
     FQName name,
     Vis vis,
     CsExpr getSource,
     CsExpr setSource,
     CsExpr assignSource,
     Lst <AttributeDef> attributes,
     Option <Document> document,
     bool isStatic,
     bool isAbstract,
     bool isVirtual,
     bool isOverride,
     bool isNew,
     Option <Arg> indexerArg
     )
 {
     Type         = type;
     Name         = name;
     Visibility   = vis;
     SetSource    = setSource;
     GetSource    = getSource;
     AssignSource = assignSource;
     Attributes   = attributes;
     Document     = document;
     IsStatic     = isStatic;
     IsAbstract   = isAbstract;
     IsVirtual    = isVirtual;
     IsOverride   = isOverride;
     IsNew        = isNew;
     IndexerArg   = indexerArg;
 }
예제 #3
0
 public ConstDef(TypeRef type, Identifier name, Vis vis, CsExpr source, Lst <AttributeDef> attributes, Option <Document> document)
 {
     Type       = type;
     Name       = name;
     Visibility = vis;
     Source     = source;
     Attributes = attributes;
     Document   = document;
 }
예제 #4
0
 public ConvOperatorDef(bool impl, TypeRef toType, Arg fromArg, Vis vis, CsExpr source, Lst <AttributeDef> attributes, Option <Document> document)
 {
     Implicit   = impl;
     ToType     = toType;
     FromArg    = fromArg;
     Visibility = vis;
     Source     = source;
     Attributes = attributes;
     Document   = document;
 }
예제 #5
0
 public UnaryOperatorDef(string op, TypeRef type, Arg arg, Vis vis, CsExpr source, Lst <AttributeDef> attributes, Option <Document> document)
 {
     Op         = op;
     Type       = type;
     Arg        = arg;
     Visibility = vis;
     Source     = source;
     Attributes = attributes;
     Document   = document;
 }
예제 #6
0
 public BinaryOperatorDef(string op, TypeRef type, Arg lhs, Arg rhs, Vis vis, CsExpr source, Lst <AttributeDef> attributes, Option <Document> document)
 {
     Op         = op;
     Type       = type;
     ArgLHS     = lhs;
     ArgRHS     = rhs;
     Visibility = vis;
     Source     = source;
     Attributes = attributes;
     Document   = document;
 }
예제 #7
0
 public FieldDef(TypeRef type, Identifier name, Vis vis, CsExpr source, Lst <AttributeDef> attributes, Option <Document> document, bool isReadOnly, bool isStatic, bool isEvent, bool isVolatile)
 {
     Type       = type;
     Name       = name;
     Visibility = vis;
     Source     = source;
     Attributes = attributes;
     Document   = document;
     IsReadOnly = isReadOnly;
     IsStatic   = isStatic;
     IsEvent    = isEvent;
     IsVolatile = isVolatile;
 }
예제 #8
0
 public TernaryExpr(CsExpr boolExpr, CsExpr thenExpr, CsExpr elseExpr)
 {
     BoolExpr = boolExpr;
     ThenExpr = thenExpr;
     ElseExpr = elseExpr;
 }
예제 #9
0
 public IfExpr(CsExpr boolExpr, Lst <CsExpr> thenExpr, Option <Lst <CsExpr> > elseExpr)
 {
     BoolExpr = boolExpr;
     ThenExpr = thenExpr;
     ElseExpr = elseExpr;
 }
예제 #10
0
 public VarAssign(FQName name, CsExpr rhs)
 {
     Name = name;
     RHS  = rhs;
 }
예제 #11
0
 public UnaryExpr(CsExpr expr, string op, bool prefix)
 {
     Expr   = expr;
     Op     = op;
     Prefix = prefix;
 }
예제 #12
0
 public BinaryExpr(CsExpr left, CsExpr right, string op)
 {
     Left  = left;
     Right = right;
     Op    = op;
 }