| OLD | NEW |
| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.constant; | 8 library engine.constant; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 /** | 309 /** |
| 310 * RegExp that validates a non-empty non-private symbol. From sdk/lib/internal
/symbol.dart. | 310 * RegExp that validates a non-empty non-private symbol. From sdk/lib/internal
/symbol.dart. |
| 311 */ | 311 */ |
| 312 static RegExp _PUBLIC_SYMBOL_PATTERN = new RegExp("^(?:${ConstantValueComputer
._OPERATOR_RE}\$|${_PUBLIC_IDENTIFIER_RE}(?:=?\$|[.](?!\$)))+?\$"); | 312 static RegExp _PUBLIC_SYMBOL_PATTERN = new RegExp("^(?:${ConstantValueComputer
._OPERATOR_RE}\$|${_PUBLIC_IDENTIFIER_RE}(?:=?\$|[.](?!\$)))+?\$"); |
| 313 | 313 |
| 314 /** | 314 /** |
| 315 * Determine whether the given string is a valid name for a public symbol (i.e
. whether it is | 315 * Determine whether the given string is a valid name for a public symbol (i.e
. whether it is |
| 316 * allowed for a call to the Symbol constructor). | 316 * allowed for a call to the Symbol constructor). |
| 317 */ | 317 */ |
| 318 static bool isValidPublicSymbol(String name) => name.isEmpty || new JavaPatter
nMatcher(_PUBLIC_SYMBOL_PATTERN, name).matches(); | 318 static bool isValidPublicSymbol(String name) => name.isEmpty || name == "void"
|| new JavaPatternMatcher(_PUBLIC_SYMBOL_PATTERN, name).matches(); |
| 319 | 319 |
| 320 /** | 320 /** |
| 321 * The type provider used to access the known types. | 321 * The type provider used to access the known types. |
| 322 */ | 322 */ |
| 323 TypeProvider typeProvider; | 323 TypeProvider typeProvider; |
| 324 | 324 |
| 325 /** | 325 /** |
| 326 * The object used to find constant variables and constant constructor invocat
ions in the | 326 * The object used to find constant variables and constant constructor invocat
ions in the |
| 327 * compilation units that were added. | 327 * compilation units that were added. |
| 328 */ | 328 */ |
| (...skipping 4635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4964 ErrorResult _error(AstNode node, ErrorCode code) => new ErrorResult.con1(node,
code); | 4964 ErrorResult _error(AstNode node, ErrorCode code) => new ErrorResult.con1(node,
code); |
| 4965 | 4965 |
| 4966 /** | 4966 /** |
| 4967 * Return a result object representing the given value. | 4967 * Return a result object representing the given value. |
| 4968 * | 4968 * |
| 4969 * @param value the value to be represented as a result object | 4969 * @param value the value to be represented as a result object |
| 4970 * @return a result object representing the given value | 4970 * @return a result object representing the given value |
| 4971 */ | 4971 */ |
| 4972 ValidResult _valueOf(DartObjectImpl value) => new ValidResult(value); | 4972 ValidResult _valueOf(DartObjectImpl value) => new ValidResult(value); |
| 4973 } | 4973 } |
| OLD | NEW |