8000 Replace unevaluated gyb values in documentation comments by mattt · Pull Request #244 · swiftlang/swift-syntax · GitHub
[go: up one dir, main page]

Skip to content

Replace unevaluated gyb values in documentation comments #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
< 8000 div class="hide-lg hide-xl">
Diff view
6 changes: 3 additions & 3 deletions Sources/SwiftSyntax/Syntax.swift
Original file line number Diff line number Diff line change
Expand Up @@ -332,17 +332,17 @@ public extension SyntaxProtocol {
return Self(Syntax(data.withTrailingTrivia(trailingTrivia)))!
}

/// Returns a new `${node.name}` with its leading trivia removed.
/// Returns a new syntax node with its leading trivia removed.
func withoutLeadingTrivia() -> Self {
return withLeadingTrivia([])
}

/// Returns a new `${node.name}` with its trailing trivia removed.
/// Returns a new syntax node with its trailing trivia removed.
func withoutTrailingTrivia() -> Self {
return withTrailingTrivia([])
}

/// Returns a new `${node.name}` with all trivia removed.
/// Returns a new syntax node with all trivia removed.
func withoutTrivia() -> Self {
return withoutLeadingTrivia().withoutTrailingTrivia()
}
Expand Down
0