Skip to content

Commit

Permalink
fix: fix publish scope
Browse files Browse the repository at this point in the history
  • Loading branch information
mui-z committed Oct 9, 2022
1 parent 0d59882 commit bda53df
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ public enum ValidateResult<SUCCESS, ERROR> {
case invalid(ERROR)
}

protocol ValidateScriptUseCase {
internal protocol ValidateScriptUseCase {
func validate(rawAllString: String) -> ValidateResult<EFNovelScript, [ValidationError]>
}

struct ValidateScriptUseCaseImpl: ValidateScriptUseCase {
internal struct ValidateScriptUseCaseImpl: ValidateScriptUseCase {
func validate(rawAllString: String) -> ValidateResult<EFNovelScript, [ValidationError]> {

var validationResults = [Result<(), ValidationError>]()
Expand Down
4 changes: 2 additions & 2 deletions Sources/EffectiveNovelCore/Domain/Parser/ScriptParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

import Foundation

protocol Parser {
internal protocol Parser {
func parse(rawString: String) throws -> [DisplayEvent]
}

struct ScriptParser: Parser {
internal struct ScriptParser: Parser {
func parse(rawString raw: String) throws -> [DisplayEvent] {
var rawAllString = raw
rawAllString.removeAll(where: { $0 == "\n" })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import Foundation

struct BracketsPairValidator: LineSyntaxValidator {
internal struct BracketsPairValidator: LineSyntaxValidator {
func validate(lineRawText: String, lineNo: Int) -> Result<(), ValidationError> {

var frontBracketsCount = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import Foundation

struct MustContainsIncludeTagsValidator: AllStringSyntaxValidator {
internal struct MustContainsIncludeTagsValidator: AllStringSyntaxValidator {
func validate(allStringRawText: String) -> Result<(), ValidationError> {
var notFoundTags = [DisplayEvent]()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import Foundation

struct ParseToDisplayEventsValidator: LineSyntaxValidator {
internal struct ParseToDisplayEventsValidator: LineSyntaxValidator {
func validate(lineRawText: String, lineNo: Int) -> Result<(), ValidationError> {
let parser = ScriptParser()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import Foundation

protocol AllStringSyntaxValidator {
internal protocol AllStringSyntaxValidator {
func validate(allStringRawText: String) -> Result<Void, ValidationError>
}

protocol LineSyntaxValidator {
internal protocol LineSyntaxValidator {
func validate(lineRawText: String, lineNo: Int) -> Result<Void, ValidationError>
}

0 comments on commit bda53df

Please sign in to comment.