This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use the raw bloomBit number to determine which bloom filter bucket we should check | |
// e.g: bf0 = [0 - 31], bf1 = [32 - 63], bf2 = [64 - 95], bf3 = [96 - 127], etc | |
const b7 = bloomBit & 0x80; | |
const b6 = bloomBit & 0x40; | |
const b5 = bloomBit & 0x20; | |
const tData = tView.data as number[]; | |
if (b7) { | |
b6 ? (b5 ? (tData[injectorIndex + 7] |= mask) : (tData[injectorIndex + 6] |= mask)) : | |
(b5 ? (tData[injectorIndex + 5] |= mask) : (tData[injectorIndex + 4] |= mask)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class NodeInjector implements Injector { | |
constructor( | |
private _tNode: TElementNode|TContainerNode|TElementContainerNode|null, | |
private _lView: LView) {} | |
get(token: any, notFoundValue?: any): any { | |
return getOrCreateInjectable(this._tNode, this._lView, token, undefined, notFoundValue); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class R3Injector { | |
private records = new Map<Type<any>|InjectionToken<any>, Record<any>>(); | |
... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'my-app', | |
template: ` | |
<div> | |
<div dirB>Hello Ivy</div> | |
</div> | |
` | |
}) | |
export class AppComponent {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'my-app', | |
template: ` | |
<div dirA> | |
<div dirB>Hello Ivy</div> | |
</div> | |
` | |
}) | |
export class AppComponent {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const webpack = require('webpack'); | |
const regex = /firebase\/(app|firestore)/; | |
module.exports = { | |
mode: 'none', | |
entry: { | |
// This is our Express server for Dynamic universal | |
server: './server.ts' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-root', | |
template: '{{ foo }}' | |
}) | |
export class AppComponent {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _decl0_1: AppComponent = (<any>(null as any)); | |
function _View_AppComponent_1_0(): void { | |
const currVal_0: any = _decl0_1.foo; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-root', | |
template: '<button (click)="test($event)">Test</button>' | |
}) | |
export class AppComponent { | |
test() {} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _decl0_1: AppComponent = (<any>(null as any)); | |
function _View_AppComponent_1_0(): void { | |
var _any:any = (null as any); | |
const pd_1:any = ((<any>_decl0_1.test(_any)) !== false); | |
^^^^^^^^^^ | |
} |