Files
swift-mirror/test/SourceKit/SyntaxMapData/Inputs/syntaxmap.swift
Argyrios Kyrtzidis 8ff6a98a99 [sourcekit] Merge SourceKit into the Swift repo.
The code goes into its own sub-tree under 'tools' but tests go under 'test',
so that running 'check-swift' will also run all the SourceKit tests.

SourceKit is disabled on non-darwin platforms.
2015-11-05 01:09:08 -08:00

50 lines
849 B
Swift

// This is a comment.
// This is a comment that contradicts the previous comment.
class Foo {
var test : Int
var a, b : Int
}
#if CONF
var g : Int
#else
var g : Float
#endif
// Something. FIXME: Blah.
// Something http://www.apple.com something else
//http://www.apple.com
// http://www.apple.com
var str = "some string \(0)"
func <#test1#>() {}
/// Brief description.
///
/// Some words.
///
/// - Parameters:
/// - x: ...
/// - z
/// - Notafield: THISISNOTAFIELD
///
/// - parameter y: A number
/// - returns: `x + y`
func foo(x: Int, y: Int) -> Int { return x + y }
/**
- note: NOTENOTENOTE
- warning: WARNWARNWARN
- returns nothing
- RETURNS: Void
- requires: List items to be at the top level
*/
func bar() {}
// mailto:awesomeguy@apple.com
// radar:1234567
// mailto:thisisnotmail
// unknownprotocol://awesomeguy.com