mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Parsing, semantic analysis, and lowering for and, or, not. (#2897)
Lowering for `and` and `or` is not yet complete because `Branch` lowering isn't done yet.
This commit is contained in:
@@ -202,6 +202,13 @@ auto SemanticsContext::ImplicitAsRequired(ParseTree::Node parse_node,
|
||||
return output_value_id;
|
||||
}
|
||||
|
||||
auto SemanticsContext::ImplicitAsBool(ParseTree::Node parse_node,
|
||||
SemanticsNodeId value_id)
|
||||
-> SemanticsNodeId {
|
||||
return ImplicitAsRequired(parse_node, value_id,
|
||||
CanonicalizeType(SemanticsNodeId::BuiltinBoolType));
|
||||
}
|
||||
|
||||
auto SemanticsContext::ImplicitAsImpl(SemanticsNodeId value_id,
|
||||
SemanticsTypeId as_type_id,
|
||||
SemanticsNodeId* output_value_id)
|
||||
|
||||
Reference in New Issue
Block a user