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

Unified Diff: vm/parser.cc

Issue 10808064: Rename some of the enum definitions inside classes to avoid conflict with the ObjectKind enum. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | « vm/parser.h ('k') | vm/parser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/parser.cc
===================================================================
--- vm/parser.cc (revision 9791)
+++ vm/parser.cc (working copy)
@@ -480,7 +480,7 @@
name = NULL;
redirect_name = NULL;
params.Clear();
- kind = RawFunction::kFunction;
+ kind = RawFunction::kRegularFunction;
}
bool IsConstructor() const {
return (kind == RawFunction::kConstructor) && !has_static;
@@ -690,7 +690,7 @@
SequenceNode* node_sequence = NULL;
Array& default_parameter_values = Array::Handle(isolate, Array::null());
switch (func.kind()) {
- case RawFunction::kFunction:
+ case RawFunction::kRegularFunction:
case RawFunction::kClosureFunction:
case RawFunction::kGetterFunction:
case RawFunction::kSetterFunction:
@@ -2469,7 +2469,7 @@
} else if (method->IsSetter()) {
function_kind = RawFunction::kSetterFunction;
} else {
- function_kind = RawFunction::kFunction;
+ function_kind = RawFunction::kRegularFunction;
}
Function& func = Function::Handle(
Function::New(*method->name,
@@ -2779,7 +2779,7 @@
ErrorMsg("operator overloading functions cannot be static");
}
operator_token = CurrentToken();
- member.kind = RawFunction::kFunction;
+ member.kind = RawFunction::kRegularFunction;
member.name_pos = this->TokenPos();
member.name =
&String::ZoneHandle(String::NewSymbol(Token::Str(operator_token)));
@@ -3556,7 +3556,7 @@
ErrorMsg("function block expected");
}
Function& func = Function::Handle(
- Function::New(func_name, RawFunction::kFunction,
+ Function::New(func_name, RawFunction::kRegularFunction,
is_static, false, function_pos));
func.set_result_type(result_type);
func.set_end_token_pos(function_end_pos);
@@ -3649,7 +3649,7 @@
void Parser::ParseLibraryName() {
TRACE_PARSER("ParseLibraryName");
- if ((script_.kind() == RawScript::kLibrary) &&
+ if ((script_.kind() == RawScript::kLibraryTag) &&
(CurrentToken() != Token::kLIBRARY)) {
// Handle error case early to get consistent error message.
ExpectToken(Token::kLIBRARY);
« no previous file with comments | « vm/parser.h ('k') | vm/parser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698