mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Along with starting to support ternary expressions, this commit also slightly changes SyntaxParsingContext APIs as follows: 1. Previously, makeNode() only supports node creation by using the nodes from the underlying syntax token array; this commit allows it to use the nodes from the pending syntax list as well. 2. This commit strictly limits that the pending syntax list should never contain token syntax node. 3. The node kind test shouldn't include unknown kinds. They are noisy.
17 KiB
17 KiB