From 88925cb53eaf4b4e61a266e4b38fbe06f26c3749 Mon Sep 17 00:00:00 2001 From: Jeremy Danyow Date: Sat, 27 Aug 2016 10:38:45 -0400 Subject: [PATCH] fix(ValidationParser): accept string property names --- src/implementation/validation-parser.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/implementation/validation-parser.ts b/src/implementation/validation-parser.ts index 75a03fe7..7d100406 100644 --- a/src/implementation/validation-parser.ts +++ b/src/implementation/validation-parser.ts @@ -82,7 +82,8 @@ export class ValidationParser { } else { accessor = this.getAccessorExpression(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