Functions
The following functions are available globally.
-
Just like Swift.precondition, but includes the full file path in the diagnostic.
Declaration
Swift
func precondition( _ condition: @autoclosure () -> Bool, _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -
Just like Swift.preconditionFailure, but includes the full file path in the diagnostic.
Declaration
Swift
func preconditionFailure( _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -> Never -
Just like Swift.fatalError, but includes the full file path in the diagnostic.
Declaration
Swift
func fatalError( _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -> Never -
Just like Swift.assert, but includes the full file path in the diagnostic.
Declaration
Swift
func assert( _ condition: @autoclosure () -> Bool, _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -
Just like Swift.assertionFailure, but includes the full file path in the diagnostic.
Declaration
Swift
func assertionFailure( _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -
Returns a hosted standard library after typechecking and any diagnostics generated.
The resulting program may be empty if typechecking fails.
Declaration
Swift
private func makeTypecheckedStandardLibrary() -> (program: TypedProgram, diagnostics: DiagnosticSet)
View on GitHub
Functions Reference