| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/parser.h" | 5 #include "vm/parser.h" |
| 6 | 6 |
| 7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
| 8 #include "vm/bigint_operations.h" | 8 #include "vm/bigint_operations.h" |
| 9 #include "vm/class_finalizer.h" | 9 #include "vm/class_finalizer.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| 11 #include "vm/compiler_stats.h" | 11 #include "vm/compiler_stats.h" |
| 12 #include "vm/dart_api_impl.h" | 12 #include "vm/dart_api_impl.h" |
| 13 #include "vm/dart_entry.h" | 13 #include "vm/dart_entry.h" |
| 14 #include "vm/flags.h" | 14 #include "vm/flags.h" |
| 15 #include "vm/growable_array.h" | 15 #include "vm/growable_array.h" |
| 16 #include "vm/longjump.h" | 16 #include "vm/longjump.h" |
| 17 #include "vm/native_entry.h" | 17 #include "vm/native_entry.h" |
| 18 #include "vm/object.h" | 18 #include "vm/object.h" |
| 19 #include "vm/object_store.h" | 19 #include "vm/object_store.h" |
| 20 #include "vm/resolver.h" | 20 #include "vm/resolver.h" |
| 21 #include "vm/scopes.h" | 21 #include "vm/scopes.h" |
| 22 #include "vm/stack_frame.h" |
| 22 #include "vm/symbols.h" | 23 #include "vm/symbols.h" |
| 23 | 24 |
| 24 namespace dart { | 25 namespace dart { |
| 25 | 26 |
| 26 DEFINE_FLAG(bool, enable_asserts, false, "Enable assert statements."); | 27 DEFINE_FLAG(bool, enable_asserts, false, "Enable assert statements."); |
| 27 DEFINE_FLAG(bool, enable_type_checks, false, "Enable type checks."); | 28 DEFINE_FLAG(bool, enable_type_checks, false, "Enable type checks."); |
| 28 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations."); | 29 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations."); |
| 29 DEFINE_FLAG(bool, warning_as_error, false, "Treat warnings as errors."); | 30 DEFINE_FLAG(bool, warning_as_error, false, "Treat warnings as errors."); |
| 30 DEFINE_FLAG(bool, silent_warnings, false, "Silence warnings."); | 31 DEFINE_FLAG(bool, silent_warnings, false, "Silence warnings."); |
| 31 | 32 |
| (...skipping 9921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9953 void Parser::SkipQualIdent() { | 9954 void Parser::SkipQualIdent() { |
| 9954 ASSERT(IsIdentifier()); | 9955 ASSERT(IsIdentifier()); |
| 9955 ConsumeToken(); | 9956 ConsumeToken(); |
| 9956 if (CurrentToken() == Token::kPERIOD) { | 9957 if (CurrentToken() == Token::kPERIOD) { |
| 9957 ConsumeToken(); // Consume the kPERIOD token. | 9958 ConsumeToken(); // Consume the kPERIOD token. |
| 9958 ExpectIdentifier("identifier expected after '.'"); | 9959 ExpectIdentifier("identifier expected after '.'"); |
| 9959 } | 9960 } |
| 9960 } | 9961 } |
| 9961 | 9962 |
| 9962 } // namespace dart | 9963 } // namespace dart |
| OLD | NEW |