261262263264265266267268269
private static ParseNode augmentWithMemPtg(ParseNode root) { Ptg memPtg; if (needsMemFunc(root)) { memPtg = new MemFuncPtg(root.getEncodedSize()); } else { memPtg = new MemAreaPtg(root.getEncodedSize()); } return new ParseNode(memPtg, root); }
12391240124112421243124412451246
AreaPtg.class, // [A1:B2] AreaPtg.class, // [C3:D4] RangePtg.class, AttrPtg.class // [sum ] ); MemAreaPtg ma = (MemAreaPtg)ptgs[0]; assertEquals(19, ma.getLenRefSubexpression()); }
11921193119411951196119711981199