| 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 | 5 |
| 6 /** | 6 /** |
| 7 * If true, print a warning for each method that was resolved, but not | 7 * If true, print a warning for each method that was resolved, but not |
| 8 * compiled. | 8 * compiled. |
| 9 */ | 9 */ |
| 10 const bool REPORT_EXCESS_RESOLUTION = false; | 10 const bool REPORT_EXCESS_RESOLUTION = false; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 Compiler([this.tracer = const Tracer(), | 181 Compiler([this.tracer = const Tracer(), |
| 182 this.enableTypeAssertions = false, | 182 this.enableTypeAssertions = false, |
| 183 this.enableUserAssertions = false, | 183 this.enableUserAssertions = false, |
| 184 this.enableMinification = false, | 184 this.enableMinification = false, |
| 185 bool emitJavascript = true, | 185 bool emitJavascript = true, |
| 186 bool generateSourceMap = true, | 186 bool generateSourceMap = true, |
| 187 bool cutDeclarationTypes = false]) | 187 bool cutDeclarationTypes = false]) |
| 188 : libraries = new Map<String, LibraryElement>(), | 188 : libraries = new Map<String, LibraryElement>(), |
| 189 world = new World(), | 189 world = new World(), |
| 190 progress = new Stopwatch.start() { | 190 progress = new Stopwatch() { |
| 191 progress.start(); |
| 191 namer = new Namer(this); | 192 namer = new Namer(this); |
| 192 constantHandler = new ConstantHandler(this); | 193 constantHandler = new ConstantHandler(this); |
| 193 scanner = new ScannerTask(this); | 194 scanner = new ScannerTask(this); |
| 194 dietParser = new DietParserTask(this); | 195 dietParser = new DietParserTask(this); |
| 195 parser = new ParserTask(this); | 196 parser = new ParserTask(this); |
| 196 patchParser = new PatchParserTask(this); | 197 patchParser = new PatchParserTask(this); |
| 197 validator = new TreeValidatorTask(this); | 198 validator = new TreeValidatorTask(this); |
| 198 resolver = new ResolverTask(this); | 199 resolver = new ResolverTask(this); |
| 199 closureToClassMapper = new closureMapping.ClosureTask(this); | 200 closureToClassMapper = new closureMapping.ClosureTask(this); |
| 200 checker = new TypeCheckerTask(this); | 201 checker = new TypeCheckerTask(this); |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 final endOffset = end.charOffset + end.slowCharCount; | 917 final endOffset = end.charOffset + end.slowCharCount; |
| 917 | 918 |
| 918 // [begin] and [end] might be the same for the same empty token. This | 919 // [begin] and [end] might be the same for the same empty token. This |
| 919 // happens for instance when scanning '$$'. | 920 // happens for instance when scanning '$$'. |
| 920 assert(endOffset >= beginOffset); | 921 assert(endOffset >= beginOffset); |
| 921 return f(beginOffset, endOffset); | 922 return f(beginOffset, endOffset); |
| 922 } | 923 } |
| 923 | 924 |
| 924 String toString() => 'SourceSpan($uri, $begin, $end)'; | 925 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 925 } | 926 } |
| OLD | NEW |