Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 432aa9e

Browse files
jbedardIgorMinar
authored andcommitted
refactor($parse): adding function names for easier debugging
Part of #8901
1 parent b95dabb commit 432aa9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ng/parse.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ Parser.prototype = {
531531
// TODO(size): maybe we should not support multiple statements?
532532
return (statements.length === 1)
533533
? statements[0]
534-
: function(self, locals) {
534+
: function $parseStatements(self, locals) {
535535
var value;
536536
for (var i = 0, ii = statements.length; i < ii; i++) {
537537
value = statements[i](self, locals);
@@ -598,7 +598,7 @@ Parser.prototype = {
598598
this.text.substring(0, token.index) + '] can not be assigned to', token);
599599
}
600600
right = this.ternary();
601-
return function(scope, locals) {
601+
return function $parseAssignment(scope, locals) {
602602
return left.assign(scope, right(scope, locals), locals);
603603
};
604604
}
@@ -788,7 +788,7 @@ Parser.prototype = {
788788
}
789789
this.consume(']');
790790

791-
return extend(function(self, locals) {
791+
return extend(function $parseArrayLiteral(self, locals) {
792792
var array = [];
793793
for (var i = 0; i < elementFns.length; i++) {
794794
array.push(elementFns[i](self, locals));
@@ -821,7 +821,7 @@ Parser.prototype = {
821821
}
822822
this.consume('}');
823823

824-
return extend(function(self, locals) {
824+
return extend(function $parseObjectLiteral(self, locals) {
825825
var object = {};
826826
for (var i = 0; i < keyValues.length; i++) {
827827
var keyValue = keyValues[i];

0 commit comments

Comments
 (0)