Esempio n. 1
0
 public FuncDef(DeclnSpecs specs, Declr declr, CompoundStmt stmt)
 {
     this.Specs = specs;
     this.Declr = declr;
     this.Stmt  = stmt;
 }
Esempio n. 2
0
 public static FuncDef Create(Option <DeclnSpecs> declnSpecs, Declr declr, Stmt body) =>
 new FuncDef(declnSpecs.IsSome ? declnSpecs.Value : DeclnSpecs.Empty, declr, body as CompoundStmt);
Esempio n. 3
0
 private InitDeclr(Declr declr, Option <Initr> initr)
 {
     this.Declr = declr;
     this.Initr = initr;
 }
Esempio n. 4
0
 public static InitDeclr Create(Declr declr, Option <Initr> initr)
 => new InitDeclr(declr, initr);
Esempio n. 5
0
 public static Declr Add(ImmutableList <PointerModifier> pointerModifiers, Declr declr) =>
 Create(declr.Name, declr.TypeModifiers.AddRange(pointerModifiers));
Esempio n. 6
0
 public static Declr Add(Declr declr, TypeModifier typeModifier) =>
 Create(declr.Name, declr.TypeModifiers.Add(typeModifier));
Esempio n. 7
0
 public static Declr Create(Option <ImmutableList <PointerModifier> > pointerModifiers, Declr declr) =>
 Add(pointerModifiers.IsSome ? pointerModifiers.Value : ImmutableList <PointerModifier> .Empty, declr);
Esempio n. 8
0
 public new static StructDeclr Create(Declr declr) =>
 new StructDeclr(Option.Some(declr.Name), declr.TypeModifiers, Option <Expr> .None);
Esempio n. 9
0
 public static ParamDeclr Create(Declr declr) =>
 new ParamDeclr(Option.Some(declr.Name), declr.TypeModifiers);