MCPcopy Index your code
hub / github.com/angular/components / _decoratePropertyDoc

Method _decoratePropertyDoc

tools/dgeni/processors/categorizer.ts:194–210  ·  view source on GitHub ↗

* Method that will be called for each property doc. Properties that are Angular inputs or * outputs will be marked. Aliases for the inputs or outputs will be stored as well.

(propertyDoc: CategorizedPropertyMemberDoc)

Source from the content-addressed store, hash-verified

192 * outputs will be marked. Aliases for the inputs or outputs will be stored as well.
193 */
194 private _decoratePropertyDoc(propertyDoc: CategorizedPropertyMemberDoc) {
195 decorateDeprecatedDoc(propertyDoc);
196
197 const metadata =
198 propertyDoc.containerDoc.docType === 'class'
199 ? (propertyDoc.containerDoc as CategorizedClassDoc).metadata
200 : null;
201
202 const inputMetadata = metadata ? getInputBindingData(propertyDoc, metadata) : null;
203 const outputMetadata = metadata ? getOutputBindingData(propertyDoc, metadata) : null;
204
205 propertyDoc.isInput = !!inputMetadata;
206 propertyDoc.inputAlias = (inputMetadata && inputMetadata.alias) || '';
207
208 propertyDoc.isOutput = !!outputMetadata;
209 propertyDoc.outputAlias = (outputMetadata && outputMetadata.alias) || '';
210 }
211
212 /**
213 * Walks through every method of the specified class doc and replaces the method

Callers 1

_decorateClassLikeDocMethod · 0.95

Calls 3

decorateDeprecatedDocFunction · 0.90
getInputBindingDataFunction · 0.90
getOutputBindingDataFunction · 0.90

Tested by

no test coverage detected