@@ -2062,82 +2062,82 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
2062
2062
2063
2063
object Constant extends ConstantModule :
2064
2064
2065
- object Boolean extends ConstantBooleanModule :
2065
+ object Boolean extends BooleanModule :
2066
2066
def apply (x : Boolean ): Constant = dotc.core.Constants .Constant (x)
2067
2067
def unapply (constant : Constant ): Option [Boolean ] =
2068
2068
if constant.tag == dotc.core.Constants .BooleanTag then Some (constant.booleanValue)
2069
2069
else None
2070
2070
end Boolean
2071
2071
2072
- object Byte extends ConstantByteModule :
2072
+ object Byte extends ByteModule :
2073
2073
def apply (x : Byte ): Constant = dotc.core.Constants .Constant (x)
2074
2074
def unapply (constant : Constant ): Option [Byte ] =
2075
2075
if constant.tag == dotc.core.Constants .ByteTag then Some (constant.byteValue)
2076
2076
else None
2077
2077
end Byte
2078
2078
2079
- object Short extends ConstantShortModule :
2079
+ object Short extends ShortModule :
2080
2080
def apply (x : Short ): Constant = dotc.core.Constants .Constant (x)
2081
2081
def unapply (constant : Constant ): Option [Short ] =
2082
2082
if constant.tag == dotc.core.Constants .ShortTag then Some (constant.shortValue)
2083
2083
else None
2084
2084
end Short
2085
2085
2086
- object Int extends ConstantIntModule :
2086
+ object Int extends IntModule :
2087
2087
def apply (x : Int ): Constant = dotc.core.Constants .Constant (x)
2088
2088
def unapply (constant : Constant ): Option [Int ] =
2089
2089
if constant.tag == dotc.core.Constants .IntTag then Some (constant.intValue)
2090
2090
else None
2091
2091
end Int
2092
2092
2093
- object Long extends ConstantLongModule :
2093
+ object Long extends LongModule :
2094
2094
def apply (x : Long ): Constant = dotc.core.Constants .Constant (x)
2095
2095
def unapply (constant : Constant ): Option [Long ] =
2096
2096
if constant.tag == dotc.core.Constants .LongTag then Some (constant.longValue)
2097
2097
else None
2098
2098
end Long
2099
2099
2100
- object Float extends ConstantFloatModule :
2100
+ object Float extends FloatModule :
2101
2101
def apply (x : Float ): Constant = dotc.core.Constants .Constant (x)
2102
2102
def unapply (constant : Constant ): Option [Float ] =
2103
2103
if constant.tag == dotc.core.Constants .FloatTag then Some (constant.floatValue)
2104
2104
else None
2105
2105
end Float
2106
2106
2107
- object Double extends ConstantDoubleModule :
2107
+ object Double extends DoubleModule :
2108
2108
def apply (x : Double ): Constant = dotc.core.Constants .Constant (x)
2109
2109
def unapply (constant : Constant ): Option [Double ] =
2110
2110
if constant.tag == dotc.core.Constants .DoubleTag then Some (constant.doubleValue)
2111
2111
else None
2112
2112
end Double
2113
2113
2114
- object Char extends ConstantCharModule :
2114
+ object Char extends CharModule :
2115
2115
def apply (x : Char ): Constant = dotc.core.Constants .Constant (x)
2116
2116
def unapply (constant : Constant ): Option [Char ] =
2117
2117
if constant.tag == dotc.core.Constants .CharTag then Some (constant.charValue)
2118
2118
else None
2119
2119
end Char
2120
2120
2121
- object String extends ConstantStringModule :
2121
+ object String extends StringModule :
2122
2122
def apply (x : String ): Constant = dotc.core.Constants .Constant (x)
2123
2123
def unapply (constant : Constant ): Option [String ] =
2124
2124
if constant.tag == dotc.core.Constants .StringTag then Some (constant.stringValue)
2125
2125
else None
2126
2126
end String
2127
2127
2128
- object Unit extends ConstantUnitModule :
2128
+ object Unit extends UnitModule :
2129
2129
def apply (): Constant = dotc.core.Constants .Constant (())
2130
2130
def unapply (constant : Constant ): Boolean =
2131
2131
constant.tag == dotc.core.Constants .UnitTag
2132
2132
end Unit
2133
2133
2134
- object Null extends ConstantNullModule :
2134
+ object Null extends NullModule :
2135
2135
def apply (): Constant = dotc.core.Constants .Constant (null )
2136
2136
def unapply (constant : Constant ): Boolean =
2137
2137
constant.tag == dotc.core.Constants .NullTag
2138
2138
end Null
2139
2139
2140
- object ClassOf extends ConstantClassOfModule :
2140
+ object ClassOf extends ClassOfModule :
2141
2141
def apply (x : TypeRepr ): Constant =
2142
2142
// TODO check that the type is a valid class when creating this constant or let Ycheck do it?
2143
2143
dotc.core.Constants .Constant (x)
@@ -2397,7 +2397,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
2397
2397
end extension
2398
2398
end SignatureMethodsImpl
2399
2399
2400
- object defn extends DefnModule :
2400
+ object defn extends defnModule :
2401
2401
def RootPackage : Symbol = dotc.core.Symbols .defn.RootPackage
2402
2402
def RootClass : Symbol = dotc.core.Symbols .defn.RootClass
2403
2403
def EmptyPackageClass : Symbol = dotc.core.Symbols .defn.EmptyPackageClass
@@ -2541,7 +2541,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
2541
2541
def path : java.nio.file.Path = ctx.compilationUnit.source.file.jpath
2542
2542
end Source
2543
2543
2544
- object report extends ReportModule :
2544
+ object report extends reportModule :
2545
2545
2546
2546
def error (msg : String ): Unit =
2547
2547
dotc.report.error(msg, Position .ofMacroExpansion)
0 commit comments