mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 20:38:11 +00:00
Expand use of IndexBase (#2436)
Initially I'd added this to lexer, this includes parser and semantics. Also adds ComparableIndexBase to unify a few common cases where <> comparisons are supported. Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
1 parent
94cf343b05
commit
d50fef1736
9 files changed
+125
-254
No files matched your search
@@ -31,7 +31,7 @@ void SemanticsNode::Print(llvm::raw_ostream& out) const {
|
||||
#include "toolchain/semantics/semantics_node_kind.def"
|
||||
}
|
||||
out << ")";
|
||||
if (type_.id != -1) {
|
||||
if (type_.index != -1) {
|
||||
out << ": " << type_;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user