Here are the examples of the java api class taken from open source projects.

1. VariableLiveness#processFunctionConstructor()

Project: caja
Source File:
View license
   * @return the live-set at the end of the function body.  Unlike other
   *     process methods, this does not return the live-set as a result of
   *     processing the declaration.
private static LiveSet processFunctionConstructor(FunctionConstructor fc) {
    // Process the function body, but do not the result since liveness does
    // not extend across function boundaries.
    LiveSet fnBodyDefs = new LiveSet(fc);
    for (FormalParam formal : fc.getParams()) {
        fnBodyDefs = fnBodyDefs.with(formal);
    return liveness(fc.getBody(), fnBodyDefs).vars;