Exemple #1
0
 public Prog(Declr globalModule)
 {
     GlobalModule = globalModule;
 }
 public static FuncDef Create(Option<DeclnSpecs> declnSpecs, Declr declr, Stmt body) =>
     new FuncDef(declnSpecs.IsSome ? declnSpecs.Value : DeclnSpecs.Empty, declr, body as CompoundStmt);
Exemple #3
0
 public void UnusedVariable(Declr d)
 {
     w(d.Ident, "Unused variable");
 }
 public FuncDef(DeclnSpecs specs, Declr declr, CompoundStmt stmt) {
     this.Specs = specs;
     this.Declr = declr;
     this.Stmt = stmt;
 }
Exemple #5
0
 public void UnusedParameter(Declr d)
 {
     w(d.Ident, "Unused parameter");
 }