private VisitorState createVisitorState() { return VisitorState.createConfiguredForCompilation( state.context, description -> ok[0] = false, ImmutableMap.of(), state.errorProneOptions()); } }.scan(state.getPath(), null);
/** Create a VisitorState object from a compilation unit. */ private VisitorState createVisitorState(Context context, DescriptionListener listener) { ErrorProneOptions options = requireNonNull(context.get(ErrorProneOptions.class)); return VisitorState.createConfiguredForCompilation( context, listener, scanner().severityMap(), options); } }