/** * Constructor with specified location and filename. * * @param loc * @param file */ public ASTNode(Location loc, Source source) { setLocation(loc); setSource(source); }
/** Marks 'node' with the location in 'loc'.Returns 'node' (which simplifies many uses of this function). */ private <T extends ASTNode> T markLocExplicit(Location loc, T node) { node.setSource(source); node.setLocation(loc); return node; }