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

Side by Side Diff: dart/lib/compiler/implementation/scanner/scanner.dart

Issue 10880040: Support abstract getters without parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update language.status Created 8 years, 4 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 | Annotate | Revision Log
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 interface Scanner { 5 interface Scanner {
6 Token tokenize(); 6 Token tokenize();
7 } 7 }
8 8
9 /** 9 /**
10 * Common base class for a Dart scanner. 10 * Common base class for a Dart scanner.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 * the scanner. For example, if the current byte offset is 10, 58 * the scanner. For example, if the current byte offset is 10,
59 * [:asciiString(0,-1):] creates an ASCII SourceString whose content is found 59 * [:asciiString(0,-1):] creates an ASCII SourceString whose content is found
60 * at the [0,9[ byte interval of the source text. 60 * at the [0,9[ byte interval of the source text.
61 */ 61 */
62 abstract T asciiString(int start, int offset); 62 abstract T asciiString(int start, int offset);
63 abstract T utf8String(int start, int offset); 63 abstract T utf8String(int start, int offset);
64 abstract Token firstToken(); 64 abstract Token firstToken();
65 abstract Token previousToken(); 65 abstract Token previousToken();
66 abstract void beginToken(); 66 abstract void beginToken();
67 abstract void addToCharOffset(int offset); 67 abstract void addToCharOffset(int offset);
68 abstract int get charOffset(); 68 abstract int get charOffset;
69 abstract int get byteOffset(); 69 abstract int get byteOffset;
70 abstract void appendBeginGroup(PrecedenceInfo info, String value); 70 abstract void appendBeginGroup(PrecedenceInfo info, String value);
71 abstract int appendEndGroup(PrecedenceInfo info, String value, int openKind); 71 abstract int appendEndGroup(PrecedenceInfo info, String value, int openKind);
72 abstract void appendGt(PrecedenceInfo info, String value); 72 abstract void appendGt(PrecedenceInfo info, String value);
73 abstract void appendGtGt(PrecedenceInfo info, String value); 73 abstract void appendGtGt(PrecedenceInfo info, String value);
74 abstract void appendGtGtGt(PrecedenceInfo info, String value); 74 abstract void appendGtGtGt(PrecedenceInfo info, String value);
75 abstract void appendComment(); 75 abstract void appendComment();
76 76
77 /** 77 /**
78 * We call this method to discard '<' from the "grouping" stack 78 * We call this method to discard '<' from the "grouping" stack
79 * (maintained by subclasses). 79 * (maintained by subclasses).
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 charOffset); 827 charOffset);
828 } 828 }
829 } 829 }
830 830
831 class MalformedInputException { 831 class MalformedInputException {
832 final String message; 832 final String message;
833 final position; 833 final position;
834 MalformedInputException(this.message, this.position); 834 MalformedInputException(this.message, this.position);
835 toString() => message; 835 toString() => message;
836 } 836 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/scanner/parser.dart ('k') | dart/lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698