| 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/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 3327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3338 | 3338 |
| 3339 | 3339 |
| 3340 void Class::set_token_pos(TokenPosition token_pos) const { | 3340 void Class::set_token_pos(TokenPosition token_pos) const { |
| 3341 ASSERT(!token_pos.IsClassifying()); | 3341 ASSERT(!token_pos.IsClassifying()); |
| 3342 StoreNonPointer(&raw_ptr()->token_pos_, token_pos); | 3342 StoreNonPointer(&raw_ptr()->token_pos_, token_pos); |
| 3343 } | 3343 } |
| 3344 | 3344 |
| 3345 | 3345 |
| 3346 TokenPosition Class::ComputeEndTokenPos() const { | 3346 TokenPosition Class::ComputeEndTokenPos() const { |
| 3347 // Return the begin token for synthetic classes. | 3347 // Return the begin token for synthetic classes. |
| 3348 if (IsMixinApplication() || IsTopLevel()) { | 3348 if (is_synthesized_class() || IsMixinApplication() || IsTopLevel()) { |
| 3349 return token_pos(); | 3349 return token_pos(); |
| 3350 } | 3350 } |
| 3351 const Script& scr = Script::Handle(script()); | 3351 const Script& scr = Script::Handle(script()); |
| 3352 ASSERT(!scr.IsNull()); | 3352 ASSERT(!scr.IsNull()); |
| 3353 const TokenStream& tkns = TokenStream::Handle(scr.tokens()); | 3353 const TokenStream& tkns = TokenStream::Handle(scr.tokens()); |
| 3354 TokenStream::Iterator tkit(tkns, | 3354 TokenStream::Iterator tkit(tkns, |
| 3355 token_pos(), | 3355 token_pos(), |
| 3356 TokenStream::Iterator::kNoNewlines); | 3356 TokenStream::Iterator::kNoNewlines); |
| 3357 intptr_t level = 0; | 3357 intptr_t level = 0; |
| 3358 while (tkit.CurrentTokenKind() != Token::kEOS) { | 3358 while (tkit.CurrentTokenKind() != Token::kEOS) { |
| (...skipping 18517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21876 return UserTag::null(); | 21876 return UserTag::null(); |
| 21877 } | 21877 } |
| 21878 | 21878 |
| 21879 | 21879 |
| 21880 const char* UserTag::ToCString() const { | 21880 const char* UserTag::ToCString() const { |
| 21881 const String& tag_label = String::Handle(label()); | 21881 const String& tag_label = String::Handle(label()); |
| 21882 return tag_label.ToCString(); | 21882 return tag_label.ToCString(); |
| 21883 } | 21883 } |
| 21884 | 21884 |
| 21885 } // namespace dart | 21885 } // namespace dart |
| OLD | NEW |