| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | const Package = require('dgeni').Package; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const basePackage = require('../angular-base-package'); | 
					
						
							|  |  |  | const typeScriptPackage = require('dgeni-packages/typescript'); | 
					
						
							| 
									
										
										
										
											2017-05-02 14:12:21 +01:00
										 |  |  | const { API_SOURCE_PATH, API_TEMPLATES_PATH, requireFolder } = require('../config'); | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | module.exports = new Package('angular-api', [basePackage, typeScriptPackage]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // Register the processors
 | 
					
						
							| 
									
										
										
										
											2018-02-23 13:47:26 +00:00
										 |  |  |   .processor(require('./processors/migrateLegacyJSDocTags')) | 
					
						
							| 
									
										
										
										
											2018-02-23 13:50:47 +00:00
										 |  |  |   .processor(require('./processors/splitDescription')) | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |   .processor(require('./processors/convertPrivateClassesToInterfaces')) | 
					
						
							|  |  |  |   .processor(require('./processors/generateApiListDoc')) | 
					
						
							|  |  |  |   .processor(require('./processors/addNotYetDocumentedProperty')) | 
					
						
							|  |  |  |   .processor(require('./processors/mergeDecoratorDocs')) | 
					
						
							|  |  |  |   .processor(require('./processors/extractDecoratedClasses')) | 
					
						
							| 
									
										
										
										
											2018-03-11 09:42:49 +00:00
										 |  |  |   .processor(require('./processors/extractPipeParams')) | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |   .processor(require('./processors/matchUpDirectiveDecorators')) | 
					
						
							| 
									
										
										
										
											2017-09-25 20:00:05 +01:00
										 |  |  |   .processor(require('./processors/addMetadataAliases')) | 
					
						
							| 
									
										
										
										
											2018-02-08 15:00:53 +00:00
										 |  |  |   .processor(require('./processors/computeApiBreadCrumbs')) | 
					
						
							| 
									
										
										
										
											2017-06-29 13:47:58 +01:00
										 |  |  |   .processor(require('./processors/filterContainedDocs')) | 
					
						
							| 
									
										
										
										
											2018-02-08 15:00:53 +00:00
										 |  |  |   .processor(require('./processors/processClassLikeMembers')) | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |   .processor(require('./processors/markBarredODocsAsPrivate')) | 
					
						
							|  |  |  |   .processor(require('./processors/filterPrivateDocs')) | 
					
						
							| 
									
										
										
										
											2017-05-03 21:44:30 +01:00
										 |  |  |   .processor(require('./processors/computeSearchTitle')) | 
					
						
							| 
									
										
										
										
											2017-07-13 17:07:49 +01:00
										 |  |  |   .processor(require('./processors/simplifyMemberAnchors')) | 
					
						
							| 
									
										
										
										
											2018-03-09 08:26:11 +00:00
										 |  |  |   .processor(require('./processors/computeStability')) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   /** | 
					
						
							|  |  |  |    * These are the API doc types that will be rendered to actual files. | 
					
						
							|  |  |  |    * This is a super set of the exported docs, since we convert some classes to | 
					
						
							|  |  |  |    * more Angular specific API types, such as decorators and directives. | 
					
						
							|  |  |  |    */ | 
					
						
							|  |  |  |   .factory(function API_DOC_TYPES_TO_RENDER(EXPORT_DOC_TYPES) { | 
					
						
							|  |  |  |     return EXPORT_DOC_TYPES.concat(['decorator', 'directive', 'pipe', 'module']); | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  |   /** | 
					
						
							|  |  |  |    * These are the doc types that are contained within other docs | 
					
						
							|  |  |  |    */ | 
					
						
							|  |  |  |   .factory(function API_CONTAINED_DOC_TYPES() { | 
					
						
							|  |  |  |     return ['member', 'function-overload', 'get-accessor-info', 'set-accessor-info', 'parameter']; | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 08:26:11 +00:00
										 |  |  |   /** | 
					
						
							|  |  |  |    * These are the doc types that are API docs, including ones that will be merged into container docs, | 
					
						
							|  |  |  |    * such as members and overloads. | 
					
						
							|  |  |  |    */ | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  |   .factory(function API_DOC_TYPES(API_DOC_TYPES_TO_RENDER, API_CONTAINED_DOC_TYPES) { | 
					
						
							|  |  |  |     return API_DOC_TYPES_TO_RENDER.concat(API_CONTAINED_DOC_TYPES); | 
					
						
							| 
									
										
										
										
											2018-03-09 08:26:11 +00:00
										 |  |  |   }) | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   // Where do we get the source files?
 | 
					
						
							| 
									
										
										
										
											2017-08-21 19:32:22 +01:00
										 |  |  |   .config(function(readTypeScriptModules, readFilesProcessor, collectExamples, tsParser) { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // Tell TypeScript how to load modules that start with with `@angular`
 | 
					
						
							|  |  |  |     tsParser.options.paths = { '@angular/*': [API_SOURCE_PATH + '/*'] }; | 
					
						
							|  |  |  |     tsParser.options.baseUrl = '.'; | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // API files are typescript
 | 
					
						
							|  |  |  |     readTypeScriptModules.basePath = API_SOURCE_PATH; | 
					
						
							| 
									
										
										
										
											2017-04-24 21:53:36 +01:00
										 |  |  |     readTypeScriptModules.ignoreExportsMatching = [/^[_ɵ]|^VERSION$/]; | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |     readTypeScriptModules.hidePrivateMembers = true; | 
					
						
							| 
									
										
										
										
											2017-12-15 09:58:42 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:26:11 -08:00
										 |  |  |     // NOTE: This list shold be in sync with tools/public_api_guard/BUILD.bazel
 | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |     readTypeScriptModules.sourceFiles = [ | 
					
						
							| 
									
										
										
										
											2017-04-24 17:23:37 +01:00
										 |  |  |       'animations/index.ts', | 
					
						
							|  |  |  |       'animations/browser/index.ts', | 
					
						
							|  |  |  |       'animations/browser/testing/index.ts', | 
					
						
							| 
									
										
										
										
											2017-07-08 15:23:02 +09:00
										 |  |  |       'common/http/index.ts', | 
					
						
							|  |  |  |       'common/http/testing/index.ts', | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |       'common/index.ts', | 
					
						
							|  |  |  |       'common/testing/index.ts', | 
					
						
							|  |  |  |       'core/index.ts', | 
					
						
							|  |  |  |       'core/testing/index.ts', | 
					
						
							| 
									
										
										
										
											2018-02-28 09:45:11 -08:00
										 |  |  |       'elements/index.ts', | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |       'forms/index.ts', | 
					
						
							|  |  |  |       'http/index.ts', | 
					
						
							|  |  |  |       'http/testing/index.ts', | 
					
						
							|  |  |  |       'platform-browser/index.ts', | 
					
						
							| 
									
										
										
										
											2017-04-24 17:23:37 +01:00
										 |  |  |       'platform-browser/animations/index.ts', | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |       'platform-browser/testing/index.ts', | 
					
						
							|  |  |  |       'platform-browser-dynamic/index.ts', | 
					
						
							|  |  |  |       'platform-browser-dynamic/testing/index.ts', | 
					
						
							|  |  |  |       'platform-server/index.ts', | 
					
						
							|  |  |  |       'platform-server/testing/index.ts', | 
					
						
							|  |  |  |       'platform-webworker/index.ts', | 
					
						
							|  |  |  |       'platform-webworker-dynamic/index.ts', | 
					
						
							|  |  |  |       'router/index.ts', | 
					
						
							|  |  |  |       'router/testing/index.ts', | 
					
						
							| 
									
										
										
										
											2017-04-24 17:23:37 +01:00
										 |  |  |       'router/upgrade/index.ts', | 
					
						
							| 
									
										
										
										
											2017-10-23 09:47:49 -07:00
										 |  |  |       'service-worker/index.ts', | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |       'upgrade/index.ts', | 
					
						
							| 
									
										
										
										
											2017-04-24 17:23:37 +01:00
										 |  |  |       'upgrade/static/index.ts', | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |     ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // API Examples
 | 
					
						
							|  |  |  |     readFilesProcessor.sourceFiles = [ | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         basePath: API_SOURCE_PATH, | 
					
						
							|  |  |  |         include: API_SOURCE_PATH + '/examples/**/*', | 
					
						
							|  |  |  |         fileReader: 'exampleFileReader' | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     ]; | 
					
						
							|  |  |  |     collectExamples.exampleFolders.push('examples'); | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // Configure jsdoc-style tag parsing
 | 
					
						
							|  |  |  |   .config(function(parseTagsProcessor, getInjectables) { | 
					
						
							|  |  |  |     // Load up all the tag definitions in the tag-defs folder
 | 
					
						
							|  |  |  |     parseTagsProcessor.tagDefinitions = | 
					
						
							|  |  |  |         parseTagsProcessor.tagDefinitions.concat(getInjectables(requireFolder(__dirname, './tag-defs'))); | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-18 19:29:34 +01:00
										 |  |  |   .config(function(computeStability, splitDescription, addNotYetDocumentedProperty, API_DOC_TYPES_TO_RENDER, API_DOC_TYPES) { | 
					
						
							|  |  |  |     computeStability.docTypes = API_DOC_TYPES_TO_RENDER; | 
					
						
							| 
									
										
										
										
											2018-02-23 13:50:47 +00:00
										 |  |  |     // Only split the description on the API docs
 | 
					
						
							| 
									
										
										
										
											2018-03-09 08:26:11 +00:00
										 |  |  |     splitDescription.docTypes = API_DOC_TYPES; | 
					
						
							| 
									
										
										
										
											2018-03-14 19:15:11 +00:00
										 |  |  |     addNotYetDocumentedProperty.docTypes = API_DOC_TYPES; | 
					
						
							| 
									
										
										
										
											2018-02-23 13:50:47 +00:00
										 |  |  |   }) | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-04 11:43:15 +01:00
										 |  |  |   .config(function(mergeDecoratorDocs) { | 
					
						
							|  |  |  |     mergeDecoratorDocs.propertiesToMerge = [ | 
					
						
							|  |  |  |       'shortDescription', | 
					
						
							|  |  |  |       'description', | 
					
						
							|  |  |  |       'security', | 
					
						
							|  |  |  |       'deprecated', | 
					
						
							|  |  |  |       'see', | 
					
						
							|  |  |  |       'usageNotes', | 
					
						
							|  |  |  |     ]; | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-13 11:24:05 +00:00
										 |  |  |   .config(function(checkContentRules, EXPORT_DOC_TYPES) { | 
					
						
							| 
									
										
										
										
											2018-03-13 11:24:05 +00:00
										 |  |  |     // Min length rules
 | 
					
						
							|  |  |  |     const createMinLengthRule = require('./content-rules/minLength'); | 
					
						
							|  |  |  |     const paramRuleSet = checkContentRules.docTypeRules['parameter'] = checkContentRules.docTypeRules['parameter'] || {}; | 
					
						
							|  |  |  |     const paramRules = paramRuleSet['name'] = paramRuleSet['name'] || []; | 
					
						
							|  |  |  |     paramRules.push(createMinLengthRule()); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // Heading rules
 | 
					
						
							|  |  |  |     const createNoMarkdownHeadingsRule = require('./content-rules/noMarkdownHeadings'); | 
					
						
							|  |  |  |     const noMarkdownHeadings = createNoMarkdownHeadingsRule(); | 
					
						
							|  |  |  |     const allowOnlyLevel3Headings = createNoMarkdownHeadingsRule(1, 2, '4,'); | 
					
						
							| 
									
										
										
										
											2018-03-13 11:24:05 +00:00
										 |  |  |     const DOC_TYPES_TO_CHECK = EXPORT_DOC_TYPES.concat(['member', 'overload-info']); | 
					
						
							|  |  |  |     const PROPS_TO_CHECK = ['description', 'shortDescription']; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     DOC_TYPES_TO_CHECK.forEach(docType => { | 
					
						
							|  |  |  |       const ruleSet = checkContentRules.docTypeRules[docType] = checkContentRules.docTypeRules[docType] || {}; | 
					
						
							|  |  |  |       PROPS_TO_CHECK.forEach(prop => { | 
					
						
							|  |  |  |         const rules = ruleSet[prop] = ruleSet[prop] || []; | 
					
						
							|  |  |  |         rules.push(noMarkdownHeadings); | 
					
						
							|  |  |  |       }); | 
					
						
							|  |  |  |       const rules = ruleSet['usageNotes'] = ruleSet['usageNotes'] || []; | 
					
						
							|  |  |  |       rules.push(allowOnlyLevel3Headings); | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  |   .config(function(filterContainedDocs, API_CONTAINED_DOC_TYPES) { | 
					
						
							|  |  |  |     filterContainedDocs.docTypes = API_CONTAINED_DOC_TYPES; | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-18 19:29:34 +01:00
										 |  |  |   .config(function(checkContentRules, API_DOC_TYPES, API_CONTAINED_DOC_TYPES) { | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  |     addMinLengthRules(checkContentRules); | 
					
						
							| 
									
										
										
										
											2018-05-18 19:29:34 +01:00
										 |  |  |     addHeadingRules(checkContentRules, API_DOC_TYPES); | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  |     addAllowedPropertiesRules(checkContentRules, API_CONTAINED_DOC_TYPES); | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |   .config(function(computePathsProcessor, EXPORT_DOC_TYPES, generateApiListDoc) { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     const API_SEGMENT = 'api'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     generateApiListDoc.outputFolder = API_SEGMENT; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     computePathsProcessor.pathTemplates.push({ | 
					
						
							|  |  |  |       docTypes: ['module'], | 
					
						
							|  |  |  |       getPath: function computeModulePath(doc) { | 
					
						
							|  |  |  |         doc.moduleFolder = `${API_SEGMENT}/${doc.id.replace(/\/index$/, '')}`; | 
					
						
							|  |  |  |         return doc.moduleFolder; | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       outputPathTemplate: '${moduleFolder}.json' | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |     computePathsProcessor.pathTemplates.push({ | 
					
						
							|  |  |  |       docTypes: EXPORT_DOC_TYPES.concat(['decorator', 'directive', 'pipe']), | 
					
						
							|  |  |  |       pathTemplate: '${moduleDoc.moduleFolder}/${name}', | 
					
						
							|  |  |  |       outputPathTemplate: '${moduleDoc.moduleFolder}/${name}.json', | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-02 14:12:21 +01:00
										 |  |  |   .config(function(templateFinder) { | 
					
						
							|  |  |  |     // Where to find the templates for the API doc rendering
 | 
					
						
							|  |  |  |     templateFinder.templateFolders.unshift(API_TEMPLATES_PATH); | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 08:26:11 +00:00
										 |  |  |   .config(function(convertToJsonProcessor, postProcessHtml, API_DOC_TYPES_TO_RENDER, API_DOC_TYPES, autoLinkCode) { | 
					
						
							|  |  |  |     convertToJsonProcessor.docTypes = convertToJsonProcessor.docTypes.concat(API_DOC_TYPES_TO_RENDER); | 
					
						
							|  |  |  |     postProcessHtml.docTypes = convertToJsonProcessor.docTypes.concat(API_DOC_TYPES_TO_RENDER); | 
					
						
							|  |  |  |     autoLinkCode.docTypes = API_DOC_TYPES; | 
					
						
							| 
									
										
										
										
											2017-09-09 09:15:08 +01:00
										 |  |  |     autoLinkCode.codeElements = ['code', 'code-example', 'code-pane']; | 
					
						
							| 
									
										
										
										
											2017-04-21 13:10:52 +01:00
										 |  |  |   }); | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function addMinLengthRules(checkContentRules) { | 
					
						
							|  |  |  |   const createMinLengthRule = require('./content-rules/minLength'); | 
					
						
							|  |  |  |   const paramRuleSet = checkContentRules.docTypeRules['parameter'] = checkContentRules.docTypeRules['parameter'] || {}; | 
					
						
							|  |  |  |   const paramRules = paramRuleSet['name'] = paramRuleSet['name'] || []; | 
					
						
							|  |  |  |   paramRules.push(createMinLengthRule()); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-18 19:29:34 +01:00
										 |  |  | function addHeadingRules(checkContentRules, API_DOC_TYPES) { | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  |   const createNoMarkdownHeadingsRule = require('./content-rules/noMarkdownHeadings'); | 
					
						
							|  |  |  |   const noMarkdownHeadings = createNoMarkdownHeadingsRule(); | 
					
						
							|  |  |  |   const allowOnlyLevel3Headings = createNoMarkdownHeadingsRule(1, 2, '4,'); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-18 19:29:34 +01:00
										 |  |  |   API_DOC_TYPES.forEach(docType => { | 
					
						
							|  |  |  |     let rules; | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  |     const ruleSet = checkContentRules.docTypeRules[docType] = checkContentRules.docTypeRules[docType] || {}; | 
					
						
							| 
									
										
										
										
											2018-05-18 19:29:34 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     rules = ruleSet['description'] = ruleSet['description'] || []; | 
					
						
							|  |  |  |     rules.push(noMarkdownHeadings); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     rules = ruleSet['shortDescription'] = ruleSet['shortDescription'] || []; | 
					
						
							|  |  |  |     rules.push(noMarkdownHeadings); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     rules = ruleSet['usageNotes'] = ruleSet['usageNotes'] || []; | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  |     rules.push(allowOnlyLevel3Headings); | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function addAllowedPropertiesRules(checkContentRules, API_CONTAINED_DOC_TYPES) { | 
					
						
							|  |  |  |   API_CONTAINED_DOC_TYPES.forEach(docType => { | 
					
						
							|  |  |  |     const ruleSet = checkContentRules.docTypeRules[docType] = checkContentRules.docTypeRules[docType] || {}; | 
					
						
							| 
									
										
										
										
											2018-05-18 19:29:34 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     const rules = ruleSet['usageNotes'] = ruleSet['usageNotes'] || []; | 
					
						
							|  |  |  |     rules.push((doc, prop, value) => value && !isMethod(doc) && | 
					
						
							|  |  |  |       `Invalid property: "${prop}" is not allowed on "${doc.docType}" docs.`); | 
					
						
							| 
									
										
										
										
											2018-05-16 17:51:35 +01:00
										 |  |  |   }); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2018-05-18 06:33:12 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | function isMethod(doc) { | 
					
						
							|  |  |  |   return doc.hasOwnProperty('parameters') && !doc.isGetAccessor && !doc.isSetAccessor; | 
					
						
							|  |  |  | } |