Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Unified Diff: runtime/vm/parser.h

Issue 9107070: Proper handling of built-in identifiers (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 3300)
+++ runtime/vm/parser.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -142,6 +142,7 @@
void ExpectToken(Token::Kind token_expected);
void ExpectSemicolon();
void UnexpectedToken();
+ String* ExpectTypeIdentifier(const char* msg);
String* ExpectIdentifier(const char* msg);
bool IsLiteral(const char* literal);
@@ -324,6 +325,7 @@
SequenceNode* ParseNestedStatement(bool parsing_loop_body,
SourceLabel* label);
void ParseStatementSequence();
+ bool IsIdentifier();
bool IsFunctionTypeAliasName();
bool IsTypeParameter();
bool IsOptionalType();
@@ -378,6 +380,7 @@
void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name);
RawClass* TypeParametersScopeClass();
bool IsInstantiatorRequired() const;
+ bool IsDefinedInLexicalScope(const String& ident);
bool ResolveIdentInLocalScope(intptr_t ident_pos,
const String &ident,
AstNode** node);
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698