Split out and/or operator handling from infix. (#3480)

This is also doing the parse node split, allowing lower reliance in
formatter on the tokenized buffer (something that I may be touching more
due to import handling).
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2023-12-09 01:03:32 +00:00
1 parent b7d129b88c
commit c4864aa2ff
12 files changed
+151 -105

No files matched your search

+4 -1
View File
@@ -339,7 +339,10 @@ class NodeStack {
case Parse::NodeKind::ReturnType:
case Parse::NodeKind::SelfTypeNameExpr:
case Parse::NodeKind::SelfValueNameExpr:
case Parse::NodeKind::ShortCircuitOperand:
case Parse::NodeKind::ShortCircuitOperandAnd:
case Parse::NodeKind::ShortCircuitOperandOr:
case Parse::NodeKind::ShortCircuitOperatorAnd:
case Parse::NodeKind::ShortCircuitOperatorOr:
case Parse::NodeKind::StructFieldValue:
case Parse::NodeKind::StructLiteral:
case Parse::NodeKind::StructFieldType: