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 11/**
22 * Provides Swift-specific definitions for use in the data flow library.
33 */
4+
5+ // we need to export `Unit` for the DataFlowImpl* files
6+ private import swift as Swift
7+
48module Private {
59 import DataFlowPrivate
610 import DataFlowDispatch
11+
12+ class Unit = Swift:: Unit ;
713}
814
915module Public {
Original file line number Diff line number Diff line change @@ -603,15 +603,6 @@ int accessPathLimit() { result = 5 }
603603 */
604604predicate forceHighPrecision ( Content c ) { none ( ) }
605605
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-
615606/**
616607 * Holds if the node `n` is unreachable when the call context is `call`.
617608 */
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ import codeql.swift.elements.expr.ArithmeticOperation
55import codeql.swift.elements.expr.LogicalOperation
66import codeql.swift.elements.decl.MethodDecl
77import codeql.swift.elements.decl.ClassOrStructDecl
8+ import codeql.swift.Unit
You can’t perform that action at this time.
0 commit comments