style(ngcc): reformat of ngcc after clang update (#36447)

PR Close #36447
This commit is contained in:
Pete Bacon Darwin
2020-04-06 08:30:08 +01:00
committed by Kara Erickson
parent bfa55162de
commit 74b7a8eaf5
118 changed files with 1386 additions and 1046 deletions

View File

@ -6,7 +6,8 @@
* found in the LICENSE file at https://angular.io/license
*/
import * as ts from 'typescript';
import {AbsoluteFsPath, FileSystem, absoluteFrom} from '../../src/ngtsc/file_system';
import {absoluteFrom, AbsoluteFsPath, FileSystem} from '../../src/ngtsc/file_system';
import {KnownDeclaration} from '../../src/ngtsc/reflection';
/**
@ -37,11 +38,11 @@ export function getOriginalSymbol(checker: ts.TypeChecker): (symbol: ts.Symbol)
};
}
export function isDefined<T>(value: T | undefined | null): value is T {
export function isDefined<T>(value: T|undefined|null): value is T {
return (value !== undefined) && (value !== null);
}
export function getNameText(name: ts.PropertyName | ts.BindingName): string {
export function getNameText(name: ts.PropertyName|ts.BindingName): string {
return ts.isIdentifier(name) || ts.isLiteralExpression(name) ? name.text : name.getText();
}
@ -111,10 +112,12 @@ export class FactoryMap<K, V> {
this.internalMap.set(key, this.factory(key));
}
return this.internalMap.get(key) !;
return this.internalMap.get(key)!;
}
set(key: K, value: V): void { this.internalMap.set(key, value); }
set(key: K, value: V): void {
this.internalMap.set(key, value);
}
}
/**