From 855be6f8f06d42f46073a066a93c29a17bca48a3 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sun, 21 Mar 2021 15:56:51 +0200 Subject: [PATCH] We will rather return Variable and modify in `parseAccessor`. And if not then we set to default --- source/tlang/compiler/parser.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/tlang/compiler/parser.d b/source/tlang/compiler/parser.d index f0c29eb..9bc3ced 100644 --- a/source/tlang/compiler/parser.d +++ b/source/tlang/compiler/parser.d @@ -337,12 +337,12 @@ public final class Parser /* If class */ if(symbolType == SymbolType.CLASS) { - parseClass(accessorType); + parseClass(); } /* If typed-definition (function or variable) */ else if(symbolType == SymbolType.TYPE) { - parseTypedDeclaration(accessorType); + parseTypedDeclaration(); } /* Error out */ else @@ -529,7 +529,7 @@ public final class Parser gprintln("parseExpression(): Leave", DebugType.WARNING); } - private void parseTypedDeclaration(AccessorType accessorType = AccessorType.PUBLIC) + private void parseTypedDeclaration() { gprintln("parseTypedDeclaration(): Enter", DebugType.WARNING); @@ -595,7 +595,7 @@ public final class Parser * This is called when there is an occurrence of * a token `class` */ - private void parseClass(AccessorType accessorType = AccessorType.PUBLIC) + private void parseClass() { gprintln("parseClass(): Enter", DebugType.WARNING);