class LegacyRuleCtx extends v0.RuleCtx with LegacyPatchOps
- Alphabetic
- By Inheritance
- LegacyRuleCtx
- LegacyPatchOps
- RuleCtx
- PatchOps
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
-  new LegacyRuleCtx(doc: SyntacticDocument)
Value Members
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-    def +(other: String): String- Implicit
- This member is added by an implicit conversion from LegacyRuleCtx toany2stringadd[LegacyRuleCtx] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
 
-    def ->[B](y: B): (LegacyRuleCtx, B)- Implicit
- This member is added by an implicit conversion from LegacyRuleCtx toArrowAssoc[LegacyRuleCtx] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
 
-    def comments: AssociatedCommentsFind comments/docstrings associated with tree nodes. Find comments/docstrings associated with tree nodes. * - Definition Classes
- LegacyRuleCtx → RuleCtx
 
-    def debugIndex()(implicit index: util.SemanticdbIndex, fileLine: FileLine): UnitPrint out the contents of SemanticdbIndex for this input only. Print out the contents of SemanticdbIndex for this input only. * - Definition Classes
- LegacyRuleCtx → RuleCtx
 
-    def ensuring(cond: (LegacyRuleCtx) => Boolean, msg: => Any): LegacyRuleCtx- Implicit
- This member is added by an implicit conversion from LegacyRuleCtx toEnsuring[LegacyRuleCtx] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
-    def ensuring(cond: (LegacyRuleCtx) => Boolean): LegacyRuleCtx- Implicit
- This member is added by an implicit conversion from LegacyRuleCtx toEnsuring[LegacyRuleCtx] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
-    def ensuring(cond: Boolean, msg: => Any): LegacyRuleCtx- Implicit
- This member is added by an implicit conversion from LegacyRuleCtx toEnsuring[LegacyRuleCtx] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
-    def ensuring(cond: Boolean): LegacyRuleCtx- Implicit
- This member is added by an implicit conversion from LegacyRuleCtx toEnsuring[LegacyRuleCtx] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def index(implicit index: util.SemanticdbIndex): util.SemanticdbIndexGet SemanticdbIndex for this single tree alone. Get SemanticdbIndex for this single tree alone. - Definition Classes
- LegacyRuleCtx → RuleCtx
 
-    def input: scala.meta.InputThe input where the tree was parsed from. The input where the tree was parsed from. This is typically either Input.VirtualFile for semantic rules and Input.File for syntactic rules. For Input.VirtualFile, it is possible to trace back to the original file path via SemanticdbIndex.sourcepath. - Definition Classes
- LegacyRuleCtx → RuleCtx
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-    def matchingParens: MatchingParensFind matching open/close pairs of parens/braces/brackets. Find matching open/close pairs of parens/braces/brackets. * - Definition Classes
- LegacyRuleCtx → RuleCtx
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-    def tokenList: TokenListTraverse tokens as a doubly linked list. Traverse tokens as a doubly linked list. * - Definition Classes
- LegacyRuleCtx → RuleCtx
 
-    def tokens: TokensThe tokenized tokens of this this tree. The tokenized tokens of this this tree. * - Definition Classes
- LegacyRuleCtx → RuleCtx
 
-    def tree: TreeThe parsed syntax tree that should be fixed. The parsed syntax tree that should be fixed. The scalafix API does not support fixing un-parseable code at this point. - Definition Classes
- LegacyRuleCtx → RuleCtx
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
Deprecated Value Members
-   final  def addGlobalImport(symbol: Symbol)(implicit index: v0.SemanticdbIndex): v0.PatchAdd an import on symbol among the global imports. Add an import on symbol among the global imports. This patch is not reference, unlike removeImportee(Importee). It is only necessary to use this patch once per tree, duplicate symbols are ignored. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def addGlobalImport(importer: Importer): v0.PatchAdd this importer to the global imports at the top of this file. Add this importer to the global imports at the top of this file. It is OK to pass in a quasiquote here. The importer has no attached semantic information, so it's not possible to deduplicate Importers. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def addLeft(tree: Tree, toAdd: String): v0.PatchAdd the string toAdd to the first token of tree. Add the string toAdd to the first token of tree. Does not remove tokens. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def addLeft(tok: scala.meta.Token, toAdd: String): v0.PatchAdd the string toAdd to the left side of token, while keeping token. Add the string toAdd to the left side of token, while keeping token. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def addRight(tree: Tree, toAdd: String): v0.PatchAdd the string toAdd to the last token of tree. Add the string toAdd to the last token of tree. Does not remove tokens. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def addRight(tok: scala.meta.Token, toAdd: String): v0.PatchAdd the string toAdd to the right side of token, while keeping token. Add the string toAdd to the right side of token, while keeping token. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-    def formatted(fmtstr: String): String- Implicit
- This member is added by an implicit conversion from LegacyRuleCtx toStringFormat[LegacyRuleCtx] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
- (Since version 2.12.16) Use - formatString.format(value)instead of- value.formatted(formatString), or use the- f""string interpolator. In Java 15 and later,- formattedresolves to the new method in String which has reversed parameters.
 
-   final  def lint(msg: v0.Diagnostic): v0.PatchReport a linter message. Report a linter message. To construct a LintMessage, start by creating a lint category. Example: class MyLinter extends Rule { val divisionByZero = scalafix.LintCategory.error("Division by zero!") val divisionTree: scala.meta.Tree = ??? PatchOps.lint(divisionByZero.at(divisionTree.pos)) } Each LintCategory is assigned a unique identifier, which is formatted as "RuleName.categoryID". The divisionByZero example would have the id "MyLinter.divisionByZero". A LintCategory has a default severity level (warning, error) that the user can override in .scalafix.conf. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def removeGlobalImport(symbol: Symbol)(implicit index: v0.SemanticdbIndex): v0.PatchRemove importees that resolve to symbol. Remove importees that resolve to symbol. Note, this patch is not reference, unlike removeImportee(Importee). It is only necessary to use this patch once per tree, duplicate symbols are ignored. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def removeImportee(importee: Importee): v0.PatchRemove this particular instance of Importee. Remove this particular instance of Importee. Handles tricky cases like trailing commas or curly braces. Example, removeImportee(b) in import a.{b, c}producesimport a.c.Note, importeeinstance is by reference, so removing quasiquotes (example,removeImportee(importee"b")) does nothing.- Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def removeToken(token: scala.meta.Token): v0.PatchReplace single token with empty string. Replace single token with empty string. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def removeTokens(tokens: Iterable[scala.meta.Token]): v0.Patch- Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def removeTokens(tokens: Tokens): v0.PatchReplace all tokens with empty string. Replace all tokens with empty string. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def renameSymbol(fromSymbol: Global, toName: String)(implicit index: v0.SemanticdbIndex): v0.PatchReplace appearances of names that reference fromSymbol with toName. Replace appearances of names that reference fromSymbol with toName. toName should be a legal identifier, it cannot be a tree such as foo(). Use this patch for example to rename a methods on a class.- Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def replaceSymbol(fromSymbol: Global, toSymbol: Global)(implicit index: v0.SemanticdbIndex): v0.PatchReplace references/call-sites to fromSymbol with references to toSymbol. Replace references/call-sites to fromSymbol with references to toSymbol. toSymbol must be a static method or a globally accessible object. toSymbol should not be path dependent. To rename a class method, use renameSymbol. Experimental. May produce broken code in some cases. This is the same patch as replace:com.foo/com.barfrom sbt-scalafix.- Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def replaceSymbols(toReplace: Seq[(String, String)])(implicit noop: DummyImplicit, index: v0.SemanticdbIndex): v0.PatchHelper for calling replaceSymbols without needing _* Helper for calling replaceSymbols without needing _* Defers work to replaceSymbols((String, String)*). Needs a dummy implicit to differentiate from replaceSymbols((String, String)*) after type erasure - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def replaceSymbols(toReplace: (String, String)*)(implicit index: v0.SemanticdbIndex): v0.PatchShorthand for calling replaceSymbol from strings. Shorthand for calling replaceSymbol from strings. String values are treated as Symbol.Global. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def replaceToken(token: scala.meta.Token, toReplace: String): v0.PatchReplace the entire contents of this Token with toReplace. Replace the entire contents of this Token with toReplace. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-   final  def replaceTree(from: Tree, to: String): v0.PatchReplace all tokens of tree contents with toReplace. Replace all tokens of tree contents with toReplace. - Definition Classes
- LegacyPatchOps → PatchOps
- Annotations
- @deprecated
- Deprecated
- (Since version 0.6.0) Use scalafix.Patch instead 
 
-    def →[B](y: B): (LegacyRuleCtx, B)- Implicit
- This member is added by an implicit conversion from LegacyRuleCtx toArrowAssoc[LegacyRuleCtx] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
- (Since version 2.13.0) Use - ->instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.