diff --git a/packages/Ohm-Core.package/OhmNode.class/instance/enclosingRule.st b/packages/Ohm-Core.package/OhmNode.class/instance/enclosingRule.st index bf62366..9dbc6ae 100644 --- a/packages/Ohm-Core.package/OhmNode.class/instance/enclosingRule.st +++ b/packages/Ohm-Core.package/OhmNode.class/instance/enclosingRule.st @@ -3,6 +3,7 @@ enclosingRule | aParent | aParent := self parent. + aParent ifNil: [ ^ self ]. [aParent ruleName = OhmParsingExpression listRuleIdentifier] whileTrue: [ aParent := aParent parent]. ^ aParent \ No newline at end of file diff --git a/packages/Ohm-Core.package/OhmNode.class/methodProperties.json b/packages/Ohm-Core.package/OhmNode.class/methodProperties.json index e07e36f..3c26c81 100644 --- a/packages/Ohm-Core.package/OhmNode.class/methodProperties.json +++ b/packages/Ohm-Core.package/OhmNode.class/methodProperties.json @@ -6,7 +6,7 @@ "calculateSourceMap" : "pre 7/13/2020 10:41", "children" : "pre 1/5/2015 16:06", "children:" : "pre 1/5/2015 16:06", - "enclosingRule" : "pre 7/13/2020 11:20", + "enclosingRule" : "fau 7/16/2020 16:17", "grammar" : "pre 1/5/2015 15:38", "grammar:" : "pre 1/5/2015 15:38", "initialize" : "pre 11/21/2017 15:29", diff --git a/packages/Ohm-Core.package/OhmSourceMapping.class/instance/terminalExpression..st b/packages/Ohm-Core.package/OhmSourceMapping.class/instance/terminalExpression..st index b5f178c..91a111d 100644 --- a/packages/Ohm-Core.package/OhmSourceMapping.class/instance/terminalExpression..st +++ b/packages/Ohm-Core.package/OhmSourceMapping.class/instance/terminalExpression..st @@ -1,5 +1,6 @@ standard attributes terminalExpression: aNode - aNode interval start to: aNode interval end do: [:i | - (self sourceMap at: i) add: aNode] \ No newline at end of file + aNode interval start + to: (aNode interval end min: self sourceMap size) + do: [:i | (self sourceMap at: i) add: aNode] \ No newline at end of file diff --git a/packages/Ohm-Core.package/OhmSourceMapping.class/methodProperties.json b/packages/Ohm-Core.package/OhmSourceMapping.class/methodProperties.json index 36868fc..00c0d5b 100644 --- a/packages/Ohm-Core.package/OhmSourceMapping.class/methodProperties.json +++ b/packages/Ohm-Core.package/OhmSourceMapping.class/methodProperties.json @@ -6,4 +6,4 @@ "defaultExpression:" : "pre 7/13/2020 11:02", "sourceMap" : "pre 4/29/2020 10:20", "sourceMap:" : "pre 4/29/2020 10:20", - "terminalExpression:" : "pre 7/13/2020 11:01" } } + "terminalExpression:" : "fau 7/14/2020 15:24" } }