Files
swift-mirror/test/SourceKit/InterfaceGen/Inputs/Foo2.swift
Ben Barham eec2848508 [SourceKit] Stop using isSystemModule to represent "non-user" modules
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.
2023-03-15 14:29:48 -07:00

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
}