refactor(pipes): removed pipes from properties

BREAKING CHANGE:

This PR remove an ability to use pipes in the properties config. Instead, inject the pipe registry.
This commit is contained in:
vsavkin
2015-06-18 15:40:12 -07:00
parent ad7aca631d
commit 20a8f0dbe5
31 changed files with 261 additions and 270 deletions

View File

@ -223,7 +223,7 @@ class _CodegenState {
List<String> _getNonNullPipeNames() {
return _records
.where((r) =>
r.mode == RecordType.PIPE || r.mode == RecordType.BINDING_PIPE)
r.mode == RecordType.PIPE)
.map((r) => _pipeNames[r.selfIndex])
.toList();
}
@ -310,7 +310,7 @@ class _CodegenState {
var change = _changeNames[r.selfIndex];
var pipe = _pipeNames[r.selfIndex];
var cdRef = r.mode == RecordType.BINDING_PIPE ? 'this.ref' : 'null';
var cdRef = 'this.ref';
var protoIndex = r.selfIndex - 1;
var pipeType = r.name;