Yes- ConstructorElement subclasses ClassMemberElement, ClassMemberElement.enclosingElement is a ClassElement, so var should be sufficient for this.