refactor(ivy): use ɵɵ instead of Δ for now (#29850)

The `Δ` caused issue with other infrastructure, and we are temporarily
changing it to `ɵɵ`.

This commit also patches ts_api_guardian_test and AIO to understand `ɵɵ`.

PR Close #29850
This commit is contained in:
Alex Rickabaugh
2019-04-11 13:46:47 -07:00
parent 54058ba3a7
commit b0578061ce
146 changed files with 8037 additions and 8005 deletions

View File

@ -18,7 +18,7 @@ import {stringify} from '../util/stringify';
import {EMPTY_ARRAY, EMPTY_OBJ} from './empty';
import {NG_COMPONENT_DEF, NG_DIRECTIVE_DEF, NG_MODULE_DEF, NG_PIPE_DEF} from './fields';
import {ComponentDef, ComponentDefFeature, ComponentTemplate, ComponentType, ContentQueriesFunction, DirectiveDef, DirectiveDefFeature, DirectiveType, DirectiveTypesOrFactory, FactoryFn, HostBindingsFunction, PipeDef, PipeType, PipeTypesOrFactory, ViewQueriesFunction, ΔBaseDef} from './interfaces/definition';
import {ComponentDef, ComponentDefFeature, ComponentTemplate, ComponentType, ContentQueriesFunction, DirectiveDef, DirectiveDefFeature, DirectiveType, DirectiveTypesOrFactory, FactoryFn, HostBindingsFunction, PipeDef, PipeType, PipeTypesOrFactory, ViewQueriesFunction, ɵɵBaseDef} from './interfaces/definition';
// while SelectorFlags is unused here, it's required so that types don't get resolved lazily
// see: https://github.com/Microsoft/web-build-tools/issues/1050
import {CssSelectorList, SelectorFlags} from './interfaces/projection';
@ -41,7 +41,7 @@ let _renderCompCount = 0;
* ```
* @codeGenApi
*/
export function ΔdefineComponent<T>(componentDefinition: {
export function ɵɵdefineComponent<T>(componentDefinition: {
/**
* Directive type, needed to configure the injector.
*/
@ -307,7 +307,7 @@ export function ΔdefineComponent<T>(componentDefinition: {
/**
* @codeGenApi
*/
export function ΔsetComponentScope(
export function ɵɵsetComponentScope(
type: ComponentType<any>, directives: Type<any>[], pipes: Type<any>[]): void {
const def = (type.ngComponentDef as ComponentDef<any>);
def.directiveDefs = () => directives.map(extractDirectiveDef);
@ -334,7 +334,7 @@ export function extractPipeDef(type: PipeType<any>): PipeDef<any> {
/**
* @codeGenApi
*/
export function ΔdefineNgModule<T>(def: {
export function ɵɵdefineNgModule<T>(def: {
/** Token representing the module. Used by DI. */
type: T;
@ -378,7 +378,7 @@ export function ΔdefineNgModule<T>(def: {
*
* @codeGenApi
*/
export function ΔsetNgModuleScope(type: any, scope: {
export function ɵɵsetNgModuleScope(type: any, scope: {
/** List of components, directives, and pipes declared by this module. */
declarations?: Type<any>[] | (() => Type<any>[]);
@ -480,7 +480,7 @@ function invertObject<T>(
* # Example
* ```ts
* class ShouldBeInherited {
* static ngBaseDef = ΔdefineBase({
* static ngBaseDef = ɵɵdefineBase({
* ...
* })
* }
@ -490,7 +490,7 @@ function invertObject<T>(
*
* @codeGenApi
*/
export function ΔdefineBase<T>(baseDefinition: {
export function ɵɵdefineBase<T>(baseDefinition: {
/**
* A map of input names.
*
@ -547,7 +547,7 @@ export function ΔdefineBase<T>(baseDefinition: {
* of properties.
*/
outputs?: {[P in keyof T]?: string};
}): ΔBaseDef<T> {
}): ɵɵBaseDef<T> {
const declaredInputs: {[P in keyof T]: string} = {} as any;
return {
inputs: invertObject<T>(baseDefinition.inputs as any, declaredInputs),
@ -564,7 +564,7 @@ export function ΔdefineBase<T>(baseDefinition: {
* class MyDirective {
* // Generated by Angular Template Compiler
* // [Symbol] syntax will not be supported by TypeScript until v2.7
* static ngDirectiveDef = ΔdefineDirective({
* static ngDirectiveDef = ɵɵdefineDirective({
* ...
* });
* }
@ -572,7 +572,7 @@ export function ΔdefineBase<T>(baseDefinition: {
*
* @codeGenApi
*/
export const ΔdefineDirective = ΔdefineComponent as any as<T>(directiveDefinition: {
export const ɵɵdefineDirective = ɵɵdefineComponent as any as<T>(directiveDefinition: {
/**
* Directive type, needed to configure the injector.
*/
@ -690,7 +690,7 @@ export const ΔdefineDirective = ΔdefineComponent as any as<T>(directiveDefinit
*
* @codeGenApi
*/
export function ΔdefinePipe<T>(pipeDef: {
export function ɵɵdefinePipe<T>(pipeDef: {
/** Name of the pipe. Used for matching pipes in template to pipe defs. */
name: string,