Skip to content

Commit 0ed5a1c

Browse files
committed
Fix incorrect copyright headers
1 parent c247510 commit 0ed5a1c

27 files changed

+193
-9
lines changed

CodeGeneration/Sources/generate-swift-syntax/templates/swiftsyntax/RawSyntaxNodesFile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fileprivate extension Node {
3939
}
4040

4141
func rawSyntaxNodesFile(nodesStartingWith: [Character]) -> SourceFileSyntax {
42-
return SourceFileSyntax {
42+
return SourceFileSyntax(leadingTrivia: copyrightHeader) {
4343
for node in SYNTAX_NODES where node.kind.isBase && nodesStartingWith.contains(node.kind.syntaxType.description.first!) {
4444
DeclSyntax(
4545
"""

Sources/SwiftBasicFormat/SyntaxProtocol+Formatted.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
113
import SwiftSyntax
214

315
public extension SyntaxProtocol {

Sources/SwiftParser/Nominals.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-------------------------- Nominals.swift -----------------------------===//
1+
//===----------------------------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

Sources/SwiftParserDiagnostics/LexerDiagnosticMessages.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- LexerDiagnosticMessages.swift ------------------------------------===//
1+
//===----------------------------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesAB.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//// Automatically generated by generate-swift-syntax
2+
//// Do not edit directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
@_spi(RawSyntax)
216
public struct RawAccessorBlockSyntax: RawSyntaxNodeProtocol {
317
public enum Accessors: RawSyntaxNodeProtocol {

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesC.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//// Automatically generated by generate-swift-syntax
2+
//// Do not edit directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
@_spi(RawSyntax)
216
public struct RawCanImportExprSyntax: RawExprSyntaxNodeProtocol {
317
@_spi(RawSyntax)

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesD.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//// Automatically generated by generate-swift-syntax
2+
//// Do not edit directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
@_spi(RawSyntax)
216
public protocol RawDeclSyntaxNodeProtocol: RawSyntaxNodeProtocol {}
317

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesEF.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//// Automatically generated by generate-swift-syntax
2+
//// Do not edit directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
@_spi(RawSyntax)
216
public protocol RawExprSyntaxNodeProtocol: RawSyntaxNodeProtocol {}
317

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesGHI.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//// Automatically generated by generate-swift-syntax
2+
//// Do not edit directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
@_spi(RawSyntax)
216
public struct RawGenericArgumentClauseSyntax: RawSyntaxNodeProtocol {
317
@_spi(RawSyntax)

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesJKLMN.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//// Automatically generated by generate-swift-syntax
2+
//// Do not edit directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
@_spi(RawSyntax)
216
public struct RawKeyPathComponentListSyntax: RawSyntaxNodeProtocol {
317
@_spi(RawSyntax)

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesOP.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//// Automatically generated by generate-swift-syntax
2+
//// Do not edit directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
@_spi(RawSyntax)
216
public protocol RawPatternSyntaxNodeProtocol: RawSyntaxNodeProtocol {}
317

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesQRS.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//// Automatically generated by generate-swift-syntax
2+
//// Do not edit directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
@_spi(RawSyntax)
216
public protocol RawStmtSyntaxNodeProtocol: RawSyntaxNodeProtocol {}
317

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesTUVWXYZ.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//// Automatically generated by generate-swift-syntax
2+
//// Do not edit directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
@_spi(RawSyntax)
216
public protocol RawTypeSyntaxNodeProtocol: RawSyntaxNodeProtocol {}
317

Sources/SwiftSyntaxBuilder/ResultBuilderExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- ResultBuilderExtensions.swift ------------------------------------===//
1+
//===----------------------------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

Sources/SwiftSyntaxMacroExpansion/FunctionParameterUtils.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
113
import SwiftSyntax
214

315
extension FunctionParameterSyntax {

Sources/SwiftSyntaxMacroExpansion/MacroReplacement.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
113
import SwiftDiagnostics
214
import SwiftSyntax
315
import SwiftSyntaxBuilder

Sources/SwiftSyntaxMacros/MacroProtocols/AccessorMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//===----------------------------------------------------------------------===//
12
//
23
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
34
// Licensed under Apache License v2.0 with Runtime Library Exception

Sources/SwiftSyntaxMacros/MacroProtocols/AttachedMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//===----------------------------------------------------------------------===//
12
//
23
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
34
// Licensed under Apache License v2.0 with Runtime Library Exception

Sources/SwiftSyntaxMacros/MacroProtocols/BodyMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//===----------------------------------------------------------------------===//
12
//
23
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
34
// Licensed under Apache License v2.0 with Runtime Library Exception

Sources/SwiftSyntaxMacros/MacroProtocols/CodeItemMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//===----------------------------------------------------------------------===//
12
//
23
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
34
// Licensed under Apache License v2.0 with Runtime Library Exception

Sources/SwiftSyntaxMacros/MacroProtocols/DeclarationMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//===----------------------------------------------------------------------===//
12
//
23
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
34
// Licensed under Apache License v2.0 with Runtime Library Exception

Sources/SwiftSyntaxMacros/MacroProtocols/FreestandingMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//===----------------------------------------------------------------------===//
12
//
23
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
34
// Licensed under Apache License v2.0 with Runtime Library Exception

Sources/SwiftSyntaxMacros/MacroProtocols/PeerMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//===----------------------------------------------------------------------===//
12
//
23
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
34
// Licensed under Apache License v2.0 with Runtime Library Exception

Sources/SwiftSyntaxMacros/MacroProtocols/PreambleMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//===----------------------------------------------------------------------===//
12
//
23
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
34
// Licensed under Apache License v2.0 with Runtime Library Exception

Tests/SwiftOperatorsTest/OperatorTableTests.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
@_spi(Testing) import SwiftOperators
2-
import SwiftParser
3-
import SwiftSyntax
41
//===----------------------------------------------------------------------===//
52
//
63
// This source file is part of the Swift.org open source project
@@ -12,6 +9,10 @@ import SwiftSyntax
129
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1310
//
1411
//===----------------------------------------------------------------------===//
12+
13+
@_spi(Testing) import SwiftOperators
14+
import SwiftParser
15+
import SwiftSyntax
1516
import XCTest
1617
import _SwiftSyntaxTestSupport
1718

Tests/SwiftOperatorsTest/SyntaxSynthesisTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import SwiftOperators
2-
import SwiftSyntax
31
//===----------------------------------------------------------------------===//
42
//
53
// This source file is part of the Swift.org open source project
@@ -11,6 +9,9 @@ import SwiftSyntax
119
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1210
//
1311
//===----------------------------------------------------------------------===//
12+
13+
import SwiftOperators
14+
import SwiftSyntax
1415
import XCTest
1516

1617
public class SyntaxSynthesisTests: XCTestCase {

Tests/SwiftParserTest/translated/RecoveryTests.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2023 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
113
// This test file has been translated from swift/test/Parse/recovery.swift
214

315
import XCTest

0 commit comments

Comments
 (0)