You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parsed code tree contains CodeBlockNode items, which should add an indentation level. Each node in the tree contains an Instruction which knows about its StartColumn, and each Instruction knows about a LogicalCodeLine, which knows about its StartLine.
Using the parsed code tree may seem like a good idea for the indenter, but there are complications:
A LogicalCodeLine can refer to more than 1 line of code
An Instruction may not be the only instruction on a code line; its StartColumn isn't necessarily its indentation level.
Indentation applies to code lines - not to logical code lines, not to instructions. Should the code tree be modified to accomodate this? Or should we find another way of determining code indentation?
The text was updated successfully, but these errors were encountered:
The parsed code tree contains
CodeBlockNode
items, which should add an indentation level. Each node in the tree contains anInstruction
which knows about itsStartColumn
, and eachInstruction
knows about aLogicalCodeLine
, which knows about itsStartLine
.Using the parsed code tree may seem like a good idea for the indenter, but there are complications:
LogicalCodeLine
can refer to more than 1 line of codeInstruction
may not be the only instruction on a code line; itsStartColumn
isn't necessarily its indentation level.Indentation applies to code lines - not to logical code lines, not to instructions. Should the code tree be modified to accomodate this? Or should we find another way of determining code indentation?
The text was updated successfully, but these errors were encountered: