mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-12-03 02:58:27 +00:00
refactor: remove Nodes alias
This commit is contained in:
@@ -10,9 +10,6 @@ import Foundation
|
||||
import SwiftUtils
|
||||
|
||||
extension Kana2Kanji {
|
||||
/// Latticeを構成する基本単位
|
||||
typealias Nodes = Lattice
|
||||
|
||||
/// カナを漢字に変換する関数, 前提はなくかな列が与えられた場合。
|
||||
/// - Parameters:
|
||||
/// - inputData: 入力データ。
|
||||
|
||||
@@ -38,7 +38,7 @@ extension Kana2Kanji {
|
||||
lattice.nodes.removeLast()
|
||||
}
|
||||
|
||||
let terminalNodes: Nodes
|
||||
let terminalNodes: Lattice
|
||||
if counts.added == 0 {
|
||||
terminalNodes = Lattice(nodes: lattice.nodes.map {
|
||||
$0.filter {
|
||||
|
||||
Reference in New Issue
Block a user