Patch rename

This commit is contained in:
Tobe O 2019-01-11 19:49:11 -05:00
parent d2b1082435
commit 449a71100e
3 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,6 @@
# 2.1.4+1
* Patch `part of 'path'` renames.
# 2.1.4
* The `migration` argument to `model` just emits an annotation now.
* Add the ORM boilerplate.

View file

@ -167,6 +167,7 @@ class RenamingVisitor extends RecursiveAstVisitor {
@override
visitPartOfDirective(PartOfDirective ctx) {
if (ctx.libraryName != null) {
var name = ctx.libraryName.name;
if (name.startsWith(oldName)) {
@ -174,4 +175,5 @@ class RenamingVisitor extends RecursiveAstVisitor {
'part of ' + name.replaceFirst(oldName, newName) + ';';
}
}
}
}

View file

@ -2,7 +2,7 @@ author: Tobe O <thosakwe@gmail.com>
description: Command-line tools for the Angel framework.
homepage: https://github.com/angel-dart/angel_cli
name: angel_cli
version: 2.1.4
version: 2.1.4+1
dependencies:
analyzer: ">=0.32.0"
args: ^1.0.0