From 0fb64f0a2de8993ac9443346d28bfc7e19181f41 Mon Sep 17 00:00:00 2001 From: Mike Cifelli Date: Sun, 18 Mar 2018 12:45:57 -0400 Subject: [PATCH] Convert error classes to kotlin --- .idea/codeStyles/Project.xml | 1 + .../error/CriticalLineColumnException.java | 20 ---- .../java/error/CriticalLineColumnException.kt | 9 ++ .../java/error/CriticalLispException.java | 15 --- src/main/java/error/CriticalLispException.kt | 8 ++ src/main/java/error/ErrorManager.java | 95 ------------------- src/main/java/error/ErrorManager.kt | 41 ++++++++ src/main/java/error/LineColumnException.java | 25 ----- src/main/java/error/LineColumnException.kt | 12 +++ src/main/java/error/LispException.java | 14 --- src/main/java/error/LispException.kt | 8 ++ src/main/java/error/LispWarning.java | 15 --- src/main/java/error/LispWarning.kt | 8 ++ src/main/java/error/Severity.kt | 31 ++++++ src/test/java/error/ErrorManagerTest.java | 7 +- .../java/function/ArgumentValidatorTest.java | 2 +- .../function/UserDefinedFunctionTest.java | 4 +- .../function/builtin/SYMBOL_FUNCTIONTest.java | 2 +- .../java/interpreter/LispInterpreterTest.java | 2 +- src/test/java/parser/LispParserTest.java | 2 +- .../LispCommentRemovingInputStreamTest.java | 2 +- .../java/scanner/LispScannerTypeTest.java | 2 +- .../java/sexpression/SExpressionTest.java | 2 +- src/test/java/table/FunctionTableTest.java | 4 +- src/test/java/testutil/TestUtilities.java | 2 +- src/test/java/token/TokenFactoryTest.java | 2 +- 26 files changed, 134 insertions(+), 201 deletions(-) delete mode 100644 src/main/java/error/CriticalLineColumnException.java create mode 100644 src/main/java/error/CriticalLineColumnException.kt delete mode 100644 src/main/java/error/CriticalLispException.java create mode 100644 src/main/java/error/CriticalLispException.kt delete mode 100644 src/main/java/error/ErrorManager.java create mode 100644 src/main/java/error/ErrorManager.kt delete mode 100644 src/main/java/error/LineColumnException.java create mode 100644 src/main/java/error/LineColumnException.kt delete mode 100644 src/main/java/error/LispException.java create mode 100644 src/main/java/error/LispException.kt delete mode 100644 src/main/java/error/LispWarning.java create mode 100644 src/main/java/error/LispWarning.kt create mode 100644 src/main/java/error/Severity.kt diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 6f0bc46..2293d97 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -26,6 +26,7 @@