Uses of Class
com.google.javascript.refactoring.SuggestedFix.Builder
Packages that use SuggestedFix.Builder
-
Uses of SuggestedFix.Builder in com.google.javascript.refactoring
Methods in com.google.javascript.refactoring that return SuggestedFix.BuilderModifier and TypeMethodDescriptionSuggestedFix.Builder.addAlternative
(SuggestedFix alternative) SuggestedFix.Builder.addCast
(Node n, AbstractCompiler compiler, String type) Adds a cast of the given type to the provided node.SuggestedFix.Builder.addChildToFront
(Node parentNode, String content) Inserts a new node as the first child of the provided node.SuggestedFix.Builder.addGoogRequire
(Match m, String namespace, ScriptMetadata scriptMetadata) SuggestedFix.Builder.addGoogRequireType
(Match m, String namespace, ScriptMetadata scriptMetadata) SuggestedFix.Builder.addImport
(Match m, String namespace, com.google.javascript.refactoring.SuggestedFix.ImportType importType, ScriptMetadata scriptMetadata) Adds a goog.require/requireType for the given namespace if it does not already exist.SuggestedFix.Builder.addOrReplaceJsDoc
(Node n, String newJsDoc) Adds or replaces the JS Doc for the given node.SuggestedFix.Builder.attachMatchedNodeInfo
(Node node, AbstractCompiler compiler) Sets the node on this SuggestedFix that caused this SuggestedFix to be built in the first place.SuggestedFix.Builder.changeJsDocType
(Node n, AbstractCompiler compiler, String type) Changes the JS Doc Type of the given node.Deletes a node and its contents from the source file.SuggestedFix.Builder.deleteArgument
(Node n, int position) Deletes an argument from an existing function call, including any JS doc that precedes it.SuggestedFix.Builder.deleteWithoutRemovingWhitespace
(Node n) Deletes a node without touching any surrounding whitespace.SuggestedFix.Builder.deleteWithoutRemovingWhitespaceBefore
(Node n) Deletes a node and its contents from the source file.SuggestedFix.Builder.insertAfter
(Node node, String text) Inserts the text after the given nodeSuggestedFix.Builder.insertArguments
(Node n, int position, String... args) Inserts arguments into an existing function call.SuggestedFix.Builder.insertBefore
(Node nodeToInsertBefore, Node n, AbstractCompiler compiler) Inserts a new node before the provided node.SuggestedFix.Builder.insertBefore
(Node nodeToInsertBefore, String content) Inserts a string before the provided node.SuggestedFix.Builder.removeCast
(Node n, AbstractCompiler compiler) Removes a cast from the given node.SuggestedFix.Builder.removeGoogRequire
(Match m, String namespace) Removes a goog.require for the given namespace to the file if it already exists.Renames a given node to the provided name.Renames a given node to the provided name.SuggestedFix.Builder.replace
(Node original, Node newNode, AbstractCompiler compiler) Replaces the provided node with new node in the source file.SuggestedFix.Builder.replaceRange
(Node first, Node last, String newContent) Replaces a range of nodes with the given content.SuggestedFix.Builder.setDescription
(String description)