tint: Minor, miscellaneous cleanups

• Rename the 'friendly names' for the abstract numeric types so they match
  the style in the intrinsic table.
• Fix a comment so the literal type is correct.

Change-Id: Ie8d7363743c8c359340de3bc6db9a3456d299d34
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91021
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton 2022-05-19 23:05:40 +00:00 committed by Dawn LUCI CQ
parent eee9f88ba2
commit e9ce8326b7
3 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ TEST_F(ResolverVarLetTest, VarDeclWithConstructor) {
// struct S { i : i32; }
// alias A = S;
// fn F(){
// var i : i32 = 1;
// var i : i32 = 1i;
// var u : u32 = 1u;
// var f : f32 = 1.f;
// var b : bool = true;

View File

@ -34,7 +34,7 @@ bool AbstractFloat::Equals(const sem::Type& other) const {
}
std::string AbstractFloat::FriendlyName(const SymbolTable&) const {
return "AbstractFloat";
return "abstract-float";
}
} // namespace tint::sem

View File

@ -34,7 +34,7 @@ bool AbstractInt::Equals(const sem::Type& other) const {
}
std::string AbstractInt::FriendlyName(const SymbolTable&) const {
return "AbstractInt";
return "abstract-int";
}
} // namespace tint::sem