Class GoogBindToArrow

  • All Implemented Interfaces:
    java.io.Serializable

    public final class GoogBindToArrow
    extends Scanner
    Replaces goog.bind(..., this) with arrow functions. The pretty-printer does not do well with arrow functions, so it is recommended that you run 'g4 fix' to invoke clang-format on the CLs created by this refactoring. TODO(tbreisacher): Handle (function(){}).bind(this); as well.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GoogBindToArrow()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(Node node, NodeMetadata metadata)
      Returns true if the given node and node traversal should match for this particular scanner.
      com.google.common.collect.ImmutableList<SuggestedFix> processMatch​(Match match)
      Processes one Match at a time.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait