@@ -338,7 +338,7 @@ func assertLocation<T: SyntaxProtocol>(
338338 line: UInt = #line
339339) {
340340 if let markerLoc = markerLocations [ locationMarker] {
341- let locationConverter = SourceLocationConverter ( file : " " , tree: tree)
341+ let locationConverter = SourceLocationConverter ( fileName : " " , tree: tree)
342342 let actualLocation = location
343343 let expectedLocation = locationConverter. location ( for: AbsolutePosition ( utf8Offset: markerLoc) )
344344 if actualLocation. line != expectedLocation. line || actualLocation. column != expectedLocation. column {
@@ -362,7 +362,7 @@ func assertNote<T: SyntaxProtocol>(
362362 expected spec: NoteSpec
363363) {
364364 XCTAssertEqual ( note. message, spec. message, file: spec. file, line: spec. line)
365- let locationConverter = SourceLocationConverter ( file : " " , tree: tree)
365+ let locationConverter = SourceLocationConverter ( fileName : " " , tree: tree)
366366 assertLocation (
367367 note. location ( converter: locationConverter) ,
368368 in: tree,
@@ -381,7 +381,7 @@ func assertDiagnostic<T: SyntaxProtocol>(
381381 markerLocations: [ String : Int ] ,
382382 expected spec: DiagnosticSpec
383383) {
384- let locationConverter = SourceLocationConverter ( file : " " , tree: tree)
384+ let locationConverter = SourceLocationConverter ( fileName : " " , tree: tree)
385385 assertLocation (
386386 diag. location ( converter: locationConverter) ,
387387 in: tree,
0 commit comments