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

Side by Side Diff: runtime/vm/object.h

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/intermediate_language.cc ('k') | runtime/vm/object.cc » ('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) 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 4799 matching lines...) Expand 10 before | Expand all | Expand 10 after
4810 RawString* FormatMessage() const; 4810 RawString* FormatMessage() const;
4811 4811
4812 static intptr_t InstanceSize() { 4812 static intptr_t InstanceSize() {
4813 return RoundedAllocationSize(sizeof(RawLanguageError)); 4813 return RoundedAllocationSize(sizeof(RawLanguageError));
4814 } 4814 }
4815 4815
4816 // A null script means no source and a negative token_pos means no position. 4816 // A null script means no source and a negative token_pos means no position.
4817 static RawLanguageError* NewFormatted(const Error& prev_error, 4817 static RawLanguageError* NewFormatted(const Error& prev_error,
4818 const Script& script, 4818 const Script& script,
4819 intptr_t token_pos, 4819 intptr_t token_pos,
4820 bool report_after_token,
4820 Report::Kind kind, 4821 Report::Kind kind,
4821 Heap::Space space, 4822 Heap::Space space,
4822 const char* format, ...) 4823 const char* format, ...)
4823 PRINTF_ATTRIBUTE(6, 7); 4824 PRINTF_ATTRIBUTE(7, 8);
4824 4825
4825 static RawLanguageError* NewFormattedV(const Error& prev_error, 4826 static RawLanguageError* NewFormattedV(const Error& prev_error,
4826 const Script& script, 4827 const Script& script,
4827 intptr_t token_pos, 4828 intptr_t token_pos,
4829 bool report_after_token,
4828 Report::Kind kind, 4830 Report::Kind kind,
4829 Heap::Space space, 4831 Heap::Space space,
4830 const char* format, va_list args); 4832 const char* format, va_list args);
4831 4833
4832 static RawLanguageError* New(const String& formatted_message, 4834 static RawLanguageError* New(const String& formatted_message,
4833 Report::Kind kind = Report::kError, 4835 Report::Kind kind = Report::kError,
4834 Heap::Space space = Heap::kNew); 4836 Heap::Space space = Heap::kNew);
4835 4837
4836 virtual const char* ToErrorCString() const; 4838 virtual const char* ToErrorCString() const;
4837 4839
4838 private: 4840 private:
4839 RawError* previous_error() const { 4841 RawError* previous_error() const {
4840 return raw_ptr()->previous_error_; 4842 return raw_ptr()->previous_error_;
4841 } 4843 }
4842 void set_previous_error(const Error& value) const; 4844 void set_previous_error(const Error& value) const;
4843 4845
4844 RawScript* script() const { return raw_ptr()->script_; } 4846 RawScript* script() const { return raw_ptr()->script_; }
4845 void set_script(const Script& value) const; 4847 void set_script(const Script& value) const;
4846 4848
4847 intptr_t token_pos() const { return raw_ptr()->token_pos_; } 4849 intptr_t token_pos() const { return raw_ptr()->token_pos_; }
4848 void set_token_pos(intptr_t value) const; 4850 void set_token_pos(intptr_t value) const;
4849 4851
4852 bool report_after_token() const { return raw_ptr()->report_after_token_; }
4853 void set_report_after_token(bool value);
4854
4850 void set_kind(uint8_t value) const; 4855 void set_kind(uint8_t value) const;
4851 4856
4852 RawString* message() const { return raw_ptr()->message_; } 4857 RawString* message() const { return raw_ptr()->message_; }
4853 void set_message(const String& value) const; 4858 void set_message(const String& value) const;
4854 4859
4855 RawString* formatted_message() const { return raw_ptr()->formatted_message_; } 4860 RawString* formatted_message() const { return raw_ptr()->formatted_message_; }
4856 void set_formatted_message(const String& value) const; 4861 void set_formatted_message(const String& value) const;
4857 4862
4858 static RawLanguageError* New(); 4863 static RawLanguageError* New();
4859 4864
(...skipping 3383 matching lines...) Expand 10 before | Expand all | Expand 10 after
8243 8248
8244 8249
8245 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8250 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8246 intptr_t index) { 8251 intptr_t index) {
8247 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8252 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8248 } 8253 }
8249 8254
8250 } // namespace dart 8255 } // namespace dart
8251 8256
8252 #endif // VM_OBJECT_H_ 8257 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698