[libSyntax] Make a typealias to unsigned to represent SyntaxNodeIds

This commit is contained in:
Alex Hoppen
2018-07-19 13:57:08 -07:00
parent 419ba044f1
commit c8226d1507
7 changed files with 21 additions and 19 deletions

View File

@@ -960,7 +960,7 @@ public:
class ColoredSyntaxTreePrinter : public SyntaxVisitor {
llvm::raw_ostream &OS;
std::map<unsigned, SyntaxClassification> TokenClassifications;
std::map<SyntaxNodeId, SyntaxClassification> TokenClassifications;
/// The name of the tag that is currently open
StringRef CurrentTag;
@@ -972,7 +972,7 @@ class ColoredSyntaxTreePrinter : public SyntaxVisitor {
public:
ColoredSyntaxTreePrinter(
llvm::raw_ostream &OS,
std::map<unsigned, SyntaxClassification> TokenClassifications)
std::map<SyntaxNodeId, SyntaxClassification> TokenClassifications)
: OS(OS), TokenClassifications(TokenClassifications) {}
private: