scala.meta.contrib

Members list

Type members

Classlikes

sealed abstract class AssociatedComments(leadingMap: Map[Token, List[Comment]], trailingMap: Map[Token, List[Comment]])

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
trait Delim

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Delim

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Delim.type
trait Extract[A, B]

The motivation for this typeclass is to extract values out of trees that could have been fields on the classes. However, these values are not included as fields on the tree nodes because of various reasons.

The motivation for this typeclass is to extract values out of trees that could have been fields on the classes. However, these values are not included as fields on the tree nodes because of various reasons.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Extract

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Extract.type
trait Keyword

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Keyword

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Keyword.type
trait Literal

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Literal

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Literal.type
trait Modifier

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Modifier

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Modifier.type
trait Replace[A, B]

The purpose of this typeclass is to replace one list of things with another of that type.

The purpose of this typeclass is to replace one list of things with another of that type.

eg. replacing the statements of a Defn.Class with a new set of statements

Type parameters

A

the object you are replacing the items in

B

the type of items you are replacing

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Replace

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Replace.type

Attributes

Supertypes
class Object
trait Matchable
class Any
object TreeOps

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
TreeOps.type
trait Trivia

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Trivia

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Trivia.type
trait Whitespace

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Whitespace

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Whitespace.type

Inherited classlikes

implicit class ExtensionReplacers[A](a: A)

Attributes

Inherited from:
ReplaceExtensions
Supertypes
class Object
trait Matchable
class Any
object Select

Attributes

Inherited from:
TreeExtractors
Supertypes
class Object
trait Matchable
class Any
implicit class SetEnrichments[A <: Tree](set: Set[A])

Attributes

Inherited from:
SetExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionCommentOps(c: Comment)

Attributes

Inherited from:
CommentExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionExtractors[A](a: A)

Attributes

Inherited from:
ExtractExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionTreeEquality[A <: Tree](a: A)

Attributes

Inherited from:
Equality
Supertypes
class Object
trait Matchable
class Any
implicit class XtensionTreeOps[A <: Tree](a: A)

Attributes

Inherited from:
TreeExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class convertName(n: Name)

Attributes

Inherited from:
Converters
Supertypes
class Object
trait Matchable
class Any

Inherited types

type ModExtractor[A] = Extract[A, Mod]

Attributes

Inherited from:
ExtractExtensions
type ModReplacer[A] = Replace[A, Mod]

Attributes

Inherited from:
ReplaceExtensions
type StatExtractor[A] = Extract[A, Stat]

Attributes

Inherited from:
ExtractExtensions
type StatReplacer[A] = Replace[A, Stat]

Attributes

Inherited from:
ReplaceExtensions
type Structurally[A <: Tree] = Structurally[A]

Attributes

Inherited from:
Equality
type Syntactically[A <: Tree] = Syntactically[A]

Attributes

Inherited from:
Equality

Implicits

Inherited implicits

final implicit def ExtensionReplacers[A](a: A): ExtensionReplacers[A]

Attributes

Inherited from:
ReplaceExtensions
final implicit def SetEnrichments[A <: Tree](set: Set[A]): SetEnrichments[A]

Attributes

Inherited from:
SetExtensions
final implicit def XtensionCommentOps(c: Comment): XtensionCommentOps

Attributes

Inherited from:
CommentExtensions
final implicit def XtensionExtractors[A](a: A): XtensionExtractors[A]

Attributes

Inherited from:
ExtractExtensions
final implicit def XtensionTreeEquality[A <: Tree](a: A): XtensionTreeEquality[A]

Attributes

Inherited from:
Equality
final implicit def XtensionTreeOps[A <: Tree](a: A): XtensionTreeOps[A]

Attributes

Inherited from:
TreeExtensions
final implicit def convertName(n: Name): convertName

Attributes

Inherited from:
Converters
implicit def extractAnnotationsFromMods[A](implicit ev: Extract[A, Mod]): Extract[A, Annot]

Attributes

Inherited from:
ExtractAnnotationInstances
implicit val extractClassMods: Extract[Class, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit val extractClassStats: Extract[Class, Stat]

Attributes

Inherited from:
ExtractStatInstances
implicit def extractClassesFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Class]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractDeclDefMod: Extract[Def, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit def extractDeclDefsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Def]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractDeclTypeMod: Extract[Type, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit def extractDeclTypesFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Type]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractDeclValMod: Extract[Val, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit def extractDeclValsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Val]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractDeclVarMod: Extract[Var, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit def extractDeclVarsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Var]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit def extractDeclsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Decl]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractDefMods: Extract[Def, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit val extractDefStats: Extract[Def, Stat]

Attributes

Inherited from:
ExtractStatInstances
implicit def extractDefnsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Defn]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit def extractDefsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Def]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit def extractMembersFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Member]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractObjectMods: Extract[Object, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit val extractObjectStats: Extract[Object, Stat]

Attributes

Inherited from:
ExtractStatInstances
implicit def extractObjectsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Object]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractPkgStats: Extract[Pkg, Stat]

Attributes

Inherited from:
ExtractStatInstances
implicit val extractSourceStats: Extract[Source, Stat]

Attributes

Inherited from:
ExtractStatInstances
implicit val extractTemplateStats: Extract[Template, Stat]

Attributes

Inherited from:
ExtractStatInstances
implicit val extractTermParamMod: Extract[Param, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit def extractTermsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Term]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractTraitMods: Extract[Trait, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit val extractTraitStats: Extract[Trait, Stat]

Attributes

Inherited from:
ExtractStatInstances
implicit def extractTraitsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Trait]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractTypeMod: Extract[Type, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit val extractTypeParamMod: Extract[Param, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit def extractTypesFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Type]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractValMods: Extract[Val, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit val extractValStats: Extract[Val, Stat]

Attributes

Inherited from:
ExtractStatInstances
implicit def extractValsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Val]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val extractVarMods: Extract[Var, Mod]

Attributes

Inherited from:
ExtractModsInstances
implicit val extractVarStats: Extract[Var, Stat]

Attributes

Inherited from:
ExtractStatInstances
implicit def extractVarsFromStats[A](implicit ev: Extract[A, Stat]): Extract[A, Var]

Attributes

Inherited from:
ExtractStatSubtypeInstances
implicit val replaceClassMods: Replace[Class, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceClassStats: Replace[Class, Stat]

Attributes

Inherited from:
ReplaceStatInstances
implicit val replaceDeclDefMod: Replace[Def, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceDeclTypeMod: Replace[Type, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceDeclValMod: Replace[Val, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceDeclVarMod: Replace[Var, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceDefMods: Replace[Def, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceDefStats: Replace[Def, Stat]

Attributes

Inherited from:
ReplaceStatInstances
implicit val replaceObjectMods: Replace[Object, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceObjectStats: Replace[Object, Stat]

Attributes

Inherited from:
ReplaceStatInstances
implicit val replaceTemplateStats: Replace[Template, Stat]

Attributes

Inherited from:
ReplaceStatInstances
implicit val replaceTermParamMod: Replace[Param, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceTraitMods: Replace[Trait, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceTraitStats: Replace[Trait, Stat]

Attributes

Inherited from:
ReplaceStatInstances
implicit val replaceTypeMod: Replace[Type, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceTypeParamMod: Replace[Param, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceValMods: Replace[Val, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceValStats: Replace[Val, Stat]

Attributes

Inherited from:
ReplaceStatInstances
implicit val replaceVarMods: Replace[Var, Mod]

Attributes

Inherited from:
ReplaceModsInstances
implicit val replaceVarStats: Replace[Var, Stat]

Attributes

Inherited from:
ReplaceStatInstances
implicit def treeToContainer(tree: Tree): Structurally[Tree]

Helper to default tree equality to use structural equality.

Helper to default tree equality to use structural equality.

Attributes

Inherited from:
Equality