Skip to content

Commit

Permalink
wip: adjusted focus position of different clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Aug 27, 2024
1 parent 055a9ad commit adfc195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions M2/Macaulay2/d/convertr.d
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ export convert0(e:ParseTree):Code := (
else if n.newinitializer == dummyTree
then Code(newOfCode( convert(n.newclass), unseq(c:=convert0(n.newparent)), combinePositionR(n.newToken.position, codePosition(c))))
else Code(newOfFromCode(convert(n.newclass), convert(n.newparent), unseq(c:=convert0(n.newinitializer)), combinePositionR(n.newToken.position, codePosition(c)))))
is i:IfThen do Code(ifCode(convert(i.predicate), unseq(c:=convert0(i.thenClause)), NullCode, combinePositionR(i.ifToken.position, codePosition(c))))
is i:IfThenElse do Code(ifCode(convert(i.predicate), convert(i.thenClause), unseq(c:=convert0(i.elseClause)), combinePositionR(i.ifToken.position, codePosition(c))))
is i:IfThen do Code(ifCode(convert(i.predicate), unseq(c:=convert0(i.thenClause)), NullCode, combinePositionL(i.ifToken.position, codePosition(c))))
is i:IfThenElse do Code(ifCode(convert(i.predicate), convert(i.thenClause), unseq(c:=convert0(i.elseClause)), combinePositionL(i.ifToken.position, codePosition(c))))
is token:Token do (
var := token.entry;
wrd := token.word;
Expand Down

0 comments on commit adfc195

Please sign in to comment.