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
The following commit(s) were added to refs/heads/develop by this push:
new 72a61cd88 RepairingTokenBuffer: inserted semicolon should have a
source path copied from the previous token (not just line/column/start/end)
72a61cd88 is described below
commit 72a61cd881767fb2fd0ce75e89855c7c1a3b7939
Author: Josh Tynjala <[email protected]>
AuthorDate: Mon May 23 08:15:29 2022 -0700
RepairingTokenBuffer: inserted semicolon should have a source path copied
from the previous token (not just line/column/start/end)
---
.../apache/royale/compiler/internal/parsing/as/RepairingTokenBuffer.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/as/RepairingTokenBuffer.java
b/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/as/RepairingTokenBuffer.java
index ceb1efc9f..299294d6a 100644
---
a/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/as/RepairingTokenBuffer.java
+++
b/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/as/RepairingTokenBuffer.java
@@ -116,6 +116,7 @@ public class RepairingTokenBuffer extends
BaseRepairingTokenBuffer implements IR
tokenBeforeSemicolon.getLine(),
tokenBeforeSemicolon.getColumn() + 1,
";");
+ semicolon.setSourcePath(tokenBeforeSemicolon.getSourcePath());
adjust++;
final int insertIndex = pos + adjust;
tokens.add(insertIndex, semicolon);