Adding 'is' to list of kotlin reserved keywords (#116299)
Co-authored-by: Gray Mackall <mackall@google.com>
This commit is contained in:
@@ -17,7 +17,7 @@ import 'dart/package_map.dart';
|
||||
/// They are escaped in Kotlin files.
|
||||
///
|
||||
/// https://kotlinlang.org/docs/keyword-reference.html
|
||||
const List<String> kReservedKotlinKeywords = <String>['when', 'in'];
|
||||
const List<String> kReservedKotlinKeywords = <String>['when', 'in', 'is'];
|
||||
|
||||
/// Expands templates in a directory to a destination. All files that must
|
||||
/// undergo template expansion should end with the '.tmpl' extension. All files
|
||||
|
||||
@@ -36,12 +36,12 @@ void main() {
|
||||
);
|
||||
|
||||
final Map<String, Object> context = <String, Object>{
|
||||
'androidIdentifier': 'in.when.there',
|
||||
'androidIdentifier': 'is.in.when.there',
|
||||
};
|
||||
template.render(destination, context);
|
||||
|
||||
final File destinationFile = destination.childFile(outputClass);
|
||||
expect(destinationFile.readAsStringSync(), equals('package `in`.`when`.there;'));
|
||||
expect(destinationFile.readAsStringSync(), equals('package `is`.`in`.`when`.there;'));
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user