Skip to content

Commit

Permalink
refactor: make methods as private as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
kkebo committed May 6, 2024
1 parent 9574d79 commit 62c5ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Tokenizer/Tokenizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ public struct Tokenizer<Sink: ~Copyable & TokenSink>: ~Copyable {
}

@inline(__always)
mutating func processCharRef(_ s: consuming StrSlice) {
private mutating func processCharRef(_ s: consuming StrSlice) {
switch self.state {
case .data, .rcdata: #go(emit: s)
case .attributeValueDoubleQuoted, .attributeValueSingleQuoted, .attributeValueUnquoted: #go(appendAttrValue: s)
Expand All @@ -1209,7 +1209,7 @@ public struct Tokenizer<Sink: ~Copyable & TokenSink>: ~Copyable {
}

@inline(__always)
mutating func processCharRef(_ c: consuming Char) {
private mutating func processCharRef(_ c: consuming Char) {
switch self.state {
case .data, .rcdata: #go(emit: c)
case .attributeValueDoubleQuoted, .attributeValueSingleQuoted, .attributeValueUnquoted: #go(appendAttrValue: c)
Expand Down

0 comments on commit 62c5ef5

Please sign in to comment.