Unverified Commit 57dc071f authored by gmackall's avatar gmackall Committed by GitHub

Adding 'is' to list of kotlin reserved keywords (#116299)

Co-authored-by: 's avatarGray Mackall <mackall@google.com>
parent de2a4249
......@@ -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;'));
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment