forked from pool/velocity-engine
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From 0cdb34e94619854c13abb4a098ea76b760dae68a Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba@bluewin.ch>
|
|
Date: Sat, 28 Sep 2024 22:54:18 +0200
|
|
Subject: [PATCH] Implement the new method from StandardParserVisitor interface
|
|
|
|
---
|
|
.../org/apache/velocity/runtime/visitor/BaseVisitor.java | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/visitor/BaseVisitor.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/visitor/BaseVisitor.java
|
|
index 326e5a78..a9f142ba 100644
|
|
--- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/visitor/BaseVisitor.java
|
|
+++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/visitor/BaseVisitor.java
|
|
@@ -491,4 +491,11 @@ public Object visit(ASTIntegerRange node, Object data)
|
|
data = node.childrenAccept(this, data);
|
|
return data;
|
|
}
|
|
+
|
|
+ @Override
|
|
+ public Object visit(ASTNegateNode node, Object data)
|
|
+ {
|
|
+ data = node.childrenAccept(this, data);
|
|
+ return data;
|
|
+ }
|
|
}
|
|
--
|
|
2.46.1
|
|
|