Index: runtime/vm/ast.cc |
diff --git a/runtime/vm/ast.cc b/runtime/vm/ast.cc |
index 2deefa29ca5166210d6db5ba98e2943765b116f7..69e1e5bfd2c7b6e54934c152171cc0416b413eae 100644 |
--- a/runtime/vm/ast.cc |
+++ b/runtime/vm/ast.cc |
@@ -91,7 +91,7 @@ void ArgumentListNode::VisitChildren(AstNodeVisitor* visitor) const { |
} |
-LetNode::LetNode(intptr_t token_pos) |
+LetNode::LetNode(TokenDescriptor token_pos) |
: AstNode(token_pos), |
vars_(1), |
initializers_(1), |
@@ -102,7 +102,7 @@ LocalVariable* LetNode::AddInitializer(AstNode* node) { |
initializers_.Add(node); |
char name[64]; |
OS::SNPrint(name, sizeof(name), ":lt%" Pd "_%" Pd "", |
- token_pos(), vars_.length()); |
+ token_pos().value(), vars_.length()); |
Ivan Posva
2016/02/01 17:16:52
value() or ToCString()?
Cutch
2016/02/02 18:00:20
ToCString(). Done here and elsewhere.
|
LocalVariable* temp_var = |
new LocalVariable(token_pos(), |
String::ZoneHandle(Symbols::New(name)), |
@@ -433,7 +433,7 @@ const Instance* BinaryOpNode::EvalConstExpr() const { |
} |
-AstNode* UnaryOpNode::UnaryOpOrLiteral(intptr_t token_pos, |
+AstNode* UnaryOpNode::UnaryOpOrLiteral(TokenDescriptor token_pos, |
Token::Kind kind, |
AstNode* operand) { |
AstNode* new_operand = operand->ApplyUnaryOp(kind); |