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

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

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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/regexp_interpreter.cc ('k') | runtime/vm/regexp_parser.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 RUNTIME_VM_REGEXP_PARSER_H_ 5 #ifndef RUNTIME_VM_REGEXP_PARSER_H_
6 #define RUNTIME_VM_REGEXP_PARSER_H_ 6 #define RUNTIME_VM_REGEXP_PARSER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/regexp_ast.h" 10 #include "vm/regexp_ast.h"
(...skipping 24 matching lines...) Expand all
35 35
36 Zone* zone() const { return zone_; } 36 Zone* zone() const { return zone_; }
37 37
38 Zone* zone_; 38 Zone* zone_;
39 bool pending_empty_; 39 bool pending_empty_;
40 ZoneGrowableArray<uint16_t>* characters_; 40 ZoneGrowableArray<uint16_t>* characters_;
41 GrowableArray<RegExpTree*> terms_; 41 GrowableArray<RegExpTree*> terms_;
42 GrowableArray<RegExpTree*> text_; 42 GrowableArray<RegExpTree*> text_;
43 GrowableArray<RegExpTree*> alternatives_; 43 GrowableArray<RegExpTree*> alternatives_;
44 #ifdef DEBUG 44 #ifdef DEBUG
45 enum { ADD_NONE, ADD_CHAR, ADD_TERM, ADD_ASSERT, ADD_ATOM } last_added_; 45 enum {ADD_NONE, ADD_CHAR, ADD_TERM, ADD_ASSERT, ADD_ATOM} last_added_;
46 #define LAST(x) last_added_ = x; 46 #define LAST(x) last_added_ = x;
47 #else 47 #else
48 #define LAST(x) 48 #define LAST(x)
49 #endif 49 #endif
50 }; 50 };
51 51
52 class RegExpParser : public ValueObject { 52 class RegExpParser : public ValueObject {
53 public: 53 public:
54 RegExpParser(const String& in, String* error, bool multiline_mode); 54 RegExpParser(const String& in, String* error, bool multiline_mode);
55 55
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 bool multiline_; 165 bool multiline_;
166 bool simple_; 166 bool simple_;
167 bool contains_anchor_; 167 bool contains_anchor_;
168 bool is_scanned_for_captures_; 168 bool is_scanned_for_captures_;
169 bool failed_; 169 bool failed_;
170 }; 170 };
171 171
172 } // namespace dart 172 } // namespace dart
173 173
174 #endif // RUNTIME_VM_REGEXP_PARSER_H_ 174 #endif // RUNTIME_VM_REGEXP_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/regexp_interpreter.cc ('k') | runtime/vm/regexp_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698