Skip to content

Commit

Permalink
fix(ValidationParser): accept string property names
Browse files Browse the repository at this point in the history
  • Loading branch information
jdanyow committed Aug 27, 2016
1 parent 01d8501 commit 88925cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/implementation/validation-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export class ValidationParser {
} else {
accessor = this.getAccessorExpression(<Function>property);
}
if (accessor instanceof AccessMember && accessor.object instanceof AccessScope) {
if (accessor instanceof AccessScope
|| accessor instanceof AccessMember && accessor.object instanceof AccessScope) {
return {
name: accessor.name,
displayName: null
Expand Down

0 comments on commit 88925cb

Please sign in to comment.