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

Side by Side Diff: src/scanner-base.h

Issue 6196006: [Isolates] Make lint happy. (Closed)
Patch Set: Created 9 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 | « src/scanner.h ('k') | test/cctest/test-spaces.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 void Complete() { 363 void Complete() {
364 scanner_->TerminateLiteral(); 364 scanner_->TerminateLiteral();
365 complete_ = true; 365 complete_ = true;
366 } 366 }
367 367
368 private: 368 private:
369 JavaScriptScanner* scanner_; 369 JavaScriptScanner* scanner_;
370 bool complete_; 370 bool complete_;
371 }; 371 };
372 372
373 JavaScriptScanner(ScannerConstants* scanner_constants); 373 explicit JavaScriptScanner(ScannerConstants* scanner_constants);
374 374
375 // Returns the next token. 375 // Returns the next token.
376 Token::Value Next(); 376 Token::Value Next();
377 377
378 // Returns true if there was a line terminator before the peek'ed token. 378 // Returns true if there was a line terminator before the peek'ed token.
379 bool has_line_terminator_before_next() const { 379 bool has_line_terminator_before_next() const {
380 return has_line_terminator_before_next_; 380 return has_line_terminator_before_next_;
381 } 381 }
382 382
383 // Scans the input as a regular expression pattern, previous 383 // Scans the input as a regular expression pattern, previous
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 // keyword with the current prefix). 552 // keyword with the current prefix).
553 const char* keyword_; 553 const char* keyword_;
554 int counter_; 554 int counter_;
555 Token::Value keyword_token_; 555 Token::Value keyword_token_;
556 }; 556 };
557 557
558 558
559 } } // namespace v8::internal 559 } } // namespace v8::internal
560 560
561 #endif // V8_SCANNER_BASE_H_ 561 #endif // V8_SCANNER_BASE_H_
OLDNEW
« no previous file with comments | « src/scanner.h ('k') | test/cctest/test-spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698