mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rather than using `ModuleDecl::isSystemModule()` to determine whether a module is not a user module, instead check whether the module was defined adjacent to the compiler or if it's part of the SDK. If no SDK path was given, then `isSystemModule` is still used as a fallback. Resolves rdar://89253201.
45 lines
659 B
Swift
45 lines
659 B
Swift
// we keep comments before the first line of code
|
|
// Keep this line
|
|
|
|
import Foundation
|
|
|
|
public class NewLineAfterImport {
|
|
}
|
|
/// This is the class base
|
|
public class FooOverlayClassBase {
|
|
public func f() {}
|
|
var Range = 10
|
|
private var RangePrivate : Int = 10
|
|
}
|
|
public class FooOverlayClassDerived : FooOverlayClassBase {
|
|
override public func f() {}
|
|
}
|
|
// This comment should go away
|
|
private class PrivateClassNotVisible {
|
|
|
|
}
|
|
|
|
class InternalClassVisible {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class IgnoreBigWhiteSpaceGap {
|
|
|
|
}
|
|
|
|
class PropWithDocComment {
|
|
/// Awesome property.
|
|
var prop = 0
|
|
/// I see doubles.
|
|
var (p1, p2) = (0, 1)
|
|
}
|
|
|
|
enum Colors {
|
|
case Red
|
|
case Blue
|
|
}
|