Skip to content

Commit 4fa7c6b

Browse files
Merge pull request #10625 from dotty-staging/add-isInline-to-if-and-match
Add `isInline` to `IfMethods` and `MatchMethods`
2 parents 0a689f2 + 98baea1 commit 4fa7c6b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
766766
def cond: Term = self.cond
767767
def thenp: Term = self.thenp
768768
def elsep: Term = self.elsep
769+
def isInline: Boolean = self.isInline
769770
end extension
770771
end IfMethodsImpl
771772

@@ -792,6 +793,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
792793
extension (self: Match):
793794
def scrutinee: Term = self.selector
794795
def cases: List[CaseDef] = self.cases
796+
def isInline: Boolean = self.isInline
795797
end extension
796798
end MatchMethodsImpl
797799

library/src/scala/quoted/Quotes.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
12081208
def cond: Term
12091209
def thenp: Term
12101210
def elsep: Term
1211+
def isInline: Boolean
12111212
end extension
12121213
end IfMethods
12131214

@@ -1246,6 +1247,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
12461247
extension (self: Match):
12471248
def scrutinee: Term
12481249
def cases: List[CaseDef]
1250+
def isInline: Boolean
12491251
end extension
12501252
end MatchMethods
12511253

0 commit comments

Comments
 (0)