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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 1574213005: Report missing semicolons after function declarations (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/constant_propagator.h" 10 #include "vm/constant_propagator.h"
(...skipping 3671 matching lines...) Expand 10 before | Expand all | Expand 10 after
3682 const Library& library = Library::Handle(Z, cls.library()); 3682 const Library& library = Library::Handle(Z, cls.library());
3683 const int num_params = 3683 const int num_params =
3684 NativeArguments::ParameterCountForResolution(function()); 3684 NativeArguments::ParameterCountForResolution(function());
3685 bool auto_setup_scope = true; 3685 bool auto_setup_scope = true;
3686 NativeFunction native_function = NativeEntry::ResolveNative( 3686 NativeFunction native_function = NativeEntry::ResolveNative(
3687 library, native_name(), num_params, &auto_setup_scope); 3687 library, native_name(), num_params, &auto_setup_scope);
3688 if (native_function == NULL) { 3688 if (native_function == NULL) {
3689 Report::MessageF(Report::kError, 3689 Report::MessageF(Report::kError,
3690 Script::Handle(function().script()), 3690 Script::Handle(function().script()),
3691 function().token_pos(), 3691 function().token_pos(),
3692 Report::AtLocation,
3692 "native function '%s' (%" Pd " arguments) cannot be found", 3693 "native function '%s' (%" Pd " arguments) cannot be found",
3693 native_name().ToCString(), 3694 native_name().ToCString(),
3694 function().NumParameters()); 3695 function().NumParameters());
3695 } 3696 }
3696 set_native_c_function(native_function); 3697 set_native_c_function(native_function);
3697 function().SetIsNativeAutoSetupScope(auto_setup_scope); 3698 function().SetIsNativeAutoSetupScope(auto_setup_scope);
3698 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); 3699 Dart_NativeEntryResolver resolver = library.native_entry_resolver();
3699 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); 3700 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver);
3700 set_is_bootstrap_native(is_bootstrap_native); 3701 set_is_bootstrap_native(is_bootstrap_native);
3701 } 3702 }
3702 3703
3703 #undef __ 3704 #undef __
3704 3705
3705 } // namespace dart 3706 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698