McStasMcXtrace / mccode-antlr

McCode grammar implemented with ANTLR4
1 stars 0 forks source link

[Fix] dangling component reference check in Instr.split #40

Closed g5t closed 11 months ago

g5t commented 11 months ago

Now with extended tests to ensure that components later in a split-instrument are still positioned relatively.

The dangling-reference check was too-restrictive in checking that second.components contained the referenced component Instance. The check has been modified to ensure

  1. the component instance name is present in the second instrument
  2. if it is, that the reference to the second-instrument named component is used