This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit a4ea87540695ef4d2b519ac91295a26b8336a0ff
Author: Josh Tynjala <[email protected]>
AuthorDate: Wed Aug 7 10:07:45 2024 -0700

    INumericLiteralNode: extend IExpressionNode
---
 .../royale/compiler/internal/codegen/js/jx/NumericLiteralEmitter.java | 4 ++--
 .../java/org/apache/royale/compiler/tree/as/INumericLiteralNode.java  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/NumericLiteralEmitter.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/NumericLiteralEmitter.java
index 256c76c9c..2c29fb095 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/NumericLiteralEmitter.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/NumericLiteralEmitter.java
@@ -36,8 +36,8 @@ public class NumericLiteralEmitter extends JSSubEmitter 
implements
     @Override
     public void emit(INumericLiteralNode node)
     {
-        startMapping((ISourceLocation) node);
+        startMapping(node);
         write(node.getNumericValue().toString());
-        endMapping((ISourceLocation) node);
+        endMapping(node);
     }
 }
diff --git 
a/compiler/src/main/java/org/apache/royale/compiler/tree/as/INumericLiteralNode.java
 
b/compiler/src/main/java/org/apache/royale/compiler/tree/as/INumericLiteralNode.java
index 9368b94d3..6d25666c7 100644
--- 
a/compiler/src/main/java/org/apache/royale/compiler/tree/as/INumericLiteralNode.java
+++ 
b/compiler/src/main/java/org/apache/royale/compiler/tree/as/INumericLiteralNode.java
@@ -27,7 +27,7 @@ import 
org.apache.royale.compiler.constants.IASLanguageConstants.BuiltinType;
  * <p>
  * This node has no children.
  */
-public interface INumericLiteralNode
+public interface INumericLiteralNode extends IExpressionNode
 {
     /**
      * Maximum value of the AS3 <code>int</code> datatype

Reply via email to