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

Unified Diff: runtime/vm/parser.cc

Issue 246173002: Revert "Mark private functions in dart:* that are native or constructors as not visible (omitted fr… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | « runtime/vm/parser.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 8c495d3c3584f0a3efcac47fbfff43fdc6801510..73cee00290ac69ebd3edcca48cb7536836d3b06d 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -3396,14 +3396,6 @@ void Parser::ParseMethodOrConstructor(ClassDesc* members, MemberDesc* method) {
func.set_result_type(*method->type);
func.set_end_token_pos(method_end_pos);
func.set_is_redirecting(is_redirecting);
- if (method->has_native && library_.is_dart_scheme() &&
- library_.IsPrivate(*method->name)) {
- func.set_is_visible(false);
- }
- if (method->IsFactoryOrConstructor() && library_.is_dart_scheme() &&
- library_.IsPrivate(*method->name)) {
- func.set_is_visible(false);
- }
if (method->metadata_pos > 0) {
library_.AddFunctionMetadata(func, method->metadata_pos);
}
@@ -4089,9 +4081,6 @@ void Parser::AddImplicitConstructor(const Class& cls) {
cls,
cls.token_pos()));
ctor.set_end_token_pos(ctor.token_pos());
- if (library_.is_dart_scheme() && library_.IsPrivate(ctor_name)) {
- ctor.set_is_visible(false);
- }
ParamList params;
// Add implicit 'this' parameter.
@@ -4768,9 +4757,6 @@ void Parser::ParseTopLevelFunction(TopLevel* top_level,
decl_begin_pos));
func.set_result_type(result_type);
func.set_end_token_pos(function_end_pos);
- if (is_native && library_.is_dart_scheme() && library_.IsPrivate(func_name)) {
- func.set_is_visible(false);
- }
AddFormalParamsToFunction(&params, func);
top_level->functions.Add(func);
if (!is_patch) {
@@ -4905,10 +4891,6 @@ void Parser::ParseTopLevelAccessor(TopLevel* top_level,
decl_begin_pos));
func.set_result_type(result_type);
func.set_end_token_pos(accessor_end_pos);
- if (is_native && library_.is_dart_scheme() &&
- library_.IsPrivate(accessor_name)) {
- func.set_is_visible(false);
- }
AddFormalParamsToFunction(&params, func);
top_level->functions.Add(func);
if (!is_patch) {
« no previous file with comments | « runtime/vm/parser.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698