Files
swift-mirror/test/incrParse/funcs.swift
Alex Hoppen d9d5afd15a [incrParse] Refactor the test utility to be more modular
This way we can use the same core of the test utility to verify
round-tripness of incrementally transferring the syntax tree to
swiftSyntax.
2018-07-19 14:47:58 -07:00

41 lines
873 B
Swift

// RUN: %empty-directory(%t)
// RUN: %validate-incrparse %s --test-case NO_CHANGES
// RUN: %validate-incrparse %s --test-case ADD_FUNC_PARENS
// RUN: %validate-incrparse %s --test-case ADD_OPENING_BRACE
// RUN: %validate-incrparse %s --test-case REMOVE_FUNC_KEYWORD
// RUN: %validate-incrparse %s --test-case ADD_PARAM_NAME
// RUN: %validate-incrparse %s --test-case ADD_PARAM_TYPE
func start() {}
class Bar
let y = 1
class InvalidFuncDecls {
func parensAdded<<ADD_FUNC_PARENS<|||()>>> {
}
func openingBraceAdded() <<ADD_OPENING_BRACE|||{>>>
func closingBraceAdded() {
<<ADD_ClOSING_BRACE|||}>>>
<<REMOVE_FUNC_KEYWORD<func|||>>> funcKeywordRemoved() {
}
func addingParamName(<<ADD_PARAM_NAME<|||arg>>>) {
}
func addingParamColon(arg<<ADD_PARAM_COLON<|||:>>>) {
}
func addingParamType(arg:<<ADD_PARAM_TYPE<||| String>>>) {
}
}