We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53cd0b6 commit b6d3cfdCopy full SHA for b6d3cfd
1 file changed
Sources/Compiler/Gen/SwiftGenerator.swift
@@ -11,7 +11,7 @@ import SwiftSyntaxBuilder
11
public struct SwiftGenerator: Language {
12
public typealias Table = DeclSyntax
13
public typealias File = SourceFileSyntax
14
- public typealias Migration = StringLiteralExprSyntax
+ public typealias Migration = SwiftSyntax.ExprSyntax
15
16
public struct Query {
17
public let statement: Statement
@@ -32,8 +32,12 @@ public struct SwiftGenerator: Language {
32
33
public static func migration(
34
source: String
35
- ) throws -> StringLiteralExprSyntax {
36
- StringLiteralExprSyntax(content: source)
+ ) throws -> SwiftSyntax.ExprSyntax {
+ return """
37
+ \"\"\"
38
+ \(raw: source)
39
40
+ """
41
}
42
43
public static func table(
0 commit comments