From 98baea1bca8a6bd753cc8ea650afd3cbc41ce6f7 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 3 Dec 2020 11:42:49 +0100 Subject: [PATCH] Add `isInline` to `IfMethods` and `MatchMethods` --- compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala | 2 ++ library/src/scala/quoted/Quotes.scala | 2 ++ 2 files changed, 4 insertions(+) diff --git a/compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala b/compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala index 6e197f5462fc..09ada9d0ab8f 100644 --- a/compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala +++ b/compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala @@ -766,6 +766,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler def cond: Term = self.cond def thenp: Term = self.thenp def elsep: Term = self.elsep + def isInline: Boolean = self.isInline end extension end IfMethodsImpl @@ -792,6 +793,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler extension (self: Match): def scrutinee: Term = self.selector def cases: List[CaseDef] = self.cases + def isInline: Boolean = self.isInline end extension end MatchMethodsImpl diff --git a/library/src/scala/quoted/Quotes.scala b/library/src/scala/quoted/Quotes.scala index 147e9e3b3f02..13e2dab912e7 100644 --- a/library/src/scala/quoted/Quotes.scala +++ b/library/src/scala/quoted/Quotes.scala @@ -1208,6 +1208,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching => def cond: Term def thenp: Term def elsep: Term + def isInline: Boolean end extension end IfMethods @@ -1246,6 +1247,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching => extension (self: Match): def scrutinee: Term def cases: List[CaseDef] + def isInline: Boolean end extension end MatchMethods