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 /// Library to generate code that can initialize the `StaticConfiguration` in | 5 /// Library to generate code that can initialize the `StaticConfiguration` in |
6 /// `package:smoke/static.dart`. | 6 /// `package:smoke/static.dart`. |
7 /// | 7 /// |
8 /// This library doesn't have any specific logic to extract information from | 8 /// This library doesn't have any specific logic to extract information from |
9 /// Dart source code. To extract code using the analyzer, take a look at the | 9 /// Dart source code. To extract code using the analyzer, take a look at the |
10 /// `smoke.codegen.recorder` library. | 10 /// `smoke.codegen.recorder` library. |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 new RegExp('^(?:$_publicIdentifierRE(?:\$|[.](?!\$)))+?\$'); | 507 new RegExp('^(?:$_publicIdentifierRE(?:\$|[.](?!\$)))+?\$'); |
508 | 508 |
509 /// Operator names allowed as symbols. The name of the oeprators is the same as | 509 /// Operator names allowed as symbols. The name of the oeprators is the same as |
510 /// the operator itself except for unary minus, where the name is "unary-". | 510 /// the operator itself except for unary minus, where the name is "unary-". |
511 const String _operatorRE = | 511 const String _operatorRE = |
512 r'(?:[\-+*/%&|^]|\[\]=?|==|~/?|<[<=]?|>[>=]?|unary-)'; | 512 r'(?:[\-+*/%&|^]|\[\]=?|==|~/?|<[<=]?|>[>=]?|unary-)'; |
513 | 513 |
514 /// Pattern that matches public symbols. | 514 /// Pattern that matches public symbols. |
515 final RegExp _publicSymbolPattern = new RegExp( | 515 final RegExp _publicSymbolPattern = new RegExp( |
516 '^(?:$_operatorRE\$|$_publicIdentifierRE(?:=?\$|[.](?!\$)))+?\$'); | 516 '^(?:$_operatorRE\$|$_publicIdentifierRE(?:=?\$|[.](?!\$)))+?\$'); |
OLD | NEW |