File tree Expand file tree Collapse file tree 4 files changed +17
-9
lines changed Expand file tree Collapse file tree 4 files changed +17
-9
lines changed Original file line number Diff line number Diff line change
1
+ /** Provides the `Unit` class. */
2
+
3
+ /** The unit type. */
4
+ private newtype TUnit = TMkUnit ( )
5
+
6
+ /** The trivial type with a single element. */
7
+ class Unit extends TUnit {
8
+ /** Gets a textual representation of this element. */
9
+ string toString ( ) { result = "unit" }
10
+ }
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Provides Swift-specific definitions for use in the data flow library.
3
3
*/
4
+
5
+ // we need to export `Unit` for the DataFlowImpl* files
6
+ private import swift as Swift
7
+
4
8
module Private {
5
9
import DataFlowPrivate
6
10
import DataFlowDispatch
11
+
12
+ class Unit = Swift:: Unit ;
7
13
}
8
14
9
15
module Public {
Original file line number Diff line number Diff line change @@ -603,15 +603,6 @@ int accessPathLimit() { result = 5 }
603
603
*/
604
604
predicate forceHighPrecision ( Content c ) { none ( ) }
605
605
606
- /** The unit type. */
607
- private newtype TUnit = TMkUnit ( )
608
-
609
- /** The trivial type with a single element. */
610
- class Unit extends TUnit {
611
- /** Gets a textual representation of this element. */
612
- string toString ( ) { result = "unit" }
613
- }
614
-
615
606
/**
616
607
* Holds if the node `n` is unreachable when the call context is `call`.
617
608
*/
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ import codeql.swift.elements.expr.ArithmeticOperation
5
5
import codeql.swift.elements.expr.LogicalOperation
6
6
import codeql.swift.elements.decl.MethodDecl
7
7
import codeql.swift.elements.decl.ClassOrStructDecl
8
+ import codeql.swift.Unit
You can’t perform that action at this time.
0 commit comments