mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 16:01:05 +01:00
Make inst namer and stringify print `Core.Char` and `Core.String` as `char` and `str` respectively. Plus a few cleanups.
This commit is contained in:
@@ -114,6 +114,11 @@ auto HandleExprInPostfix(Context& context) -> void {
|
||||
context.PushState(state);
|
||||
break;
|
||||
}
|
||||
case Lex::TokenKind::Char: {
|
||||
context.AddLeafNode(NodeKind::CharTypeLiteral, context.Consume());
|
||||
context.PushState(state);
|
||||
break;
|
||||
}
|
||||
case Lex::TokenKind::IntTypeLiteral: {
|
||||
context.AddLeafNode(NodeKind::IntTypeLiteral, context.Consume());
|
||||
context.PushState(state);
|
||||
@@ -129,7 +134,7 @@ auto HandleExprInPostfix(Context& context) -> void {
|
||||
context.PushState(state);
|
||||
break;
|
||||
}
|
||||
case Lex::TokenKind::StringTypeLiteral: {
|
||||
case Lex::TokenKind::Str: {
|
||||
context.AddLeafNode(NodeKind::StringTypeLiteral, context.Consume());
|
||||
context.PushState(state);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user