File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
test/refactoring/SyntacticRename Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- /*foo:unknown*/<base>foo</base>() is not /*foo:unknown*/<base> foo</base> (first:)
2+ /*foo:unknown*/<base>foo</base>() is not /*foo:unknown*/foo(first:)
33*/
44/// This describes /*foo:unknown*/<base>foo</base> and /*foo:unknown*/<base>foo</base>
55func /*foo:def*/<base>foo</base>() {
Original file line number Diff line number Diff line change 1+ // REQUIRES: swift_swift_parser
2+ // RUN: %empty-directory(%t)
3+ // RUN: split-file %s %t
4+ // RUN: %refactor -find-rename-ranges -source-filename %t/input.swift -pos="foo" -is-function-like -old-name "foo(baz:)" > %t/actual-output.swift
5+ // RUN: diff -u %t/expected-output.swift %t/actual-output.swift
6+
7+ //--- input.swift
8+
9+ /// `/*foo:unknown*/foo(baz:)` does very importants stuff
10+ func /*foo:def*/foo( baz: Int ) { }
11+
12+ //--- expected-output.swift
13+
14+ /// `/*foo:unknown*/<base>foo</base>(<sel index=0>baz</sel>:)` does very importants stuff
15+ func /*foo:def*/< base> foo</ base> ( < arglabel index= 0 > baz</ arglabel> < param index= 0 ></ param> : Int) { }
16+
You can’t perform that action at this time.
0 commit comments