Class ParsingUtil


  • public final class ParsingUtil
    extends java.lang.Object
    Utility functions for parsing that don't depend on the compiler.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void getParamOrPatternNames​(Node n, java.util.function.Consumer<Node> cb)
      Calls cb with all NAMEs declared in a PARAM_LIST or destructuring pattern.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getParamOrPatternNames

        public static void getParamOrPatternNames​(Node n,
                                                  java.util.function.Consumer<Node> cb)
        Calls cb with all NAMEs declared in a PARAM_LIST or destructuring pattern.