private void AddRuntimeModelDirectives(FieldDef fldDef) { var allReqDirs = _requestContext.ParsedRequest.AllDirectives; if (fldDef.HasDirectives()) { foreach (Model.ModelDirective fldDir in fldDef.Directives) { allReqDirs.Add(new RuntimeDirective(fldDir, allReqDirs.Count)); } } var typeDef = fldDef.TypeRef.TypeDef; if (typeDef.HasDirectives()) { foreach (Model.ModelDirective tdir in typeDef.Directives) { allReqDirs.Add(new RuntimeDirective(tdir, allReqDirs.Count)); } } }