mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Packaging: Rafactor Javascript core libraries
Extract the external facing `qll` files into the codeql/javascript-all query pack.
This commit is contained in:
10
javascript/ql/lib/semmle/javascript/Unit.qll
Normal file
10
javascript/ql/lib/semmle/javascript/Unit.qll
Normal file
@@ -0,0 +1,10 @@
|
||||
/** Provides the `Unit` class. */
|
||||
|
||||
/** The unit type. */
|
||||
private newtype TUnit = TMkUnit()
|
||||
|
||||
/** The trivial type with a single element. */
|
||||
class Unit extends TUnit {
|
||||
/** Gets a textual representation of this element. */
|
||||
string toString() { result = "Unit" }
|
||||
}
|
||||
Reference in New Issue
Block a user