File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
compiler/src/dotty/tools/dotc/core/tasty Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
package dotty .tools .dotc .core .tasty
2
2
3
- import dotty .tools .tasty .TastyFormat
3
+ import dotty .tools .tasty .TastyFormat . *
4
4
5
5
import scala .collection .immutable .BitSet
6
6
7
- class Attributes (
8
- val booleanTags : BitSet ,
7
+ class Attributes private [tasty] (
8
+ private [tasty] val booleanTags : BitSet ,
9
9
) {
10
- def scala2StandardLibrary : Boolean =
11
- booleanTags.contains(TastyFormat .SCALA2STANDARDLIBRARYattr )
12
- def explicitNulls : Boolean =
13
- booleanTags.contains(TastyFormat .EXPLICITNULLSattr )
10
+ def scala2StandardLibrary : Boolean = booleanTags(SCALA2STANDARDLIBRARYattr )
11
+ def explicitNulls : Boolean = booleanTags(EXPLICITNULLSattr )
14
12
}
15
13
16
14
object Attributes :
@@ -19,8 +17,8 @@ object Attributes:
19
17
explicitNulls : Boolean ,
20
18
): Attributes =
21
19
val booleanTags = BitSet .newBuilder
22
- if scala2StandardLibrary then booleanTags += TastyFormat . SCALA2STANDARDLIBRARYattr
23
- if explicitNulls then booleanTags += TastyFormat . EXPLICITNULLSattr
20
+ if scala2StandardLibrary then booleanTags += SCALA2STANDARDLIBRARYattr
21
+ if explicitNulls then booleanTags += EXPLICITNULLSattr
24
22
new Attributes (booleanTags.result())
25
23
end apply
26
24
You can’t perform that action at this time.
0 commit comments