Library Moduleswift-syntax 600.0.1SwiftSyntaxMacrosTestSupport
SwiftSyntaxMacrosTestSupport
import SwiftSyntaxMacrosTestSupport
Module information
- Declarations
- 5
- Symbols
- 5
import SwiftSyntaxMacrosTestSupport
func assertMacroExpansion(_ originalSource: String, expandedSource expectedExpandedSource: String, diagnostics: [DiagnosticSpec] = [], macroSpecs: [String : MacroSpec], applyFixIts: [String]? = nil, fixedSource expectedFixedSource: String? = nil, testModuleName: String = "TestModule", testFileName: String = "test.swift", indentationWidth: Trivia = .spaces(4), file: StaticString = #filePath, line: UInt = #line)
Assert that expanding the given macros in the original source produces the given expanded source code.
func assertMacroExpansion(_ originalSource: String, expandedSource expectedExpandedSource: String, diagnostics: [DiagnosticSpec] = [], macros: [String : Macro.Type], applyFixIts: [String]? = nil, fixedSource expectedFixedSource: String? = nil, testModuleName: String = "TestModule", testFileName: String = "test.swift", indentationWidth: Trivia = .spaces(4), file: StaticString = #filePath, line: UInt = #line)
Assert that expanding the given macros in the original source produces the given expanded source code.
typealias DiagnosticSpec = SwiftSyntaxMacrosGenericTestSupport.DiagnosticSpec
typealias FixItSpec = SwiftSyntaxMacrosGenericTestSupport.FixItSpec
typealias NoteSpec = SwiftSyntaxMacrosGenericTestSupport.NoteSpec
import SwiftBasicFormat
import SwiftCompilerPlugin
import SwiftCompilerPluginMessageHandling
import SwiftDiagnostics
import SwiftIDEUtils
import SwiftLibraryPluginProvider
import SwiftOperators
An implementation of Swift’s user-defined operator declarations and precedence groups, allowing a program to reason about the relative precedence of infix operations and transform syntax trees to describe the order of operations.
import SwiftParser
A parser for the Swift programming language.
import SwiftParserDiagnostics
import SwiftRefactor
import SwiftSyntax
A library for working with Swift code.
import SwiftSyntax509
import SwiftSyntax510
import SwiftSyntax600
import SwiftSyntaxBuilder
SwiftSyntaxBuilder is a tool for generating Swift code in a convenient way using result builders.
import SwiftSyntaxMacroExpansion
import SwiftSyntaxMacros
import SwiftSyntaxMacrosGenericTestSupport
import _SwiftLibraryPluginProviderCShims
import _SwiftSyntaxCShims
import _SwiftSyntaxGenericTestSupport