refactor(ivy): prefix all generated instructions (#29692)

- Updates all instructions to be prefixed with the Greek delta symbol

PR Close #29692
This commit is contained in:
Ben Lesh
2019-04-04 11:41:52 -07:00
committed by Igor Minar
parent db62ccf9eb
commit 138ca5a246
149 changed files with 8266 additions and 7620 deletions

View File

@ -82,15 +82,17 @@ export function getBindingsEnabled(): boolean {
* Should match component / directive.
* </my-comp>
* <div ngNonBindable>
* <!-- disabledBindings() -->
* <!-- ΔdisableBindings() -->
* <my-comp my-directive>
* Should not match component / directive because we are in ngNonBindable.
* </my-comp>
* <!-- enableBindings() -->
* <!-- ΔenableBindings() -->
* </div>
* ```
*
* @publicApi
*/
export function enableBindings(): void {
export function ΔenableBindings(): void {
bindingsEnabled = true;
}
@ -103,15 +105,17 @@ export function enableBindings(): void {
* Should match component / directive.
* </my-comp>
* <div ngNonBindable>
* <!-- disabledBindings() -->
* <!-- ΔdisableBindings() -->
* <my-comp my-directive>
* Should not match component / directive because we are in ngNonBindable.
* </my-comp>
* <!-- enableBindings() -->
* <!-- ΔenableBindings() -->
* </div>
* ```
*
* @publicApi
*/
export function disableBindings(): void {
export function ΔdisableBindings(): void {
bindingsEnabled = false;
}
@ -262,8 +266,10 @@ export function getActiveDirectiveSuperClassDepth() {
* walking the declaration view tree in listeners to get vars from parent views.
*
* @param viewToRestore The OpaqueViewState instance to restore.
*
* @publicApi
*/
export function restoreView(viewToRestore: OpaqueViewState) {
export function ΔrestoreView(viewToRestore: OpaqueViewState) {
contextLView = viewToRestore as any as LView;
}
@ -483,23 +489,29 @@ let _currentNamespace: string|null = null;
/**
* Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.
*
* @publicApi
*/
export function namespaceSVG() {
export function ΔnamespaceSVG() {
_currentNamespace = 'http://www.w3.org/2000/svg';
}
/**
* Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.
*
* @publicApi
*/
export function namespaceMathML() {
export function ΔnamespaceMathML() {
_currentNamespace = 'http://www.w3.org/1998/MathML/';
}
/**
* Sets the namespace used to create elements no `null`, which forces element creation to use
* `createElement` rather than `createElementNS`.
*
* @publicApi
*/
export function namespaceHTML() {
export function ΔnamespaceHTML() {
_currentNamespace = null;
}