Skip to content

Commit 90b3eda

Browse files
Merge pull request #14759 from dotty-staging/remove-syntax-markdown
Remove `@syntax markdown` from Quotes
2 parents f88d996 + 89b3074 commit 90b3eda

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

library/src/scala/quoted/Quotes.scala

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import scala.reflect.TypeTest
1212
* ...
1313
* }
1414
* ```
15-
* @syntax markdown
1615
*/
1716
transparent inline def quotes(using inline q: Quotes): q.type = q
1817

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

@@ -97,7 +95,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
9795
*
9896
* See `reflectModule` for full API.
9997
*
100-
* @syntax markdown
10198
*/
10299
val reflect: reflectModule
103100

@@ -316,7 +313,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
316313
* package foo.bar
317314
* // package stats
318315
* ```
319-
* @syntax markdown
320316
*/
321317
type PackageClause <: Tree
322318

@@ -490,7 +486,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
490486
* ???
491487
* }
492488
* ```
493-
* @syntax markdown
494489
*/
495490
def self: Option[ValDef]
496491
/** Statements within the class
@@ -500,7 +495,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
500495
* ??? // statements
501496
* }
502497
* ```
503-
* @syntax markdown
504498
*/
505499
def body: List[Statement]
506500
end extension
@@ -553,7 +547,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
553547
* //}
554548
* extension (a: A) def f[T]() = ???
555549
* ```
556-
* @syntax markdown
557550
*/
558551
def leadingTypeParams: List[TypeDef]
559552

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

@@ -622,7 +614,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
622614
* }
623615
* }
624616
* ```
625-
* @syntax markdown
626617
*/
627618
def let(owner: Symbol, name: String, rhs: Term)(body: Ref => Term): Term
628619

@@ -636,7 +627,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
636627
* }
637628
* }
638629
* ```
639-
* @syntax markdown
640630
*/
641631
def let(owner: Symbol, rhs: Term)(body: Ref => Term): Term =
642632
let(owner, "x", rhs)(body)
@@ -649,7 +639,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
649639
* ...
650640
* }
651641
* ```
652-
* @syntax markdown
653642
*/
654643
def let(owner: Symbol, terms: List[Term])(body: List[Ref] => Term): Term
655644
}
@@ -1088,7 +1077,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
10881077
* ```
10891078
* - `fun` is `f(1)` in the `Apply` of `f(1)(2)`
10901079
* - `fun` is `f` in the `Apply` of `f(1)`
1091-
* @syntax markdown
10921080
*/
10931081
def fun: Term
10941082
/** The arguments (implicitly) passed to the method
@@ -1100,7 +1088,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
11001088
* ```
11011089
* - `args` is `(2)` in the `Apply` of `f(1)(2)`
11021090
* - `args` is `(1)` in the `Apply` of `f(1)`
1103-
* @syntax markdown
11041091
*/
11051092
def args: List[Term]
11061093
end extension
@@ -1149,7 +1136,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
11491136
* // f(1)[Int](2)
11501137
* ```
11511138
* - `fun` is `f(1)` in the `TypeApply` of `f(1)[Int]`
1152-
* @syntax markdown
11531139
*/
11541140
def fun: Term
11551141
/** The (inferred) type arguments passed to the method
@@ -1168,7 +1154,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
11681154
* // f(1)[Int](2)
11691155
* ```
11701156
* - `fun` is `[Int]` in the `TypeApply` of `f(1)[Int]`
1171-
* @syntax markdown
11721157
*/
11731158
def args: List[TypeTree]
11741159
end extension
@@ -1357,7 +1342,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
13571342
* @note Due to the encoding, in pattern matches the case for `Lambda`
13581343
* should come before the case for `Block` to avoid mishandling
13591344
* of `Lambda`.
1360-
* @syntax markdown
13611345
*/
13621346
val Lambda: LambdaModule
13631347

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

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

@@ -2548,7 +2529,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
25482529
* }
25492530
* //}
25502531
* ```
2551-
* @syntax markdown
25522532
*/
25532533
def asType: Type[?]
25542534

@@ -2941,7 +2921,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
29412921
* ```scala
29422922
* def foo: Int = ???
29432923
* ```
2944-
* @syntax markdown
29452924
*/
29462925
type ByNameType <: TypeRepr
29472926

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

@@ -3898,7 +3876,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
38983876
* // No need to use `changeOwner` in this case.
38993877
* '{ val x = ???; x }.asTerm
39003878
* ```
3901-
* @syntax markdown
39023879
*/
39033880
@experimental
39043881
def asQuotes: Nested
@@ -4458,7 +4435,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
44584435
* def foldTree(x: X, tree: Tree)(owner: Symbol): X = ???
44594436
* }
44604437
* ```
4461-
* @syntax markdown
44624438
*/
44634439
trait TreeAccumulator[X]:
44644440

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

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

0 commit comments

Comments
 (0)