"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/dgeni/common/private-docs.ts" between
components-12.0.3.tar.gz and components-12.0.4.tar.gz

About: components offers Component infrastructure and Material Design components for Angular.

private-docs.ts  (components-12.0.3):private-docs.ts  (components-12.0.4)
import {ApiDoc} from 'dgeni-packages/typescript/api-doc-types/ApiDoc'; import {ApiDoc} from 'dgeni-packages/typescript/api-doc-types/ApiDoc';
import {MemberDoc} from 'dgeni-packages/typescript/api-doc-types/MemberDoc'; import {MemberDoc} from 'dgeni-packages/typescript/api-doc-types/MemberDoc';
import {isInheritanceCreatedDoc} from './class-inheritance';
const INTERNAL_METHODS = [ const INTERNAL_METHODS = [
// Lifecycle methods // Lifecycle methods
'ngOnInit', 'ngOnInit',
'ngOnChanges', 'ngOnChanges',
'ngDoCheck', 'ngDoCheck',
'ngAfterContentInit', 'ngAfterContentInit',
'ngAfterContentChecked', 'ngAfterContentChecked',
'ngAfterViewInit', 'ngAfterViewInit',
'ngAfterViewChecked', 'ngAfterViewChecked',
skipping to change at line 30 skipping to change at line 31
// Don't ever need to document constructors // Don't ever need to document constructors
'constructor', 'constructor',
// tabIndex exists on all elements, no need to document it // tabIndex exists on all elements, no need to document it
'tabIndex', 'tabIndex',
]; ];
/** Checks whether the given API document is public. */ /** Checks whether the given API document is public. */
export function isPublicDoc(doc: ApiDoc) { export function isPublicDoc(doc: ApiDoc) {
// Always skip documents which have been created through inheritance. These do
cs are
// not exported as they have not been resolved by Dgeni through a module entry
-point.
// The `@docs-public` tag is only applicable if a symbol is at least exported.
if (isInheritanceCreatedDoc(doc)) {
return false;
}
if (_isEnforcedPublicDoc(doc)) { if (_isEnforcedPublicDoc(doc)) {
return true; return true;
} }
if (_hasDocsPrivateTag(doc) || doc.name.startsWith('_') || if (_hasDocsPrivateTag(doc) || doc.name.startsWith('_') ||
doc.name.startsWith('ngAcceptInputType_')) { doc.name.startsWith('ngAcceptInputType_')) {
return false; return false;
} else if (doc instanceof MemberDoc) { } else if (doc instanceof MemberDoc) {
return !_isInternalMember(doc); return !_isInternalMember(doc);
} }
return true; return true;
} }
/** Gets the @docs-public tag from the given document if present. */ /** Gets the @docs-public tag from the given document if present. */
 End of changes. 3 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)