Skip to content

Remove @syntax markdown from Quotes #14759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions library/src/scala/quoted/Quotes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import scala.reflect.TypeTest
* ...
* }
* ```
* @syntax markdown
*/
transparent inline def quotes(using inline q: Quotes): q.type = q

Expand All @@ -36,7 +35,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* case '{...} => true // where the contents of the pattern are the contents of `that`
* case _ => false
* ```
* @syntax markdown
*/
def matches(that: Expr[Any]): Boolean

Expand Down Expand Up @@ -97,7 +95,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
*
* See `reflectModule` for full API.
*
* @syntax markdown
*/
val reflect: reflectModule

Expand Down Expand Up @@ -316,7 +313,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* package foo.bar
* // package stats
* ```
* @syntax markdown
*/
type PackageClause <: Tree

Expand Down Expand Up @@ -490,7 +486,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* ???
* }
* ```
* @syntax markdown
*/
def self: Option[ValDef]
/** Statements within the class
Expand All @@ -500,7 +495,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* ??? // statements
* }
* ```
* @syntax markdown
*/
def body: List[Statement]
end extension
Expand Down Expand Up @@ -553,7 +547,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* //}
* extension (a: A) def f[T]() = ???
* ```
* @syntax markdown
*/
def leadingTypeParams: List[TypeDef]

Expand All @@ -568,7 +561,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* //}
* extension (a: A) def f[T]() = ???
* ```
* @syntax markdown
*/
def trailingParamss: List[ParamClause]

Expand Down Expand Up @@ -622,7 +614,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* }
* }
* ```
* @syntax markdown
*/
def let(owner: Symbol, name: String, rhs: Term)(body: Ref => Term): Term

Expand All @@ -636,7 +627,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* }
* }
* ```
* @syntax markdown
*/
def let(owner: Symbol, rhs: Term)(body: Ref => Term): Term =
let(owner, "x", rhs)(body)
Expand All @@ -649,7 +639,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* ...
* }
* ```
* @syntax markdown
*/
def let(owner: Symbol, terms: List[Term])(body: List[Ref] => Term): Term
}
Expand Down Expand Up @@ -1088,7 +1077,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* ```
* - `fun` is `f(1)` in the `Apply` of `f(1)(2)`
* - `fun` is `f` in the `Apply` of `f(1)`
* @syntax markdown
*/
def fun: Term
/** The arguments (implicitly) passed to the method
Expand All @@ -1100,7 +1088,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* ```
* - `args` is `(2)` in the `Apply` of `f(1)(2)`
* - `args` is `(1)` in the `Apply` of `f(1)`
* @syntax markdown
*/
def args: List[Term]
end extension
Expand Down Expand Up @@ -1149,7 +1136,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* // f(1)[Int](2)
* ```
* - `fun` is `f(1)` in the `TypeApply` of `f(1)[Int]`
* @syntax markdown
*/
def fun: Term
/** The (inferred) type arguments passed to the method
Expand All @@ -1168,7 +1154,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* // f(1)[Int](2)
* ```
* - `fun` is `[Int]` in the `TypeApply` of `f(1)[Int]`
* @syntax markdown
*/
def args: List[TypeTree]
end extension
Expand Down Expand Up @@ -1357,7 +1342,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* @note Due to the encoding, in pattern matches the case for `Lambda`
* should come before the case for `Block` to avoid mishandling
* of `Lambda`.
* @syntax markdown
*/
val Lambda: LambdaModule

Expand All @@ -1368,7 +1352,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* Block((DefDef(_, _, params :: Nil, _, Some(body))) :: Nil, Closure(meth, _))
* ```
* Extracts the parameter definitions and body.
* @syntax markdown
*/
def unapply(tree: Block): Option[(List[ValDef], Term)]

Expand Down Expand Up @@ -1401,7 +1384,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* @param owner: owner of the generated `meth` symbol
* @param tpe: Type of the definition
* @param rhsFn: Function that receives the `meth` symbol and the a list of references to the `params`
* @syntax markdown
*/
def apply(owner: Symbol, tpe: MethodType, rhsFn: (Symbol, List[Tree]) => Tree): Block
}
Expand Down Expand Up @@ -2305,7 +2287,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* case TypeParamClause(params: List[TypeDef])
* case TermParamClause(params: List[ValDef])
* ```
* @syntax markdown
*/
type ParamClause <: AnyRef

Expand Down Expand Up @@ -2548,7 +2529,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* }
* //}
* ```
* @syntax markdown
*/
def asType: Type[?]

Expand Down Expand Up @@ -2941,7 +2921,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* ```scala
* def foo: Int = ???
* ```
* @syntax markdown
*/
type ByNameType <: TypeRepr

Expand Down Expand Up @@ -3581,7 +3560,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* ```
*
* For a macro splice, it is the symbol of the definition where the macro expansion happens.
* @syntax markdown
*/
def spliceOwner: Symbol

Expand Down Expand Up @@ -3898,7 +3876,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* // No need to use `changeOwner` in this case.
* '{ val x = ???; x }.asTerm
* ```
* @syntax markdown
*/
@experimental
def asQuotes: Nested
Expand Down Expand Up @@ -4458,7 +4435,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* def foldTree(x: X, tree: Tree)(owner: Symbol): X = ???
* }
* ```
* @syntax markdown
*/
trait TreeAccumulator[X]:

Expand Down Expand Up @@ -4563,7 +4539,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
* override def traverseTree(tree: Tree)(owner: Symbol): Unit = ???
* }
* ```
* @syntax markdown
*/
trait TreeTraverser extends TreeAccumulator[Unit]:

Expand All @@ -4586,7 +4561,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
*
* Use `Symbol.asQuotes` to create quotes with the correct owner within the TreeMap.
*
* @syntax markdown
*/
trait TreeMap:

Expand Down