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);
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; }
public void UnusedParameter(Declr d) { w(d.Ident, "Unused parameter"); }