Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellie Shin committed Apr 6, 2020
1 parent 2b2fe67 commit e5496f5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public class ParserViaSwiftSyntax: SourceParsing {
let ret = treeVisitor.entities
results.append(contentsOf: ret)
let imports = treeVisitor.imports
treeVisitor.reset()

lock?.lock()
defer {lock?.unlock()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -639,12 +639,25 @@ final class EntityVisitor: SyntaxVisitor {
return .visitChildren
}

#if swift(>=5.2)
override func visit(_ node: StructDeclSyntax) -> SyntaxVisitorContinueKind {
return .skipChildren
}
#else
func visit(_ node: StructDeclSyntax) -> SyntaxVisitorContinueKind {
return .skipChildren
}
#endif

#if swift(>=5.2)
override func visit(_ node: EnumDeclSyntax) -> SyntaxVisitorContinueKind {
return .skipChildren
}
#else
func visit(_ node: EnumDeclSyntax) -> SyntaxVisitorContinueKind {
return .skipChildren
}
#endif

}

Expand Down
2 changes: 1 addition & 1 deletion Sources/MockoloFramework/Templates/ClassTemplate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ extension ClassModel {

let template = """
\(attribute)
\(acl)class \(moduleDot)\(name): \(moduleDot)\(identifier) {
\(acl)class \(name): \(moduleDot)\(identifier) {
\(body)
}
"""
Expand Down
3 changes: 1 addition & 2 deletions Tests/TestModuleNames/FixtureModuleOverrides.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ protocol TaskRouting: BaseRouting {

let moduleOverrideMock = """
class Foo.TaskRoutingMock: Foo.TaskRouting {
class TaskRoutingMock: Foo.TaskRouting {
init() { }
init(bar: String = "") {
self.bar = bar
Expand Down
72 changes: 0 additions & 72 deletions _layouts/default.html

This file was deleted.

2 changes: 1 addition & 1 deletion install-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ echo "DESTINATION DIR = ${DESTDIR}"
echo "OUTPUT FILE = ${OUTFILE}"

cd "$SRCDIR"
#rm -rf .build
rm -rf .build
swift build -c release

cd .build/release
Expand Down

0 comments on commit e5496f5

Please sign in to comment.