Index: runtime/vm/ast.h |
diff --git a/runtime/vm/ast.h b/runtime/vm/ast.h |
index 01ae0cf1544a072769676c3d7e6b402ea7186033..d1e62c9326508ef56679e930195fa0ae2f86dd6f 100644 |
--- a/runtime/vm/ast.h |
+++ b/runtime/vm/ast.h |
@@ -99,7 +99,8 @@ class AstNode : public ZoneAllocated { |
public: |
explicit AstNode(intptr_t token_pos) |
: token_pos_(token_pos) { |
- ASSERT(Scanner::ValidSourcePosition(token_pos_)); |
+ ASSERT(!Token::IsClassifying(token_pos_) || |
+ (token_pos_ == ClassifyingTokenPositions::kMethodExtractor)); |
} |
virtual ~AstNode() { } |