protected MemberGenerator(CodeGeneratorContext context, IdentifierName name, Action body) { this.Context = context; this.Name = name; this.Body = body; this.Traits = context.PopStateOrThrow <MemberTraitsContext>();; this.DeclaringModule = context.TryGetCurrentModule(); this.DeclaringType = context.TryGetCurrentType(); }