예제 #1
0
 public Prog(Declr globalModule)
 {
     GlobalModule = globalModule;
 }
예제 #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);
예제 #3
0
 public void UnusedVariable(Declr d)
 {
     w(d.Ident, "Unused variable");
 }
예제 #4
0
 public FuncDef(DeclnSpecs specs, Declr declr, CompoundStmt stmt) {
     this.Specs = specs;
     this.Declr = declr;
     this.Stmt = stmt;
 }
예제 #5
0
 public void UnusedParameter(Declr d)
 {
     w(d.Ident, "Unused parameter");
 }