Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Updates the value of removes an attribute on an Element.
function elementAttribute(index,name,value,sanitizer){if(value!==NO_CHANGE){var lView=getLView();var renderer=lView[RENDERER];var element_1=getNativeByIndex(index,lView);if(value==null){ngDevMode&&ngDevMode.rendererRemoveAttribute++;isProceduralRenderer(renderer)?renderer.removeAttribute(element_1,name):element_1.remov...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update(attribute, value) {\n\t\telement[(value ? 'set' : 'remove') + 'Attribute'](attribute, value);\n\t}", "function Xml_RemoveAttribute(objNode,strAttribute)\r\n{\r\n objNode.removeAttribute(strAttribute);\r\n}", "function removeAttr(elem, attrib) {\r\n elem.removeAttr(attrib);\r\n...
[ "0.72122717", "0.7204441", "0.7150946", "0.6529196", "0.6519211", "0.6519211", "0.6517881", "0.6486838", "0.6486838", "0.63933897", "0.63933897", "0.63682586", "0.63682586", "0.62886924", "0.6279236", "0.62062806", "0.62062806", "0.61945635", "0.6143009", "0.6118763", "0.6114...
0.649458
7
Update a property on an element. If the property name also exists as an input property on one of the element's directives, the component property will be set instead of the element property. This check must
function elementProperty(index,propName,value,sanitizer,nativeOnly){elementPropertyInternal(index,propName,value,sanitizer,nativeOnly);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function elementProperty(index, propName, value, sanitizer) {\n if (value === NO_CHANGE)\n return;\n var element = getNativeByIndex(index, viewData);\n var tNode = getTNode(index, viewData);\n // if tNode.inputs is undefined, a listener has created outputs, but inputs haven't\n // yet been ch...
[ "0.69236326", "0.65617675", "0.64376396", "0.60996264", "0.60868853", "0.60546184", "0.5986559", "0.5986559", "0.5964138", "0.5928173", "0.59185624", "0.58907306", "0.5876454", "0.5847168", "0.5833999", "0.5810834", "0.5810834", "0.57539433", "0.5740812", "0.57382256", "0.571...
0.5884248
12
Constructs a TNode object from the arguments.
function createTNode(lView,type,adjustedIndex,tagName,attrs,tViews){var previousOrParentTNode=getPreviousOrParentTNode();ngDevMode&&ngDevMode.tNode++;var parent=getIsParent()?previousOrParentTNode:previousOrParentTNode&&previousOrParentTNode.parent;// Parents cannot cross component boundaries because components will be...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createNode(...args) {\n return new Node(...args)\n}", "function createNode (args) {\n let node = new Node()\n\n // The order of checks is important\n function generate (p) {\n // Type\n if (typeof p === 'string' && node.type === null) {\n node.type = p.replace(/^./, ch => ch.toUpperCase()...
[ "0.7666765", "0.74628353", "0.6785675", "0.6785675", "0.67541486", "0.67541486", "0.67541486", "0.6636686", "0.65509075", "0.61693364", "0.6094228", "0.6094228", "0.60879505", "0.6070255", "0.60645413", "0.59883267", "0.59408236", "0.5880082", "0.5874059", "0.58456457", "0.58...
0.0
-1
Given a list of directive indices and minified input names, sets the input properties on the corresponding directives.
function setInputsForProperty(lView,inputs,value){for(var i=0;i<inputs.length;i+=2){ngDevMode&&assertDataInRange(lView,inputs[i]);lView[inputs[i]][inputs[i+1]]=value;}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setInputsFromAttrs(directiveIndex, instance, inputs, tNode) {\n var initialInputData = tNode.initialInputs;\n if (initialInputData === undefined || directiveIndex >= initialInputData.length) {\n initialInputData = generateInitialInputs(directiveIndex, inputs, tNode);\n }\n var initialIn...
[ "0.60222155", "0.60222155", "0.60222155", "0.59996486", "0.58650196", "0.58604896", "0.58604896", "0.5854281", "0.5830444", "0.5768059", "0.57559407", "0.5692112", "0.5692112", "0.5692112", "0.5692112", "0.5692112", "0.5692112", "0.56348145", "0.56348145", "0.5629866", "0.562...
0.5716632
11
Consolidates all inputs or outputs of all directives on this logical node.
function generatePropertyAliases(tNode,direction){var tView=getLView()[TVIEW];var propStore=null;var start=tNode.directiveStart;var end=tNode.directiveEnd;if(end>start){var isInput=direction===0/* Input */;var defs=tView.data;for(var i=start;i<end;i++){var directiveDef=defs[i];var propertyAliasMap=isInput?directiveDef....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalizeAll()\n {\n normalizeForms();\n normalizeControls();\n }", "function getMergedDirectives() {\n var existingDirectives = schema.getDirectives();\n !existingDirectives ? (0, _invariant2.default)(0, 'schema must have default directives') : void 0;\n\n v...
[ "0.53141975", "0.4930241", "0.4930241", "0.48435408", "0.47037968", "0.46699902", "0.46500987", "0.46284556", "0.46284556", "0.46284556", "0.45750463", "0.45733693", "0.45465854", "0.45465854", "0.45465854", "0.45465854", "0.45465854", "0.45465854", "0.45465854", "0.45465854", ...
0.0
-1
Assign any inline style values to the element during creation mode. This instruction is meant to be called during creation mode to register all dynamic style and class bindings on the element. Note for static values (no binding) see `elementStart` and `elementHostAttrs`.
function elementStyling(classBindingNames,styleBindingNames,styleSanitizer,directive){var tNode=getPreviousOrParentTNode();if(!tNode.stylingTemplate){tNode.stylingTemplate=createEmptyStylingContext();}updateContextWithBindings(tNode.stylingTemplate,directive||null,classBindingNames,styleBindingNames,styleSanitizer,hasC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createStyleAttribute(vnode) {\n const {\n elm,\n data: {\n styleMap\n },\n owner: {\n renderer\n }\n } = vnode;\n\n if (isUndefined$3(styleMap)) {\n return;\n }\n\n for (const name in styleMap) {\n renderer.setCSSStyleProperty(elm, name, styl...
[ "0.6456134", "0.6289816", "0.6126933", "0.6126933", "0.6126933", "0.6126933", "0.6107728", "0.6086458", "0.60406315", "0.6030629", "0.6030629", "0.6030629", "0.59997326", "0.5991675", "0.5957551", "0.5931355", "0.5898838", "0.5898838", "0.5898838", "0.5894906", "0.5894906", ...
0.5772996
36
Assign static styling values to a host element. NOTE: This instruction is meant to used from `hostBindings` function only.
function elementHostAttrs(directive,attrs){var tNode=getPreviousOrParentTNode();if(!tNode.stylingTemplate){tNode.stylingTemplate=initializeStaticContext(attrs);}patchContextWithStaticAttrs(tNode.stylingTemplate,attrs,directive);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyStyleAttributes(vm, hostAttribute, shadowAttribute) {\n const {\n context,\n elm\n } = vm; // Remove the style attribute currently applied to the host element.\n\n setAttribute.call(elm, hostAttribute, '');\n context.hostAttribute = hostAttribute;\n context.shadowAttribute = ...
[ "0.60977083", "0.6083918", "0.6083918", "0.6021875", "0.6021875", "0.58177483", "0.5802752", "0.57647216", "0.5738889", "0.5738889", "0.5738889", "0.5738889", "0.5738889", "0.5738889", "0.5735776", "0.571712", "0.5709076", "0.5600567", "0.56004184", "0.5589101", "0.5570425", ...
0.66866004
0
Apply styling binding to the element. This instruction is meant to be run after `elementStyle` and/or `elementStyleProp`. if any styling bindings have changed then the changes are flushed to the element.
function elementStylingApply(index,directive){var lView=getLView();var isFirstRender=(lView[FLAGS]&2/* FirstLViewPass */)!==0;var totalPlayersQueued=renderStyling(getStylingContext(index+HEADER_OFFSET,lView),lView[RENDERER],lView,isFirstRender,null,null,directive);if(totalPlayersQueued>0){var rootContext=getRootContext...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyStyle(element, style){\r\n\t\t\t\t Object.keys(style).forEach(function(key){\r\n\t\t\t\t element.style[key] = style[key];\r\n\t\t\t\t });\r\n\t\t\t\t}", "updateStyle() {\n this._styling(this._elRef, this);\n }", "function applyStyle(targetElement_, styleProperties_)\n{\n\tt...
[ "0.682793", "0.6793013", "0.6713268", "0.6626785", "0.6518147", "0.64081657", "0.6405873", "0.6405873", "0.63726455", "0.6272855", "0.6271714", "0.623978", "0.623978", "0.623978", "0.62390345", "0.6230574", "0.62271905", "0.62271905", "0.62271905", "0.62108904", "0.62108904",...
0.0
-1
Update a style bindings value on an element. If the style value is `null` then it will be removed from the element (or assigned a different value depending if there are any styles placed on the element with `elementStyle` or any styles that are present from when the element was created (with `elementStyling`). (Note th...
function elementStyleProp(index,styleIndex,value,suffix,directive){var valueToAdd=null;if(value!==null){if(suffix){// when a suffix is applied then it will bypass // sanitization entirely (b/c a new string is created) valueToAdd=stringify$1(value)+suffix;}else{// sanitization happens by dealing with a String value // t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyStyle(element, style){\r\n\t\t\t\t Object.keys(style).forEach(function(key){\r\n\t\t\t\t element.style[key] = style[key];\r\n\t\t\t\t });\r\n\t\t\t\t}", "function updateStyle(element, oldStyle, newStyle) {\r\n var elemStyle = element.style;\r\n var name;\r\n for (n...
[ "0.6384062", "0.630375", "0.6272421", "0.6272421", "0.61870605", "0.6134422", "0.6134422", "0.6134422", "0.6134422", "0.6134422", "0.6134422", "0.61152655", "0.6109508", "0.6063408", "0.59692127", "0.5964845", "0.59504944", "0.5946945", "0.5946945", "0.5946945", "0.59465784",...
0.5677564
56
Add or remove a class via a class binding on a DOM element. This instruction is meant to handle the [class.foo]="exp" case and, therefore, the class itself must already be applied using `elementStyling` within the creation block.
function elementClassProp(index,classIndex,value,directive){var onOrOffClassValue=value instanceof BoundPlayerFactory?value:!!value;updateClassProp(getStylingContext(index+HEADER_OFFSET,getLView()),classIndex,onOrOffClassValue,directive);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function translateToCssClass(scope,element){element.addClass(className);}", "setClass(cssClass, active) {\n this._elementRef.nativeElement.classList.toggle(cssClass, active);\n this._changeDetectorRef.markForCheck();\n }", "function addClass(el,cls){/* istanbul ignore if */if(!cls||!(cls=cls.t...
[ "0.68456185", "0.6758901", "0.6739536", "0.6739536", "0.6730538", "0.67046446", "0.67046446", "0.67046446", "0.6640074", "0.6629638", "0.6629638", "0.6629638", "0.66123915", "0.6543136", "0.65071243", "0.64979154", "0.64590466", "0.6442911", "0.6442911", "0.64297634", "0.6429...
0.0
-1
Update style and/or class bindings using object literal. This instruction is meant apply styling via the `[style]="exp"` and `[class]="exp"` template bindings. When styles are applied to the Element they will then be placed with respect to any styles set with `elementStyleProp`. If any styles are set to `null` then the...
function elementStylingMap(index,classes,styles,directive){if(directive!=undefined)return hackImplementationOfElementStylingMap(index,classes,styles,directive);// supported in next PR var lView=getLView();var tNode=getTNode(index,lView);var stylingContext=getStylingContext(index+HEADER_OFFSET,lView);if(hasClassInput(tN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyStyle(element, style){\r\n\t\t\t\t Object.keys(style).forEach(function(key){\r\n\t\t\t\t element.style[key] = style[key];\r\n\t\t\t\t });\r\n\t\t\t\t}", "static applyStyles(element, styles) {\n Object.keys(styles).forEach((key) => {\n element.style[key] = styles[key];\n });\...
[ "0.67031324", "0.66298956", "0.6369035", "0.6320211", "0.6320211", "0.6315739", "0.6315739", "0.63135016", "0.63135016", "0.63135016", "0.63118035", "0.63118035", "0.63118035", "0.63069683", "0.6299864", "0.6297593", "0.6258627", "0.6255943", "0.6215459", "0.6215459", "0.6213...
0.0
-1
START OF HACK BLOCK
function hackImplementationOfElementStylingMap(index,classes,styles,directive){throw new Error('unimplemented. Should not be needed by ViewEngine compatibility');}/* END OF HACK BLOCK */ //////////////////////////
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "transient protected internal function m189() {}", "static private protected internal function m118() {}", "protected internal function m252() {}", "static private internal function m121() {}", "static final private internal fun...
[ "0.6605583", "0.638246", "0.6013219", "0.5938952", "0.5937911", "0.5919584", "0.5867711", "0.5841056", "0.57812065", "0.57636213", "0.57454896", "0.5731302", "0.5714855", "0.5632919", "0.5632919", "0.5595727", "0.5547768", "0.5546926", "0.55163527", "0.55163527", "0.5494468",...
0.0
-1
Text //////////////////////// Create static text node
function text(index,value){var lView=getLView();ngDevMode&&assertEqual(lView[BINDING_INDEX],lView[TVIEW].bindingStartIndex,'text nodes should be created before any bindings');ngDevMode&&ngDevMode.rendererCreateTextNode++;var textNative=createTextNode(value,lView[RENDERER]);var tNode=createNodeAtIndex(index,3/* Element ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TextNode(text) {\n this.text = text;\n}", "function TextNode(text) {\n this.text = text;\n}", "function createText(text) {\n return document.createTextNode(text);\n }", "function createText(text) {\n return document.createTextNode(text);\n }", "function TTextNode() {}", "function T...
[ "0.792375", "0.792375", "0.7863332", "0.7863332", "0.7747025", "0.7747025", "0.7747025", "0.7702406", "0.75990325", "0.75990325", "0.7519606", "0.74917334", "0.741596", "0.7392376", "0.7316782", "0.71772486", "0.70558137", "0.70558137", "0.70558137", "0.70349926", "0.6967018"...
0.67388994
35
Create text node with binding Bindings should be handled externally with the proper interpolation(18) method
function textBinding(index,value){if(value!==NO_CHANGE){var lView=getLView();ngDevMode&&assertDataInRange(lView,index+HEADER_OFFSET);var element_2=getNativeByIndex(index,lView);ngDevMode&&assertDefined(element_2,'native element should exist');ngDevMode&&ngDevMode.rendererSetText++;var renderer=lView[RENDERER];isProcedu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function text(index,value){var lView=getLView();ngDevMode&&assertEqual(lView[BINDING_INDEX],lView[TVIEW].bindingStartIndex,'text nodes should be created before any bindings');ngDevMode&&ngDevMode.rendererCreateTextNode++;var textNative=createTextNode(value,lView[RENDERER]);var tNode=createNodeAtIndex(index,3/* Ele...
[ "0.72763133", "0.6945701", "0.6898349", "0.6898349", "0.66311866", "0.65403426", "0.6443526", "0.644063", "0.64188254", "0.64188254", "0.64188254", "0.64188254", "0.64188254", "0.6277346", "0.6240044", "0.61951023", "0.61951023", "0.61951023", "0.61951023", "0.61951023", "0.6...
0.63247037
13
Directive //////////////////////// Instantiate a root component.
function instantiateRootComponent(tView,viewData,def){var rootTNode=getPreviousOrParentTNode();if(tView.firstTemplatePass){if(def.providersResolver)def.providersResolver(def);generateExpandoInstructionBlock(tView,rootTNode,1);baseResolveDirective(tView,viewData,def,def.factory);}var directive=getNodeInjectable(tView.da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createRootComponent(componentView,componentDef,rootView,rootContext,hostFeatures){var tView=rootView[TVIEW];// Create directive instance with factory() and store at next index in viewData\nvar component=instantiateRootComponent(tView,rootView,componentDef);rootContext.components.push(component);componentV...
[ "0.7055889", "0.6721149", "0.6721149", "0.67000407", "0.66890836", "0.6666375", "0.6626631", "0.66019076", "0.66019076", "0.66019076", "0.66019076", "0.66019076", "0.66019076", "0.6479236", "0.6479236", "0.64667976", "0.6394275", "0.6394275", "0.6394275", "0.6394275", "0.6394...
0.7266506
0
Resolve the matched directives on a node.
function resolveDirectives(tView,viewData,directives,tNode,localRefs){// Please make sure to have explicit type for `exportsMap`. Inferred type triggers bug in tsickle. ngDevMode&&assertEqual(getFirstTemplatePass(),true,'should run on first template pass only');var exportsMap=localRefs?{'':-1}:null;if(directives){initN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findDirectiveMatches(tView,viewData,tNode){ngDevMode&&assertEqual(getFirstTemplatePass(),true,'should run on first template pass only');var registry=tView.directiveRegistry;var matches=null;if(registry){for(var i=0;i<registry.length;i++){var def=registry[i];if(isNodeMatchingSelectorList(tNode,def.selector...
[ "0.59478426", "0.58616054", "0.5810415", "0.5810415", "0.5782064", "0.5744821", "0.5662099", "0.56023127", "0.55930257", "0.55930257", "0.5570418", "0.5552643", "0.5552643", "0.5552643", "0.5552643", "0.5552643", "0.5552643", "0.5505329", "0.5491636", "0.5444666", "0.53224677...
0.57407296
6
Instantiate all the directives that were previously resolved on the current node.
function instantiateAllDirectives(tView,lView,tNode){var start=tNode.directiveStart;var end=tNode.directiveEnd;if(!getFirstTemplatePass()&&start<end){getOrCreateNodeInjectorForNode(tNode,lView);}for(var i=start;i<end;i++){var def=tView.data[i];if(isComponentDef(def)){addComponentLogic(lView,tNode,def);}var directive=ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function instantiateAllDirectives(tView, lView, tNode, _native8) {\n var start = tNode.directiveStart;\n var end = tNode.directiveEnd;\n\n if (!tView.firstCreatePass) {\n getOrCreateNodeInjectorForNode(tNode, lView);\n }\n\n attachPatchData(_native8, lView);\n var...
[ "0.70918477", "0.70100623", "0.69548374", "0.69548374", "0.69204456", "0.6798447", "0.67313564", "0.67313564", "0.67313564", "0.67313564", "0.67313564", "0.67313564", "0.58657813", "0.5549445", "0.5516864", "0.5481755", "0.5481755", "0.54780704", "0.5441861", "0.5436608", "0....
0.7422258
0
Generates a new block in TView.expandoInstructions for this node. Each expando block starts with the element index (turned negative so we can distinguish it from the hostVar count) and the directive count. See more in VIEW_DATA.md.
function generateExpandoInstructionBlock(tView,tNode,directiveCount){ngDevMode&&assertEqual(tView.firstTemplatePass,true,'Expando block should only be generated on first template pass.');var elementIndex=-(tNode.index-HEADER_OFFSET);var providerStartIndex=tNode.providerIndexes&65535/* ProvidersStartIndexMask */;var pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateExpandoInstructionBlock(tView, tNode, directiveCount) {\n ngDevMode && assertEqual(tView.firstTemplatePass, true, 'Expando block should only be generated on first template pass.');\n var elementIndex = -(tNode.index - HEADER_OFFSET);\n var providerStartIndex = tNode.providerIndexes & 6553...
[ "0.7760435", "0.7760435", "0.7760435", "0.73771554", "0.5989984", "0.5925645", "0.58009607", "0.58009607", "0.5600906", "0.5392906", "0.5392906", "0.53885597", "0.53885597", "0.53885597", "0.5383515", "0.5383515", "0.5309824", "0.53022516", "0.51385325", "0.5021449", "0.48707...
0.75614756
3
On the first template pass, we need to reserve space for host binding values after directives are matched (so all directives are saved, then bindings). Because we are updating the blueprint, we only need to do this once.
function prefillHostVars(tView,lView,totalHostVars){ngDevMode&&assertEqual(getFirstTemplatePass(),true,'Should only be called in first template pass.');for(var i=0;i<totalHostVars;i++){lView.push(NO_CHANGE);tView.blueprint.push(NO_CHANGE);tView.data.push(null);}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allocHostVars(count){if(!getFirstTemplatePass())return;var lView=getLView();var tView=lView[TVIEW];queueHostBindingForCheck(tView,getCurrentDirectiveDef(),count);prefillHostVars(tView,lView,count);}", "function queueHostBindingForCheck(tView,def,hostVars){ngDevMode&&assertEqual(getFirstTemplatePass(),tr...
[ "0.66458493", "0.6615696", "0.6483264", "0.62171996", "0.6106091", "0.61034703", "0.61034703", "0.6068995", "0.6066588", "0.6066588", "0.6051978", "0.58941424", "0.58941424", "0.5747612", "0.5704045", "0.5542669", "0.5528399", "0.54992586", "0.54614824", "0.54614824", "0.5461...
0.5312499
43
Process a directive on the current node after its creation.
function postProcessDirective(viewData,directive,def,directiveDefIdx){var previousOrParentTNode=getPreviousOrParentTNode();postProcessBaseDirective(viewData,previousOrParentTNode,directive,def);ngDevMode&&assertDefined(previousOrParentTNode,'previousOrParentTNode');if(previousOrParentTNode&&previousOrParentTNode.attrs)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function postProcessBaseDirective(lView,previousOrParentTNode,directive,def){var _native15=getNativeByTNode(previousOrParentTNode,lView);ngDevMode&&assertEqual(lView[BINDING_INDEX],lView[TVIEW].bindingStartIndex,'directives should be created before any bindings');ngDevMode&&assertPreviousIsParent(getIsParent());at...
[ "0.6244699", "0.5997493", "0.5957893", "0.5957893", "0.5950453", "0.5950453", "0.57370144", "0.5708941", "0.5669927", "0.55417186", "0.5507455", "0.5454561", "0.5454561", "0.5454561", "0.54297906", "0.54297906", "0.53462833", "0.53127885", "0.52940285", "0.52696157", "0.52032...
0.6270874
0
A lighter version of postProcessDirective() that is used for the root component.
function postProcessBaseDirective(lView,previousOrParentTNode,directive,def){var _native15=getNativeByTNode(previousOrParentTNode,lView);ngDevMode&&assertEqual(lView[BINDING_INDEX],lView[TVIEW].bindingStartIndex,'directives should be created before any bindings');ngDevMode&&assertPreviousIsParent(getIsParent());attachP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function postProcessDirective(viewData,directive,def,directiveDefIdx){var previousOrParentTNode=getPreviousOrParentTNode();postProcessBaseDirective(viewData,previousOrParentTNode,directive,def);ngDevMode&&assertDefined(previousOrParentTNode,'previousOrParentTNode');if(previousOrParentTNode&&previousOrParentTNode.a...
[ "0.71036446", "0.6462313", "0.63632804", "0.63632804", "0.620925", "0.59410644", "0.59410644", "0.5773835", "0.53211635", "0.5302205", "0.5154547", "0.5129954", "0.5054011", "0.5024", "0.491895", "0.4896828", "0.4862456", "0.4862456", "0.4862456", "0.48325527", "0.4816011", ...
0.6102971
5
Matches the current node against all available selectors. If a component is matched (at most one), it is returned in first position in the array.
function findDirectiveMatches(tView,viewData,tNode){ngDevMode&&assertEqual(getFirstTemplatePass(),true,'should run on first template pass only');var registry=tView.directiveRegistry;var matches=null;if(registry){for(var i=0;i<registry.length;i++){var def=registry[i];if(isNodeMatchingSelectorList(tNode,def.selectors,/* ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "scanForSelector() {\n let match = this.match(/(?<identifier>[#.&])([\\w-]+)/g);\n if (!match) {\n return null;\n }\n let identifier = match.groups.identifier;\n if (identifier === '.' || identifier === '#') {\n let selector = simple_selector_1.SimpleSelector...
[ "0.6214958", "0.5697916", "0.5697916", "0.5697916", "0.5697916", "0.5559441", "0.55588645", "0.55493313", "0.55374414", "0.55157673", "0.54867584", "0.5448315", "0.5439917", "0.5392149", "0.5392149", "0.5377804", "0.5368234", "0.53543955", "0.5332992", "0.5314297", "0.5310392...
0.0
-1
Stores index of component's host element so it will be queued for view refresh during CD.
function queueComponentIndexForCheck(previousOrParentTNode){ngDevMode&&assertEqual(getFirstTemplatePass(),true,'Should only be called in first template pass.');var tView=getLView()[TVIEW];(tView.components||(tView.components=[])).push(previousOrParentTNode.index);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function queueComponentIndexForCheck() {\n if (firstTemplatePass) {\n (tView.components || (tView.components = [])).push(previousOrParentTNode.index);\n }\n}", "function setActiveHostElement(elementIndex) {\n if (elementIndex === void 0) { elementIndex = null; }\n if (_selectedIndex !== elemen...
[ "0.6367759", "0.6152774", "0.60907954", "0.5931393", "0.5931393", "0.58585", "0.57845426", "0.56651264", "0.56411326", "0.5591387", "0.5560583", "0.5559422", "0.5505617", "0.5476027", "0.54663694", "0.546336", "0.5463218", "0.5452052", "0.5426224", "0.5426224", "0.5426224", ...
0.6159216
1
Stores host binding fn and number of host vars so it will be queued for binding refresh during CD.
function queueHostBindingForCheck(tView,def,hostVars){ngDevMode&&assertEqual(getFirstTemplatePass(),true,'Should only be called in first template pass.');var expando=tView.expandoInstructions;var length=expando.length;// Check whether a given `hostBindings` function already exists in expandoInstructions, // which can h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setHostBindings() {\n if (tView.expandoInstructions) {\n bindingRootIndex = viewData[BINDING_INDEX] = tView.expandoStartIndex;\n var currentDirectiveIndex = -1;\n var currentElementIndex = -1;\n for (var i = 0; i < tView.expandoInstructions.length; i++) {\n var in...
[ "0.6385582", "0.5902931", "0.5897589", "0.5860571", "0.5860571", "0.57600427", "0.56478316", "0.56478316", "0.56170386", "0.56170386", "0.5591348", "0.5591348", "0.5584466", "0.55398697", "0.5401977", "0.53682655", "0.5359701", "0.53359336", "0.53106093", "0.53106093", "0.529...
0.60914725
1
Caches local names and their matching directive indices for query and template lookups.
function cacheMatchingLocalNames(tNode,localRefs,exportsMap){if(localRefs){var localNames=tNode.localNames=[];// Local names must be stored in tNode in the same order that localRefs are defined // in the template to ensure the data is loaded in the same slots as their refs // in the template (for template queries). for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cacheMatchingDirectivesForNode(tNode, tView, localRefs) {\n // Please make sure to have explicit type for `exportsMap`. Inferred type triggers bug in tsickle.\n var exportsMap = localRefs ? { '': -1 } : null;\n var matches = tView.currentMatches = findDirectiveMatches(tNode);\n generateExpando...
[ "0.66705924", "0.62216747", "0.61527085", "0.6097822", "0.6097822", "0.6097822", "0.6080176", "0.6030303", "0.5996225", "0.5996225", "0.5996225", "0.5996225", "0.5996225", "0.599102", "0.5908251", "0.5908251", "0.5688803", "0.54201436", "0.5414574", "0.5414574", "0.5414574", ...
0.63651305
1
Builds up an export map as directives are created, so local refs can be quickly mapped to their directive instances.
function saveNameToExportMap(index,def,exportsMap){if(exportsMap){if(def.exportAs)exportsMap[def.exportAs]=index;if(def.template)exportsMap['']=index;}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveNameToExportMap(directiveIdx, def, exportsMap) {\n if (exportsMap) {\n if (def.exportAs) {\n for (var i = 0; i < def.exportAs.length; i++) {\n exportsMap[def.exportAs[i]] = directiveIdx;\n }\n }\n\n if (isComponentDef(def)) exportsMa...
[ "0.6919488", "0.6892045", "0.6845778", "0.6845778", "0.6845778", "0.6845778", "0.6845778", "0.6845778", "0.6340591", "0.6340591", "0.5868275", "0.5795857", "0.57270247", "0.57270247", "0.57270247", "0.5650348", "0.5636326", "0.5554444", "0.5554444", "0.54493916", "0.5317227",...
0.63167244
10
Initializes the flags on the current node, setting all indices to the initial index, the directive count to 0, and adding the isComponent flag.
function initNodeFlags(tNode,index,numberOfDirectives){ngDevMode&&assertEqual(getFirstTemplatePass(),true,'expected firstTemplatePass to be true');var flags=tNode.flags;ngDevMode&&assertEqual(flags===0||flags===1/* isComponent */,true,'expected node flags to not be initialized');ngDevMode&&assertNotEqual(numberOfDirect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initNodeFlags(tNode, index, numberOfDirectives) {\n var flags = tNode.flags;\n ngDevMode && assertEqual(flags === 0 || flags === 1 /* isComponent */, true, 'expected node flags to not be initialized');\n ngDevMode && assertNotEqual(numberOfDirectives, tNode.directiveEnd - tNode.directiveStart, 'R...
[ "0.74823517", "0.7378869", "0.7378869", "0.65972537", "0.64994186", "0.63525057", "0.63525057", "0.63525057", "0.63525057", "0.63525057", "0.63525057", "0.59538966", "0.55721855", "0.5296705", "0.5285667", "0.52363735", "0.52363735", "0.5216965", "0.5209584", "0.5209584", "0....
0.7801357
0
Sets initial input properties on directive instances from attribute data
function setInputsFromAttrs(directiveIndex,instance,inputs,tNode){var initialInputData=tNode.initialInputs;if(initialInputData===undefined||directiveIndex>=initialInputData.length){initialInputData=generateInitialInputs(directiveIndex,inputs,tNode);}var initialInputs=initialInputData[directiveIndex];if(initialInputs){f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setInputsFromAttrs(lView, directiveIndex, instance, def, tNode, initialInputData) {\n var initialInputs = initialInputData[directiveIndex];\n\n if (initialInputs !== null) {\n var setInput = def.setInput;\n\n for (var i = 0; i < initialInputs.length;) {\n var pub...
[ "0.74210113", "0.73739034", "0.7239365", "0.7239365", "0.7239365", "0.7239365", "0.7239365", "0.7239365", "0.6785912", "0.6714996", "0.6714996", "0.6714996", "0.6199984", "0.6092195", "0.59283936", "0.5828009", "0.58025837", "0.58025837", "0.5796616", "0.5722135", "0.56926626...
0.701405
8
Generates initialInputData for a node and stores it in the template's static storage so subsequent template invocations don't have to recalculate it. initialInputData is an array containing values that need to be set as input properties for directives on this node, but only once on creation. We need this array to suppo...
function generateInitialInputs(directiveIndex,inputs,tNode){var initialInputData=tNode.initialInputs||(tNode.initialInputs=[]);initialInputData[directiveIndex]=null;var attrs=tNode.attrs;var i=0;while(i<attrs.length){var attrName=attrs[i];if(attrName===3/* SelectOnly */)break;if(attrName===0/* NamespaceURI */){// We do...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateInitialInputs(directiveIndex, inputs, tNode) {\n var initialInputData = tNode.initialInputs || (tNode.initialInputs = ngDevMode ? new TNodeInitialInputs() : []);\n // Ensure that we don't create sparse arrays\n for (var i_1 = initialInputData.length; i_1 <= directiveIndex; i_1++) {\n ...
[ "0.7033657", "0.6719186", "0.6711025", "0.6711025", "0.5770165", "0.5726948", "0.5621216", "0.5621216", "0.5621216", "0.5621216", "0.5621216", "0.5621216", "0.5462733", "0.5451928", "0.5402383", "0.5402383", "0.5402383", "0.5402383", "0.5402383", "0.5402383", "0.5363375", "...
0.68274385
1
ViewContainer & View //////////////////////// Creates a LContainer, either from a container instruction, or for a ViewContainerRef.
function createLContainer(hostNative,hostTNode,currentView,_native17,isForViewContainerRef){return[isForViewContainerRef?-1:0,[],currentView,null,null,hostNative,_native17,getRenderParent(hostTNode,currentView)// renderParent ];}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createContainerRef(hostTNode, hostLView) {\n ngDevMode && assertTNodeType(hostTNode, 12\n /* AnyContainer */\n | 3\n /* AnyRNode */\n );\n var lContainer;\n var slotValue = hostLView[hostTNode.index];\n\n if (isLContainer(slotValue)) {\n // If the host is a container, we don't need to create a ...
[ "0.70068514", "0.69476473", "0.6943182", "0.6943182", "0.6943182", "0.6943182", "0.6943182", "0.6943182", "0.67325157", "0.6731343", "0.6714204", "0.6714204", "0.6714204", "0.6714204", "0.6714204", "0.6714204", "0.6708972", "0.64756346", "0.64560467", "0.63032603", "0.6272355...
0.687376
8
Creates an LContainer for an ngtemplate (dynamicallyinserted view), e.g.
function template(index,templateFn,consts,vars,tagName,attrs,localRefs,localRefExtractor){var lView=getLView();var tView=lView[TVIEW];// TODO: consider a separate node type for templates var tNode=containerInternal(index,tagName||null,attrs||null);if(getFirstTemplatePass()){tNode.tViews=createTView(-1,templateFn,consts...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function injectTemplateRef() {\n return createTemplateRef(getCurrentTNode(), getLView());\n}", "function injectTemplateRef() {\n return createTemplateRef(getCurrentTNode(), getLView());\n}", "function injectTemplateRef() {\n return createTemplateRef(getCurrentTNode(), getLView());\n}", "function inj...
[ "0.6852955", "0.6852955", "0.6852955", "0.6852955", "0.6852955", "0.6852955", "0.6781931", "0.6614677", "0.65786594", "0.65618855", "0.64651257", "0.64651257", "0.64651257", "0.64651257", "0.64651257", "0.64651257", "0.63721293", "0.63721293", "0.63721293", "0.63721293", "0.6...
0.633945
22
Sets a container up to receive views.
function containerRefreshStart(index){var lView=getLView();var tView=lView[TVIEW];var previousOrParentTNode=loadInternal(tView.data,index);setPreviousOrParentTNode(previousOrParentTNode);ngDevMode&&assertNodeType(previousOrParentTNode,0/* Container */);setIsParent(true);lView[index+HEADER_OFFSET][ACTIVE_INDEX]=0;// We ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setContainer(container) {\n _container = container;\n}", "static setGlobalRootViewContainer(container) {\n InjectionService_1.globalRootViewContainer = container;\n }", "static setGlobalRootViewContainer(container) {\n InjectionService_1.globalRootViewContainer = container;\n }", ...
[ "0.6908284", "0.6704867", "0.6704867", "0.66871625", "0.66214997", "0.66214997", "0.63421226", "0.62652683", "0.6228024", "0.6228024", "0.611186", "0.6053786", "0.601274", "0.5985857", "0.5975973", "0.59549", "0.5890281", "0.588379", "0.588379", "0.588379", "0.588379", "0.5...
0.5361997
74
Marks the end of the LContainer. Marking the end of LContainer is the time when to child views get inserted or removed.
function containerRefreshEnd(){var previousOrParentTNode=getPreviousOrParentTNode();if(getIsParent()){setIsParent(false);}else{ngDevMode&&assertNodeType(previousOrParentTNode,2/* View */);ngDevMode&&assertHasParent(previousOrParentTNode);previousOrParentTNode=previousOrParentTNode.parent;setPreviousOrParentTNode(previo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function elementContainerEnd(){var previousOrParentTNode=getPreviousOrParentTNode();var lView=getLView();var tView=lView[TVIEW];if(getIsParent()){setIsParent(false);}else{ngDevMode&&assertHasParent(getPreviousOrParentTNode());previousOrParentTNode=previousOrParentTNode.parent;setPreviousOrParentTNode(previousOrPar...
[ "0.7179076", "0.71722496", "0.71722496", "0.7168628", "0.7168628", "0.6831987", "0.66013503", "0.6564897", "0.6437082", "0.64236003", "0.64236003", "0.6321883", "0.6247872", "0.6226159", "0.6154039", "0.6130708", "0.6122727", "0.6117789", "0.60864013", "0.60553205", "0.605532...
0.71691155
3
Goes over dynamic embedded views (ones created through ViewContainerRef APIs) and refreshes them by executing an associated template function.
function refreshDynamicEmbeddedViews(lView){for(var current=getLViewChild(lView);current!==null;current=current[NEXT]){// Note: current can be an LView or an LContainer instance, but here we are only interested // in LContainer. We can tell it's an LContainer because its length is less than the LView // header. if(curr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refreshDynamicEmbeddedViews(lViewData) {\n for (var current = getLViewChild(lViewData); current !== null; current = current[NEXT]) {\n // Note: current can be an LViewData or an LContainer instance, but here we are only interested\n // in LContainer. We can tell it's an LContainer because...
[ "0.74028575", "0.7386432", "0.7386432", "0.7313525", "0.68650544", "0.67534107", "0.67534107", "0.67534107", "0.67534107", "0.67534107", "0.67534107", "0.673757", "0.6396393", "0.6369393", "0.6341489", "0.6341489", "0.6341489", "0.6341489", "0.6341489", "0.6341489", "0.620252...
0.78984624
0
Looks for a view with a given view block id inside a provided LContainer. Removes views that need to be deleted in the process.
function scanForView(lContainer,tContainerNode,startIdx,viewBlockId){var views=lContainer[VIEWS];for(var i=startIdx;i<views.length;i++){var viewAtPositionId=views[i][TVIEW].id;if(viewAtPositionId===viewBlockId){return views[i];}else if(viewAtPositionId<viewBlockId){// found a view that should not be at this position - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scanForView(lContainer, tContainerNode, startIdx, viewBlockId) {\n var views = lContainer[VIEWS];\n for (var i = startIdx; i < views.length; i++) {\n var viewAtPositionId = views[i][TVIEW].id;\n if (viewAtPositionId === viewBlockId) {\n return views[i];\n }\n e...
[ "0.72793835", "0.7229731", "0.7229731", "0.719074", "0.6490748", "0.6298462", "0.6298462", "0.6003608", "0.58498865", "0.5846755", "0.5839267", "0.5839267", "0.5839267", "0.5833149", "0.5831703", "0.5831703", "0.5769844", "0.5769844", "0.5769844", "0.5769844", "0.5769844", ...
0.7420037
0
Marks the start of an embedded view.
function embeddedViewStart(viewBlockId,consts,vars){var lView=getLView();var previousOrParentTNode=getPreviousOrParentTNode();// The previous node can be a view node if we are processing an inline for loop var containerTNode=previousOrParentTNode.type===2/* View */?previousOrParentTNode.parent:previousOrParentTNode;var...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderStartPage() {\n addView(startPage());\n}", "function embeddedViewStart(viewBlockId, consts, vars) {\n // The previous node can be a view node if we are processing an inline for loop\n var containerTNode = previousOrParentTNode.type === 2 /* View */ ?\n previousOrParentTNode.parent :\...
[ "0.6692878", "0.62431526", "0.6223562", "0.6223562", "0.62226367", "0.6182118", "0.6182118", "0.59469515", "0.5830074", "0.5739611", "0.57352626", "0.57220995", "0.5613191", "0.5585851", "0.555067", "0.5530187", "0.5476407", "0.5466745", "0.5430314", "0.5425455", "0.54162204"...
0.68894833
0
Initialize the TView (e.g. static data) for the active embedded view. Each embedded view block must create or retrieve its own TView. Otherwise, the embedded view's static data for a particular node would overwrite the static data for a node in the view above it with the same index (since it's in the same template).
function getOrCreateEmbeddedTView(viewIndex,consts,vars,parent){var tView=getLView()[TVIEW];ngDevMode&&assertNodeType(parent,0/* Container */);var containerTViews=parent.tViews;ngDevMode&&assertDefined(containerTViews,'TView expected');ngDevMode&&assertEqual(Array.isArray(containerTViews),true,'TViews should be in an a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "initViews() {\n this.views = this.generateViews();\n this.prepareViewsModelsFields();\n }", "function embeddedViewStart(viewBlockId,consts,vars){var lView=getLView();var previousOrParentTNode=getPreviousOrParentTNode();// The previous node can be a view node if we are processing an inline for lo...
[ "0.655552", "0.6544288", "0.63130265", "0.6169613", "0.6159515", "0.6159515", "0.6143221", "0.6109676", "0.60398394", "0.60398394", "0.60398394", "0.6023843", "0.6023843", "0.600465", "0.600465", "0.59979343", "0.5997697", "0.59538114", "0.5933994", "0.5922875", "0.5839999", ...
0.5951955
18
Marks the end of an embedded view.
function embeddedViewEnd(){var lView=getLView();var viewHost=lView[HOST_NODE];if(isCreationMode(lView)){refreshDescendantViews(lView);// creation mode pass lView[FLAGS]&=~1/* CreationMode */;}refreshDescendantViews(lView);// update mode pass leaveView(lView[PARENT]);setPreviousOrParentTNode(viewHost);setIsParent(false)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function embeddedViewEnd() {\n var lView = getLView();\n var viewHost = lView[HOST_NODE];\n if (isCreationMode(lView)) {\n refreshDescendantViews(lView); // creation mode pass\n lView[FLAGS] &= ~1 /* CreationMode */;\n }\n refreshDescendantViews(lView); // update mode pass\n leaveVi...
[ "0.7952216", "0.7952216", "0.77124786", "0.6960102", "0.6032358", "0.59225273", "0.59135145", "0.5898614", "0.5898614", "0.58060604", "0.5760643", "0.5738978", "0.5713673", "0.56767637", "0.5660329", "0.5652033", "0.5577839", "0.55684584", "0.5563789", "0.55334926", "0.549692...
0.7641724
3
Refreshes components by entering the component view and processing its bindings, queries, etc.
function componentRefresh(adjustedElementIndex){var lView=getLView();ngDevMode&&assertDataInRange(lView,adjustedElementIndex);var hostView=getComponentViewByIndex(adjustedElementIndex,lView);ngDevMode&&assertNodeType(lView[TVIEW].data[adjustedElementIndex],3/* Element */);// Only attached CheckAlways components or atta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "refresh_() {\n // Can be overridden in sub-component.\n }", "refresh() {\n this.render();\n }", "refresh() {\n this.forceUpdate();\n }", "render() {\n this.refresh();\n }", "function refreshChildComponents(hostLView, components) {\n for (var i = 0;...
[ "0.6828127", "0.6789851", "0.6647705", "0.65776056", "0.6492009", "0.6386989", "0.635794", "0.63510835", "0.63102967", "0.6299344", "0.6271562", "0.6251929", "0.62388194", "0.62255824", "0.62124646", "0.62083584", "0.62083584", "0.62083584", "0.62083584", "0.62083584", "0.620...
0.5938565
38
Syncs an LView instance with its blueprint if they have gotten out of sync. Typically, blueprints and their view instances should always be in sync, so the loop here will be skipped. However, consider this case of two components sidebyside: App template: ``` ``` The following will happen: 1. App template begins process...
function syncViewWithBlueprint(componentView){var componentTView=componentView[TVIEW];for(var i=componentView.length;i<componentTView.blueprint.length;i++){componentView[i]=componentTView.blueprint[i];}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function syncViewWithBlueprint(tView, lView) {\n for (let i = lView.length; i < tView.blueprint.length; i++) {\n lView.push(tView.blueprint[i]);\n }\n}", "function syncViewWithBlueprint(tView, lView) {\n for (let i = lView.length; i < tView.blueprint.length; i++) {\n lView.push(tView.bluep...
[ "0.6996723", "0.6996723", "0.6996723", "0.6996723", "0.6996723", "0.6996723", "0.69647586", "0.6931713", "0.6643549", "0.6643549", "0.6643549", "0.6643549", "0.64778876", "0.64778876", "0.64778876", "0.64778876", "0.64778876", "0.64778876", "0.64333624", "0.6391827", "0.63186...
0.6928827
8
Returns a boolean for whether the view is attached
function viewAttached(view){return(view[FLAGS]&16/* Attached */)===16/* Attached */;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function viewAttached(view) {\n return (view[FLAGS] & 8 /* Attached */) === 8 /* Attached */;\n}", "function viewAttached(view) {\n return (view[FLAGS] & 16 /* Attached */) === 16 /* Attached */;\n}", "function viewAttached(view) {\n return (view[FLAGS] & 16 /* Attached */) === 16 /* Attached */;\n}",...
[ "0.8113732", "0.8047213", "0.8047213", "0.7794125", "0.7794125", "0.7794125", "0.7767235", "0.7743954", "0.7679883", "0.7588567", "0.7551033", "0.74596334", "0.74596334", "0.74596334", "0.74596334", "0.74596334", "0.74596334", "0.74596334", "0.7358607", "0.730107", "0.6932211...
0.8009935
3
Instruction to distribute projectable nodes among occurrences in a given template. It takes all the selectors from the entire component's template and decides where each projected node belongs (it redistributes nodes among "buckets" where each "bucket" is backed by a selector). This function requires CSS selectors to b...
function projectionDef(selectors,textSelectors){var componentNode=findComponentView(getLView())[HOST_NODE];if(!componentNode.projection){var noOfNodeBuckets=selectors?selectors.length+1:1;var pData=componentNode.projection=new Array(noOfNodeBuckets).fill(null);var tails=pData.slice();var componentChild=componentNode.ch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function groupNodesBySelector(ngContentSelectors, nodes) {\n const projectableNodes = [];\n for (let i = 0, ii = ngContentSelectors.length; i < ii; ++i) {\n projectableNodes[i] = [];\n }\n for (let j = 0, jj = nodes.length; j < jj; ++j) {\n const node = nodes[j];\n const ngContentI...
[ "0.6238678", "0.6109557", "0.6080512", "0.5950213", "0.5950213", "0.5655284", "0.5655284", "0.5453753", "0.53538346", "0.52149075", "0.5070475", "0.5070475", "0.5070475", "0.5070475", "0.5070352", "0.5070352", "0.50271523", "0.49882385", "0.49492005", "0.49269697", "0.4904666...
0.61925447
1
Adds LView or LContainer to the end of the current view tree. This structure will be used to traverse through nested views to remove listeners and call onDestroy callbacks.
function addToViewTree(lView,adjustedHostIndex,state){var tView=lView[TVIEW];var firstTemplatePass=getFirstTemplatePass();if(lView[TAIL]){lView[TAIL][NEXT]=state;}else if(firstTemplatePass){tView.childIndex=adjustedHostIndex;}lView[TAIL]=state;return state;}///////////////////////////////
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addToViewTree(lView, lViewOrLContainer) {\n // TODO(benlesh/misko): This implementation is incorrect, because it always adds the LContainer\n // to the end of the queue, which means if the developer retrieves the LContainers from RNodes out\n // of order, the change detection will run...
[ "0.7214735", "0.70697695", "0.7041823", "0.70343435", "0.70343435", "0.70343435", "0.70343435", "0.70343435", "0.70343435", "0.6464519", "0.6334317", "0.63278216", "0.63278216", "0.6296159", "0.62129307", "0.6153778", "0.61478144", "0.61478144", "0.6138709", "0.6127781", "0.6...
0.593726
40
Change detection ///////////////////////////// If node is an OnPush component, marks its LView dirty.
function markDirtyIfOnPush(lView,viewIndex){var childComponentLView=getComponentViewByIndex(viewIndex,lView);if(!(childComponentLView[FLAGS]&4/* CheckAlways */)){childComponentLView[FLAGS]|=8/* Dirty */;}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function markDirtyIfOnPush(lView, viewIndex) {\n var childComponentLView = getComponentViewByIndex(viewIndex, lView);\n if (!(childComponentLView[FLAGS] & 4 /* CheckAlways */)) {\n childComponentLView[FLAGS] |= 8 /* Dirty */;\n }\n}", "function markDirtyIfOnPush(lView, viewIndex) {\n var child...
[ "0.688619", "0.688619", "0.6646215", "0.6556981", "0.65399873", "0.64195174", "0.64195174", "0.64195174", "0.64195174", "0.64195174", "0.64195174", "0.63801116", "0.6167591", "0.5942121", "0.5921513", "0.5852841", "0.5837544", "0.58098847", "0.5780699", "0.5780699", "0.578069...
0.747308
0
Wraps an event listener with preventDefault behavior.
function wrapListenerWithPreventDefault(listenerFn){return function wrapListenerIn_preventDefault(e){if(listenerFn(e)===false){e.preventDefault();// Necessary for legacy browsers that don't support preventDefault (e.g. IE) e.returnValue=false;}};}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wrapListenerWithPreventDefault(listenerFn) {\n return function wrapListenerIn_preventDefault(e) {\n if (listenerFn(e) === false) {\n e.preventDefault();\n // Necessary for legacy browsers that don't support preventDefault (e.g. IE)\n e.returnValue = false;\n ...
[ "0.7917051", "0.7917051", "0.7917051", "0.7191687", "0.7191687", "0.7137255", "0.71102893", "0.7060038", "0.7060038", "0.7060038", "0.7060038", "0.7060038", "0.7053108", "0.70067567", "0.6998097", "0.6998097", "0.6998097", "0.69943535", "0.69943535", "0.69943535", "0.69943535...
0.8020729
0
Marks current view and all ancestors dirty
function markViewDirty(lView){while(lView&&!(lView[FLAGS]&128/* IsRoot */)){lView[FLAGS]|=8/* Dirty */;lView=lView[PARENT];}lView[FLAGS]|=8/* Dirty */;ngDevMode&&assertDefined(lView[CONTEXT],'rootContext should be defined');var rootContext=lView[CONTEXT];scheduleTick(rootContext,1/* DetectChanges */);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function markViewDirty(view) {\n var currentView = view;\n while (currentView && !(currentView[FLAGS] & 64 /* IsRoot */)) {\n currentView[FLAGS] |= 4 /* Dirty */;\n currentView = currentView[PARENT];\n }\n currentView[FLAGS] |= 4 /* Dirty */;\n ngDevMode && assertDefined(currentView[CO...
[ "0.74521106", "0.73062223", "0.73062223", "0.6901208", "0.6881718", "0.6858839", "0.6852302", "0.6743535", "0.6743535", "0.6743535", "0.6743535", "0.6743535", "0.6743535", "0.6430542", "0.6331464", "0.6265316", "0.61473835", "0.60569906", "0.60569906", "0.60569906", "0.605699...
0.75883067
0
Used to schedule change detection on the whole application. Unlike `tick`, `scheduleTick` coalesces multiple calls into one change detection run. It is usually called indirectly by calling `markDirty` when the view needs to be rerendered. Typically `scheduleTick` uses `requestAnimationFrame` to coalesce multiple `sched...
function scheduleTick(rootContext,flags){var nothingScheduled=rootContext.flags===0/* Empty */;rootContext.flags|=flags;if(nothingScheduled&&rootContext.clean==_CLEAN_PROMISE){var res_1;rootContext.clean=new Promise(function(r){return res_1=r;});rootContext.scheduler(function(){if(rootContext.flags&1/* DetectChanges */...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "scheduleDetectChanges() {\n if (this.scheduledChangeDetectionFn) {\n return;\n }\n this.scheduledChangeDetectionFn = scheduler.scheduleBeforeRender(() => {\n this.scheduledChangeDetectionFn = null;\n this.detectChanges();\n });\n }", "function runSc...
[ "0.679525", "0.63821733", "0.62395674", "0.62056583", "0.6126112", "0.6077653", "0.6077653", "0.6077653", "0.6077653", "0.6077653", "0.6077653", "0.60115683", "0.5955499", "0.5886131", "0.5857302", "0.58270895", "0.57342863", "0.57342863", "0.57342863", "0.57342863", "0.56769...
0.5924086
13
Synchronously perform change detection on a root view and its components.
function detectChangesInRootView(lView){tickRootContext(lView[CONTEXT]);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function detectChangesInRootView(lView) {\n tickRootContext(lView[CONTEXT]);\n}", "function detectChangesInRootView(lView) {\n tickRootContext(lView[CONTEXT]);\n}", "function detectChangesInRootView(lView) {\n tickRootContext(lView[CONTEXT]);\n}", "function detectChangesInRootView(lView) {\n tickRo...
[ "0.73834074", "0.73830146", "0.73830146", "0.73830146", "0.73830146", "0.73830146", "0.73830146", "0.73830146", "0.73830146", "0.73830146", "0.72811973", "0.71259373", "0.7085126", "0.66776323", "0.63812065", "0.6380845", "0.6380845", "0.6380845", "0.63505834", "0.63505834", ...
0.75146544
0
Checks the change detector and its children, and throws if any changes are detected. This is used in development mode to verify that running change detection doesn't introduce other changes.
function checkNoChanges(component){setCheckNoChangesMode(true);try{detectChanges(component);}finally{setCheckNoChangesMode(false);}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "check() {\n var dbMigrations = this.dbMigrations_,\n fsMigrations = this.fsMigrations_;\n\n if (lodash.difference(fsMigrations, dbMigrations).length) {\n this.throwError_();\n }\n }", "_verifyNoUncommittedChanges() {\n return tslib.__awaiter(this, void 0, void...
[ "0.6055195", "0.5762172", "0.570893", "0.5591432", "0.5582385", "0.5582385", "0.55119145", "0.55078965", "0.54881227", "0.54385537", "0.54314965", "0.54188424", "0.5391684", "0.5386659", "0.5374244", "0.5374244", "0.5374244", "0.53658074", "0.53658074", "0.53658074", "0.53658...
0.53687304
17
Checks the change detector on a root view and its components, and throws if any changes are detected. This is used in development mode to verify that running change detection doesn't introduce other changes.
function checkNoChangesInRootView(lView){setCheckNoChangesMode(true);try{detectChangesInRootView(lView);}finally{setCheckNoChangesMode(false);}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkNoChangesInRootView(lViewData) {\n checkNoChangesMode = true;\n try {\n detectChangesInRootView(lViewData);\n }\n finally {\n checkNoChangesMode = false;\n }\n}", "function checkNoChangesInRootView(lView) {\n setCheckNoChangesMode(true);\n try {\n detectCha...
[ "0.67260367", "0.6674128", "0.6674128", "0.6674128", "0.6631182", "0.6631182", "0.6631182", "0.6631182", "0.6631182", "0.6631182", "0.6567178", "0.65438986", "0.62973815", "0.6259895", "0.6259895", "0.6259895", "0.6259895", "0.6259895", "0.6259895", "0.61561614", "0.61321026"...
0.69613445
0
Checks the view of the component provided. Does not gate on dirty checks or execute doCheck.
function checkView(hostView,component){var hostTView=hostView[TVIEW];var oldView=enterView(hostView,hostView[HOST_NODE]);var templateFn=hostTView.template;var viewQuery=hostTView.viewQuery;try{namespaceHTML();createViewQuery(viewQuery,hostView,component);templateFn(getRenderFlags(hostView),component);refreshDescendantV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkView(hostView, component) {\n var hostTView = hostView[TVIEW];\n var oldView = enterView(hostView, hostView[T_HOST]);\n var templateFn = hostTView.template;\n var creationMode = isCreationMode(hostView);\n // Will become true if the `try` block executes with no errors.\n var safeToR...
[ "0.70185226", "0.68779594", "0.68779594", "0.63293284", "0.6008402", "0.6008402", "0.6008402", "0.6008402", "0.6008402", "0.6008402", "0.60003364", "0.5944674", "0.58619887", "0.5711551", "0.56911707", "0.56911707", "0.56911707", "0.56911707", "0.56911707", "0.5690342", "0.56...
0.6899872
1
Mark the component as dirty (needing change detection). Marking a component dirty will schedule a change detection on this component at some point in the future. Marking an already dirty component as dirty is a noop. Only one outstanding change detection can be scheduled per component tree. (Two components bootstrapped...
function markDirty(component){ngDevMode&&assertDefined(component,'component');markViewDirty(getComponentViewByInstance(component));}///////////////////////////////
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function markDirty(component) {\n ngDevMode && assertDefined(component, 'component');\n const rootView = markViewDirty(getComponentViewByInstance(component));\n ngDevMode && assertDefined(rootView[CONTEXT], 'rootContext should be defined');\n scheduleTick(rootView[CONTEXT], 1 /* DetectChanges */);\n}",...
[ "0.6680036", "0.6680036", "0.6680036", "0.6680036", "0.6680036", "0.6680036", "0.66754085", "0.66093713", "0.6606096", "0.652582", "0.64866054", "0.64866054", "0.6444182", "0.6269139", "0.6168631", "0.5820902", "0.5820902", "0.5820902", "0.57985413", "0.5775808", "0.5760721",...
0.5792005
19
Bindings & interpolations ///////////////////////////// Creates a single value binding.
function bind(value){var lView=getLView();return bindingUpdated(lView,lView[BINDING_INDEX]++,value)?value:NO_CHANGE;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bind(value) {\n return bindingUpdated(viewData[BINDING_INDEX]++, value) ? value : NO_CHANGE;\n}", "update() {\n this.bindings.forEach((binding) => {\n if (\n binding.element &&\n binding.attribute &&\n binding.element.hasOwnProperty(binding.attribute)\n ) {\n ...
[ "0.61435527", "0.6057239", "0.60274476", "0.5977154", "0.5977154", "0.5902373", "0.58090174", "0.58090174", "0.5808067", "0.5791718", "0.5791718", "0.5791718", "0.5791718", "0.5791718", "0.5791718", "0.5791718", "0.5791718", "0.5791718", "0.5709771", "0.5678435", "0.5610636",...
0.5758246
18
Allocates the necessary amount of slots for host vars.
function allocHostVars(count){if(!getFirstTemplatePass())return;var lView=getLView();var tView=lView[TVIEW];queueHostBindingForCheck(tView,getCurrentDirectiveDef(),count);prefillHostVars(tView,lView,count);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allocHostVars(count) {\n if (!getFirstTemplatePass())\n return;\n var lView = getLView();\n var tView = lView[TVIEW];\n queueHostBindingForCheck(tView, getCurrentDirectiveDef(), count);\n prefillHostVars(tView, lView, count);\n}", "function allocHostVars(count) {\n if (!getFirst...
[ "0.64564574", "0.64564574", "0.5870054", "0.567141", "0.56622976", "0.56450015", "0.5559386", "0.54932684", "0.5354964", "0.5298682", "0.5297323", "0.5290891", "0.52901405", "0.52639186", "0.5260827", "0.5201515", "0.5171415", "0.51384795", "0.5094274", "0.50846434", "0.50734...
0.6423296
2
Create interpolation bindings with a variable number of expressions. If there are 1 to 8 expressions `interpolation1()` to `interpolation8()` should be used instead. Those are faster because there is no need to create an array of expressions and iterate over it. `values`: has static text at even indexes, has evaluated ...
function interpolationV(values){ngDevMode&&assertLessThan(2,values.length,'should have at least 3 values');ngDevMode&&assertEqual(values.length%2,1,'should have an odd number of values');var different=false;var lView=getLView();var bindingIndex=lView[BINDING_INDEX];for(var i=1;i<values.length;i+=2){// Check if bindings...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function interpolationV(values) {\n ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values');\n ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values');\n var different = false;\n for (var i = 1; i < values.length; i += 2) {\n // Check if bindi...
[ "0.70750725", "0.70541924", "0.70541924", "0.6818388", "0.6682525", "0.66235477", "0.64821017", "0.63452566", "0.6284577", "0.61920303", "0.6178907", "0.61372125", "0.6135318", "0.6086337", "0.60537267", "0.6032439", "0.6031643", "0.6028007", "0.6026147", "0.6023046", "0.5999...
0.68816406
3
Creates an interpolation binding with 1 expression.
function interpolation1(prefix,v0,suffix){var lView=getLView();var different=bindingUpdated(lView,lView[BINDING_INDEX],v0);lView[BINDING_INDEX]+=1;return different?prefix+stringify$1(v0)+suffix:NO_CHANGE;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "createInterpolationPlaceholder(index) {\n return `${_interpolationStart}${index}${_interpolationEnd}`;\n }", "function interpolation1(lView, prefix, v0, suffix) {\n var different = bindingUpdated(lView, nextBindingIndex(), v0);\n return different ? prefix + renderStringify(v0) + suffix : NO_CHA...
[ "0.63347226", "0.62459093", "0.61670864", "0.6125205", "0.6090376", "0.6090376", "0.6090376", "0.6090376", "0.6090376", "0.6090376", "0.60597265", "0.6037269", "0.6037269", "0.60271925", "0.59967977", "0.5935048", "0.5748369", "0.5714848", "0.56724566", "0.5661105", "0.562225...
0.6485364
0
Creates an interpolation binding with 2 expressions.
function interpolation2(prefix,v0,i0,v1,suffix){var lView=getLView();var different=bindingUpdated2(lView,lView[BINDING_INDEX],v0,v1);lView[BINDING_INDEX]+=2;return different?prefix+stringify$1(v0)+i0+stringify$1(v1)+suffix:NO_CHANGE;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function interpolation2(lView, prefix, v0, i0, v1, suffix) {\n var bindingIndex = getBindingIndex();\n var different = bindingUpdated2(lView, bindingIndex, v0, v1);\n incrementBindingIndex(2);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + suffix : NO_CHANGE;\n}", "function in...
[ "0.66356534", "0.65937424", "0.6581577", "0.6581577", "0.6581577", "0.6581577", "0.6581577", "0.6581577", "0.65719193", "0.64662105", "0.63373095", "0.6329485", "0.6329485", "0.63048106", "0.6250801", "0.6231849", "0.60345393", "0.6026958", "0.60213935", "0.5982703", "0.59827...
0.6668661
0
Creates an interpolation binding with 3 expressions.
function interpolation3(prefix,v0,i0,v1,i1,v2,suffix){var lView=getLView();var different=bindingUpdated3(lView,lView[BINDING_INDEX],v0,v1,v2);lView[BINDING_INDEX]+=3;return different?prefix+stringify$1(v0)+i0+stringify$1(v1)+i1+stringify$1(v2)+suffix:NO_CHANGE;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ɵɵinterpolation3(prefix, v0, i0, v1, i1, v2, suffix) {\n var lView = getLView();\n var bindingIndex = lView[BINDING_INDEX];\n var different = bindingUpdated3(lView, bindingIndex, v0, v1, v2);\n lView[BINDING_INDEX] += 3;\n // Only set static strings the first time (data will be null subsequ...
[ "0.6763766", "0.66855705", "0.65932614", "0.65781534", "0.65781534", "0.65781534", "0.65781534", "0.65781534", "0.65781534", "0.65661585", "0.6490521", "0.64578855", "0.64578855", "0.62223786", "0.6220029", "0.6170071", "0.61486375", "0.6138324", "0.6120928", "0.6120928", "0....
0.68514377
0
Create an interpolation binding with 4 expressions.
function interpolation4(prefix,v0,i0,v1,i1,v2,i2,v3,suffix){var lView=getLView();var different=bindingUpdated4(lView,lView[BINDING_INDEX],v0,v1,v2,v3);lView[BINDING_INDEX]+=4;return different?prefix+stringify$1(v0)+i0+stringify$1(v1)+i1+stringify$1(v2)+i2+stringify$1(v3)+suffix:NO_CHANGE;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function interpolationV(values){ngDevMode&&assertLessThan(2,values.length,'should have at least 3 values');ngDevMode&&assertEqual(values.length%2,1,'should have an odd number of values');var different=false;var lView=getLView();var bindingIndex=lView[BINDING_INDEX];for(var i=1;i<values.length;i+=2){// Check if bin...
[ "0.6763997", "0.6715632", "0.66204596", "0.6613839", "0.65569097", "0.65305597", "0.65091056", "0.6437086", "0.6427241", "0.6427241", "0.6427241", "0.6427241", "0.6427241", "0.6427241", "0.63971335", "0.63940156", "0.63902354", "0.6380066", "0.6372949", "0.63305044", "0.63274...
0.68157095
0
Creates an interpolation binding with 5 expressions.
function interpolation5(prefix,v0,i0,v1,i1,v2,i2,v3,i3,v4,suffix){var lView=getLView();var bindingIndex=lView[BINDING_INDEX];var different=bindingUpdated4(lView,bindingIndex,v0,v1,v2,v3);different=bindingUpdated(lView,bindingIndex+4,v4)||different;lView[BINDING_INDEX]+=5;return different?prefix+stringify$1(v0)+i0+strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n var bindingIndex = getBindingIndex();\n var different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated(lView, bindingIndex + 4, v4) || different;\n incrementBindingIndex(5);\n return diff...
[ "0.6584725", "0.6554887", "0.65536714", "0.65378076", "0.6489066", "0.6489066", "0.6442776", "0.6409216", "0.6409216", "0.6409216", "0.6409216", "0.6409216", "0.6409216", "0.6370976", "0.6319656", "0.6218015", "0.6206445", "0.6206445", "0.6206445", "0.6206445", "0.6206445", ...
0.69762826
0
Creates an interpolation binding with 6 expressions.
function interpolation6(prefix,v0,i0,v1,i1,v2,i2,v3,i3,v4,i4,v5,suffix){var lView=getLView();var bindingIndex=lView[BINDING_INDEX];var different=bindingUpdated4(lView,bindingIndex,v0,v1,v2,v3);different=bindingUpdated2(lView,bindingIndex+4,v4,v5)||different;lView[BINDING_INDEX]+=6;return different?prefix+stringify$1(v0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function interpolation7(prefix,v0,i0,v1,i1,v2,i2,v3,i3,v4,i4,v5,i5,v6,suffix){var lView=getLView();var bindingIndex=lView[BINDING_INDEX];var different=bindingUpdated4(lView,bindingIndex,v0,v1,v2,v3);different=bindingUpdated3(lView,bindingIndex+4,v4,v5,v6)||different;lView[BINDING_INDEX]+=7;return different?prefix+...
[ "0.692236", "0.6858854", "0.6754373", "0.6676143", "0.6670839", "0.65841895", "0.65841895", "0.65735793", "0.65716064", "0.6562313", "0.65051883", "0.65051883", "0.65051883", "0.65051883", "0.65051883", "0.65051883", "0.64993453", "0.64715177", "0.64715177", "0.64670086", "0....
0.70817053
0
Creates an interpolation binding with 7 expressions.
function interpolation7(prefix,v0,i0,v1,i1,v2,i2,v3,i3,v4,i4,v5,i5,v6,suffix){var lView=getLView();var bindingIndex=lView[BINDING_INDEX];var different=bindingUpdated4(lView,bindingIndex,v0,v1,v2,v3);different=bindingUpdated3(lView,bindingIndex+4,v4,v5,v6)||different;lView[BINDING_INDEX]+=7;return different?prefix+strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ɵɵinterpolation7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n var lView = getLView();\n var bindingIndex = lView[BINDING_INDEX];\n var different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated3(lView, bindingIndex + 4, v4, v5, v6)...
[ "0.67154723", "0.6682235", "0.66583425", "0.6621919", "0.6621919", "0.65377665", "0.65290093", "0.65290093", "0.65290093", "0.65290093", "0.65290093", "0.65290093", "0.6527902", "0.6338817", "0.62671167", "0.609689", "0.6082873", "0.6082717", "0.6049788", "0.60376626", "0.603...
0.7066136
0
Creates an interpolation binding with 8 expressions.
function interpolation8(prefix,v0,i0,v1,i1,v2,i2,v3,i3,v4,i4,v5,i5,v6,i6,v7,suffix){var lView=getLView();var bindingIndex=lView[BINDING_INDEX];var different=bindingUpdated4(lView,bindingIndex,v0,v1,v2,v3);different=bindingUpdated4(lView,bindingIndex+4,v4,v5,v6,v7)||different;lView[BINDING_INDEX]+=8;return different?pre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function interpolation7(prefix,v0,i0,v1,i1,v2,i2,v3,i3,v4,i4,v5,i5,v6,suffix){var lView=getLView();var bindingIndex=lView[BINDING_INDEX];var different=bindingUpdated4(lView,bindingIndex,v0,v1,v2,v3);different=bindingUpdated3(lView,bindingIndex+4,v4,v5,v6)||different;lView[BINDING_INDEX]+=7;return different?prefix+...
[ "0.6699991", "0.6671739", "0.65233755", "0.64798796", "0.6448483", "0.6448483", "0.6448483", "0.6448483", "0.6448483", "0.6448483", "0.6412103", "0.6412103", "0.63899857", "0.63876826", "0.6357493", "0.6206685", "0.6178972", "0.61722517", "0.61250585", "0.61250585", "0.608295...
0.6909944
0
Store a value in the `data` at a given `index`.
function store(index,value){var lView=getLView();var tView=lView[TVIEW];// We don't store any static data for local variables, so the first time // we see the template, we should store as null to avoid a sparse array var adjustedIndex=index+HEADER_OFFSET;if(adjustedIndex>=tView.data.length){tView.data[adjustedIndex]=nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set(index, value) {\n if (index >= this.length || index < 0) {\n console.error(`There is nothing on index ${index}`);\n return false;\n }\n\n index = Math.floor(index);\n\n this.data[index] = value;\n }", "setData (input, index) {\n\t\t// If index is >= size of Linked List, It adds the val...
[ "0.78839046", "0.7376389", "0.7290037", "0.6988681", "0.6988681", "0.69472885", "0.68765205", "0.6732283", "0.67319876", "0.6712521", "0.67000335", "0.6669253", "0.6610619", "0.65922624", "0.65331626", "0.65109676", "0.6482154", "0.6476766", "0.64528", "0.6451745", "0.6436903...
0.6458082
18
Retrieves a local reference from the current contextViewData. If the reference to retrieve is in a parent view, this instruction is used in conjunction with a nextContext() call, which walks up the tree and updates the contextViewData instance.
function reference(index){var contextLView=getContextLView();return loadInternal(contextLView,index);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get localReference() {\n return this.localRef;\n }", "function reference(index) {\n var contextLView = getContextLView();\n return loadInternal(contextLView, index);\n}", "function reference(index) {\n var contextLView = getContextLView();\n return loadInternal(contextLView, index);\n}", ...
[ "0.5918231", "0.5780945", "0.5780945", "0.5697497", "0.5697276", "0.5588049", "0.5550132", "0.5550132", "0.5527443", "0.5520306", "0.5450537", "0.53792375", "0.536689", "0.5337583", "0.53230405", "0.53230405", "0.53230405", "0.53230405", "0.53230405", "0.53230405", "0.5323040...
0.58488506
1
Retrieves a value from current `viewData`.
function load(index){return loadInternal(getLView(),index);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCurrentView() {\n return viewData;\n}", "_get_value() {\n return this._has_value() ? this._value : undefined;\n }", "get value() {\n return this._model ? this._getValueFromModel(this._model.selection) : this._pendingValue;\n }", "get value() {\n return this._model ? this._...
[ "0.6971747", "0.6355425", "0.63290036", "0.63290036", "0.63224834", "0.63224834", "0.62929314", "0.627339", "0.62144125", "0.6159433", "0.61448556", "0.6132215", "0.6132215", "0.6132215", "0.61248064", "0.61162245", "0.6097713", "0.6061968", "0.6034554", "0.6034554", "0.60345...
0.0
-1
Facade for the attribute injection from DI.
function injectAttribute(attrNameToInject){return injectAttributeImpl(getPreviousOrParentTNode(),attrNameToInject);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AttributeDecorator() { }", "function AttributeDecorator() { }", "function AttributeDecorator$1(){}", "function AttributeDecorator$1() {}", "function AttributeDecorator$1() {}", "function AttributeDecorator$1() {}", "function AttributeDecorator$1() { }", "function AttributeDecorator$1() { }",...
[ "0.69163764", "0.69163764", "0.6580914", "0.63835156", "0.63835156", "0.63835156", "0.63271284", "0.63271284", "0.59713215", "0.5909994", "0.58973014", "0.58973014", "0.58973014", "0.56790066", "0.5505412", "0.5495533", "0.54868656", "0.54348165", "0.5430819", "0.53852004", "...
0.49283627
57
Registers a QueryList, associated with a content query, for later refresh (part of a view refresh).
function registerContentQuery(queryList,currentDirectiveIndex){var viewData=getLView();var tView=viewData[TVIEW];var savedContentQueriesLength=(viewData[CONTENT_QUERIES]||(viewData[CONTENT_QUERIES]=[])).push(queryList);if(getFirstTemplatePass()){var tViewContentQueries=tView.contentQueries||(tView.contentQueries=[]);va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function registerContentQuery(queryList) {\n var savedContentQueriesLength = (viewData[CONTENT_QUERIES] || (viewData[CONTENT_QUERIES] = [])).push(queryList);\n if (firstTemplatePass) {\n var currentDirectiveIndex = viewData.length - 1;\n var tViewContentQueries = tView.contentQueries || (tView....
[ "0.7847752", "0.7667614", "0.7667614", "0.6134329", "0.6098715", "0.6098715", "0.6098715", "0.6098715", "0.6098715", "0.6087541", "0.6067446", "0.60358876", "0.59931093", "0.59757936", "0.5923583", "0.5858898", "0.5858898", "0.5858898", "0.5858898", "0.5858898", "0.5858898", ...
0.76986337
1
Returns the current OpaqueViewState instance. Used in conjunction with the restoreView() instruction to save a snapshot of the current view and restore it when listeners are invoked. This allows walking the declaration view tree in listeners to get vars from parent views.
function getCurrentView(){return getLView();}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ɵɵrestoreView(viewToRestore) {\n instructionState.lFrame.contextLView = viewToRestore;\n return viewToRestore[CONTEXT];\n}", "getInternalState ()\n {\n return this.viewerState;\n }", "function ɵɵgetCurrentView() {\n return getLView();\n }", "function getTView() {\n ...
[ "0.5655595", "0.5447891", "0.5405306", "0.5388741", "0.5388741", "0.5388741", "0.5388741", "0.5388741", "0.5388741", "0.5366067", "0.535653", "0.5275465", "0.51686364", "0.51686364", "0.5140135", "0.5140135", "0.5140135", "0.5140135", "0.5140135", "0.5140135", "0.5140135", ...
0.4801303
49
Returns a list of all the active players present on the provided ref instance (which can be an instance of a directive, component or element). This function will only return players that have been added to the ref instance using `addPlayer` or any players that are active through any template styling bindings (`[style]`...
function getPlayers(ref){var context=getLContext(ref);if(!context){ngDevMode&&throwInvalidRefError();return[];}var stylingContext=getStylingContext(context.nodeIndex,context.lView);var playerContext=stylingContext?getPlayerContext(stylingContext):null;return playerContext?getPlayersInternal(playerContext):[];}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPlayers(ref) {\n var context = getContext(ref);\n if (!context) {\n ngDevMode && throwInvalidRefError();\n return [];\n }\n var stylingContext = getStylingContext(context.nodeIndex - HEADER_OFFSET, context.lViewData);\n var playerContext = stylingContext ? getPlayerContext(...
[ "0.7793726", "0.77759385", "0.77759385", "0.7764053", "0.6551704", "0.62082464", "0.6141473", "0.6056851", "0.59668285", "0.59313667", "0.59171444", "0.5737564", "0.5737564", "0.5726127", "0.5714703", "0.56995237", "0.56524014", "0.5625612", "0.55725616", "0.5553317", "0.5537...
0.76070404
4
Publishes the given function to `window.ngDevMode` so that it can be used from the browser console when an application is not in production.
function publishGlobalUtil(name,fn){var w=_global;ngDevMode&&assertDefined(fn,'function not defined');if(w){var container=w[GLOBAL_PUBLISH_EXPANDO_KEY];if(!container){container=w[GLOBAL_PUBLISH_EXPANDO_KEY]={};}container[name]=fn;}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isDev(fn) {\n if (devMode) {\n return fn;\n } else {\n return passthrough();\n }\n}", "function publishGlobalUtil(name, fn) {\n var w = _global;\n ngDevMode && assertDefined(fn, 'function not defined');\n if (w) {\n var container = w[GLOBAL_PUBLISH_EXPANDO_KEY];\n ...
[ "0.644995", "0.6448094", "0.6448094", "0.6448094", "0.63306963", "0.63306963", "0.63306963", "0.63306963", "0.63306963", "0.63306963", "0.6295425", "0.62693596", "0.62435824", "0.59258384", "0.5906166", "0.5906166", "0.5906166", "0.5906166", "0.5906166", "0.5906166", "0.59015...
0.61317205
13
Creates the root component view and the root component node.
function createRootComponentView(rNode,def,rootView,rendererFactory,renderer,sanitizer){resetComponentState();var tView=rootView[TVIEW];var componentView=createLView(rootView,getOrCreateTView(def.template,def.consts,def.vars,def.directiveDefs,def.pipeDefs,def.viewQuery),null,def.onPush?8/* Dirty */:4/* CheckAlways */,r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createRootComponentView(rNode, def, rootView, rendererFactory, renderer, sanitizer) {\n resetComponentState();\n var tView = rootView[TVIEW];\n var componentView = createLView(rootView, getOrCreateTView(def.template, def.consts, def.vars, def.directiveDefs, def.pipeDefs, def.viewQuery), null, def...
[ "0.7447927", "0.7447927", "0.7444174", "0.72715193", "0.7248501", "0.72359824", "0.7070045", "0.7067108", "0.7067108", "0.7067108", "0.7067108", "0.7067108", "0.7067108", "0.7026169", "0.70195353", "0.70195353", "0.70195353", "0.70195353", "0.70195353", "0.70182055", "0.69739...
0.7953557
0
Creates a root component and sets it up with features and host bindings. Shared by renderComponent() and ViewContainerRef.createComponent().
function createRootComponent(componentView,componentDef,rootView,rootContext,hostFeatures){var tView=rootView[TVIEW];// Create directive instance with factory() and store at next index in viewData var component=instantiateRootComponent(tView,rootView,componentDef);rootContext.components.push(component);componentView[CO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createRootComponent(componentView, componentDef, rootView, rootContext, hostFeatures) {\n var tView = rootView[TVIEW];\n // Create directive instance with factory() and store at next index in viewData\n var component = instantiateRootComponent(tView, rootView, componentDef);\n rootContext.comp...
[ "0.7303839", "0.71832263", "0.71832263", "0.71832263", "0.71832263", "0.71832263", "0.71832263", "0.7149433", "0.71161586", "0.70576257", "0.70576257", "0.68623596", "0.6748279", "0.6703952", "0.66980565", "0.66980565", "0.66980565", "0.66980565", "0.66980565", "0.66634214", ...
0.70897627
9
Retrieve the root context for any component by walking the parent `LView` until reaching the root `LView`.
function getRootContext$2(component){var rootContext=getRootView(component)[CONTEXT];ngDevMode&&assertDefined(rootContext,'rootContext');return rootContext;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRootContext$1(target){var lViewData=Array.isArray(target)?target:loadLContext(target).lView;var rootLView=getRootView$1(lViewData);return rootLView[CONTEXT];}", "function getRootContext$1(target) {\n var lViewData = Array.isArray(target) ? target : loadLContext(target).lView;\n var rootLView = ...
[ "0.7029626", "0.67829543", "0.67829543", "0.6662693", "0.65458786", "0.6538648", "0.6531089", "0.6495639", "0.649042", "0.649042", "0.649042", "0.649042", "0.649042", "0.649042", "0.6476696", "0.6445953", "0.63698494", "0.6292883", "0.6291926", "0.628502", "0.628502", "0.62...
0.6773254
3
Wait on component until it is rendered. This function returns a `Promise` which is resolved when the component's change detection is executed. This is determined by finding the scheduler associated with the `component`'s render tree and waiting until the scheduler flushes. If nothing is scheduled, the function returns ...
function whenRendered(component){return getRootContext$2(component).clean;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function waitForRender() {\n var deferredRender = $q.defer();\n function wait() {\n if($element.find(\"table:visible\").length === 0) {\n $timeout(wait, 100);\n } else {\n deferredRender.resolve();\n }\n ...
[ "0.5795797", "0.5453563", "0.5231074", "0.5216535", "0.5157909", "0.5054539", "0.488135", "0.48508233", "0.48239657", "0.48122275", "0.47992393", "0.4796587", "0.47756678", "0.47629455", "0.4733184", "0.46997592", "0.4685837", "0.4662771", "0.46602747", "0.46552923", "0.46466...
0.0
-1
Merges the definition from a super class to a sub class.
function InheritDefinitionFeature(definition){var superType=getSuperType(definition.type);var _loop_1=function _loop_1(){var e_1,_a;var superDef=undefined;if(isComponentDef$1(definition)){// Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance. superDef=superType.ngComponentDef||superType.ngDirec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extend(protoProps) {\n var parent = this;\n var child;\n var args = [].slice.call(arguments);\n\n // The constructor function for the new subclass is either defined by you\n // (the \"constructor\" property in your `extend` definition), or defaulted\n // by us to simply call the parent's...
[ "0.5947731", "0.59322673", "0.5929354", "0.5914296", "0.5868394", "0.58589613", "0.5809874", "0.5799332", "0.57961535", "0.57843107", "0.5762659", "0.57616997", "0.57056725", "0.5678455", "0.5670031", "0.5652738", "0.56404847", "0.5630429", "0.56116056", "0.56061816", "0.5604...
0.0
-1
Create a new `Injector` which is configured using a `defType` of `InjectorType`s.
function createInjector(defType,parent,additionalProviders){if(parent===void 0){parent=null;}if(additionalProviders===void 0){additionalProviders=null;}parent=parent||getNullInjector();return new R3Injector(defType,additionalProviders,parent);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createInjector(defType) {\n var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var additionalProviders = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var name = arguments.length > 3 ? arguments[3] : undefined;\n ...
[ "0.86547226", "0.8654048", "0.7731138", "0.7731138", "0.7731138", "0.7731138", "0.7731138", "0.7731138", "0.75203216", "0.75203216", "0.7463655", "0.74473333", "0.7369284", "0.7328862", "0.6652218", "0.66419196", "0.66318023", "0.6622258", "0.6538564", "0.6538564", "0.6538564...
0.75805557
8
Converts a `SingleProvider` into a factory function.
function providerToFactory(provider,ngModuleType,providers){var factory=undefined;if(isTypeProvider(provider)){return injectableDefOrInjectorDefFactory(resolveForwardRef(provider));}else{if(isValueProvider(provider)){factory=function factory(){return resolveForwardRef(provider.useValue);};}else if(isExistingProvider(pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function providerToFactory(provider, ngModuleType, providers) {\n var factory = undefined;\n\n if (isTypeProvider(provider)) {\n var unwrappedProvider = resolveForwardRef(provider);\n return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);\n ...
[ "0.6464691", "0.641565", "0.64040005", "0.6390026", "0.6390026", "0.6390026", "0.6390026", "0.6390026", "0.6390026", "0.6252546", "0.6252546", "0.6153805", "0.61235464", "0.59496367", "0.59476143", "0.5941457", "0.5925117", "0.59231347", "0.59231347", "0.59231347", "0.5923134...
0.63838595
9
Resolves a provider and publishes it to the DI system.
function resolveProvider$1(provider,tInjectables,lInjectablesBlueprint,isComponent$$1,isViewProvider){provider=resolveForwardRef(provider);if(Array.isArray(provider)){// Recursively call `resolveProvider` // Recursion is OK in this case because this code will not be in hot-path once we implement // cloning of the initi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resolveReflectiveProvider(provider){return new ResolvedReflectiveProvider_(ReflectiveKey.get(provider.provide),[resolveReflectiveFactory(provider)],provider.multi||false);}", "function _resolve() {\n \n // low level dependencies need to be resolved first\n _adapters.resolve(_container);\n _r...
[ "0.5901129", "0.58865786", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58680123", "0.58575493", "0.58342224", "0.5813746", "0.5714957", "0.5714957", ...
0.5527659
34
Add a factory in a multi factory.
function multiFactoryAdd(multiFactory,factory,isComponentProvider){multiFactory.multi.push(factory);if(isComponentProvider){multiFactory.componentProviders++;}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function multiFactoryAdd(multiFactory, factory, isComponentProvider) {\n multiFactory.multi.push(factory);\n if (isComponentProvider) {\n multiFactory.componentProviders++;\n }\n}", "function multiFactoryAdd(multiFactory, factory, isComponentProvider) {\n multiFactory.multi.push(factory);\n ...
[ "0.7995047", "0.7995047", "0.7995047", "0.74678594", "0.7396789", "0.7396789", "0.7396789", "0.7396789", "0.7396789", "0.7396789", "0.7377627", "0.6577533", "0.6577533", "0.6389336", "0.6295568", "0.6293257", "0.6293257", "0.6293257", "0.6293257", "0.6293257", "0.6293257", ...
0.80716
0
Returns the index of item in the array, but only in the begin to end range.
function indexOf(item,arr,begin,end){for(var i=begin;i<end;i++){if(arr[i]===item)return i;}return-1;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function indexOf(item, arr, begin, end) {\n for (let i = begin; i < end; i++) {\n if (arr[i] === item)\n return i;\n }\n return -1;\n}", "function indexOf(item, arr, begin, end) {\n for (let i = begin; i < end; i++) {\n if (arr[i] === item)\n return i;\n }\n ...
[ "0.7652124", "0.7652124", "0.7652124", "0.7652124", "0.7652124", "0.7652124", "0.7635754", "0.7580673", "0.75520176", "0.75520176", "0.75520176", "0.68016183", "0.6642472", "0.65324837", "0.6428712", "0.6428712", "0.6428712", "0.6428712", "0.6369323", "0.63687295", "0.6347178...
0.7120106
11
Use this with `multi` `providers`.
function multiProvidersFactoryResolver(_,tData,lData,tNode){return multiResolve(this.multi,[]);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get providers() { return this._providers; }", "processProvider(provider, ngModuleType, providers) {\n // Determine the token from the provider. Either it's its own token, or has a {provide: ...}\n // property.\n provider = resolveForwardRef(provider);\n let token = isTypeProvider(prov...
[ "0.72650814", "0.684817", "0.684817", "0.684817", "0.684817", "0.684817", "0.684817", "0.6774862", "0.6761203", "0.6761203", "0.6761203", "0.6761203", "0.6761203", "0.6761203", "0.67224175", "0.6563856", "0.6524845", "0.6524845", "0.6507801", "0.65032876", "0.6487483", "0.6...
0.6359262
27
Use this with `multi` `viewProviders`. This factory knows how to concatenate itself with the existing `multi` `providers`.
function multiViewProvidersFactoryResolver(_,tData,lData,tNode){var factories=this.multi;var result;if(this.providerFactory){var componentCount=this.providerFactory.componentProviders;var multiProviders=getNodeInjectable(tData,lData,this.providerFactory.index,tNode);// Copy the section of the array which contains `mult...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function multiViewProvidersFactoryResolver(_, tData, lData, tNode) {\n var factories = this.multi;\n var result;\n if (this.providerFactory) {\n var componentCount = this.providerFactory.componentProviders;\n var multiProviders = getNodeInjectable(tData, lData, this.providerFactory.index, tN...
[ "0.702179", "0.702179", "0.702179", "0.6960198", "0.6948848", "0.6895705", "0.6895705", "0.6895705", "0.6895705", "0.6895705", "0.6895705", "0.64956", "0.64956", "0.6322079", "0.61640704", "0.6163648", "0.6157602", "0.6144589", "0.6144589", "0.6144589", "0.6144589", "0.6144...
0.74988705
0
Maps an array of factories into an array of values.
function multiResolve(factories,result){for(var i=0;i<factories.length;i++){var factory=factories[i];result.push(factory());}return result;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function multiResolve(factories, result) {\n for (let i = 0; i < factories.length; i++) {\n const factory = factories[i];\n result.push(factory());\n }\n return result;\n}", "function multiResolve(factories, result) {\n for (let i = 0; i < factories.length; i++) {\n const factory...
[ "0.6255931", "0.6255931", "0.6255931", "0.6255931", "0.6255931", "0.6255931", "0.6207832", "0.61914504", "0.6173574", "0.6173574", "0.6173574", "0.60479915", "0.6027646", "0.59521294", "0.58377445", "0.58113104", "0.57643884", "0.5725838", "0.57226425", "0.5696337", "0.569226...
0.62013274
7
Creates a multi factory.
function multiFactory(factoryFn,index,isViewProvider,isComponent$$1,f){var factory=new NodeInjectorFactory(factoryFn,isViewProvider,directiveInject);factory.multi=[];factory.index=index;factory.componentProviders=0;multiFactoryAdd(factory,f,isComponent$$1&&!isViewProvider);return factory;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function multiFactoryAdd(multiFactory,factory,isComponentProvider){multiFactory.multi.push(factory);if(isComponentProvider){multiFactory.componentProviders++;}}", "function multiFactory(factoryFn, index, isViewProvider, isComponent$$1, f) {\n var factory = new NodeInjectorFactory(factoryFn, isViewProvider, di...
[ "0.70093536", "0.697128", "0.697128", "0.6760486", "0.6719503", "0.67179084", "0.67088217", "0.67088217", "0.67088217", "0.67088217", "0.67088217", "0.67088217", "0.6684153", "0.6684153", "0.6684153", "0.6355821", "0.6355821", "0.6317121", "0.6267266", "0.6210597", "0.6210597...
0.6779136
3
Creates an ElementRef given a node.
function createElementRef(ElementRefToken,tNode,view){if(!R3ElementRef){// TODO: Fix class name, should be ElementRef, but there appears to be a rollup bug R3ElementRef=/** @class */function(_super){Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ElementRef_,_super);function ElementRef_(){return _super!==null&&...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createElementRef(tNode, lView) {\n return new ElementRef(getNativeByTNode(tNode, lView));\n }", "function createElementRef(tNode, lView) {\n return new ElementRef(getNativeByTNode(tNode, lView));\n}", "function createElementRef(tNode, lView) {\n return new ElementRef(getNativeByTNode...
[ "0.7042816", "0.69904524", "0.69904524", "0.69904524", "0.69904524", "0.69904524", "0.69904524", "0.6984846", "0.6839632", "0.6579256", "0.6579256", "0.6579256", "0.6579256", "0.6011089", "0.6011089", "0.6011089", "0.59797466", "0.59797466", "0.59797466", "0.59797466", "0.597...
0.67252004
9
Creates a TemplateRef given a node.
function injectTemplateRef(TemplateRefToken,ElementRefToken){return createTemplateRef(TemplateRefToken,ElementRefToken,getPreviousOrParentTNode(),getLView());}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createTemplateRef(hostTNode, hostLView) {\n if (hostTNode.type & 4 /* Container */) {\n ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated');\n return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));\n }\n return null;\n}", "funct...
[ "0.6794536", "0.6794536", "0.6794536", "0.6794536", "0.6794536", "0.6794536", "0.6702156", "0.66953665", "0.6465497", "0.64376485", "0.64364946", "0.64353234", "0.64353234", "0.64353234", "0.64353234", "0.64353234", "0.64353234", "0.64272726", "0.64272726", "0.6408794", "0.64...
0.59325725
32
Creates a TemplateRef and stores it on the injector.
function createTemplateRef(TemplateRefToken,ElementRefToken,hostTNode,hostView){if(!R3TemplateRef){// TODO: Fix class name, should be TemplateRef, but there appears to be a rollup bug R3TemplateRef=/** @class */function(_super){Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TemplateRef_,_super);function Templa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function injectTemplateRef() {\n return createTemplateRef(getCurrentTNode(), getLView());\n }", "function injectTemplateRef() {\n return createTemplateRef(getCurrentTNode(), getLView());\n}", "function injectTemplateRef() {\n return createTemplateRef(getCurrentTNode(), getLView());\n}", "fu...
[ "0.8301392", "0.8243145", "0.8243145", "0.8243145", "0.8243145", "0.8243145", "0.8243145", "0.822395", "0.6957932", "0.69476074", "0.69476074", "0.69476074", "0.6923392", "0.6804864", "0.67627484", "0.67627484", "0.6753792", "0.653667", "0.65176934", "0.6460389", "0.64452547"...
0.6882816
13
Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef already exists, retrieves the existing ViewContainerRef.
function injectViewContainerRef(ViewContainerRefToken,ElementRefToken){var previousTNode=getPreviousOrParentTNode();return createContainerRef(ViewContainerRefToken,ElementRefToken,previousTNode,getLView());}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function injectViewContainerRef() {\n var previousTNode = getCurrentTNode();\n return createContainerRef(previousTNode, getLView());\n}", "function injectViewContainerRef() {\n const previousTNode = getCurrentTNode();\n return createContainerRef(previousTNode, getLView());\n}", "function injectViewCont...
[ "0.81588554", "0.81540495", "0.81540495", "0.81540495", "0.81540495", "0.81540495", "0.81540495", "0.81183034", "0.6833037", "0.6787243", "0.67666405", "0.6758719", "0.6758719", "0.6719863", "0.67060256", "0.67060256", "0.67060256", "0.6434582", "0.6434582", "0.6434582", "0.6...
0.6545806
17
Creates a ViewContainerRef and stores it on the injector.
function createContainerRef(ViewContainerRefToken,ElementRefToken,hostTNode,hostView){if(!R3ViewContainerRef){// TODO: Fix class name, should be ViewContainerRef, but there appears to be a rollup bug R3ViewContainerRef=/** @class */function(_super){Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ViewContainerRe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function injectViewContainerRef() {\n const previousTNode = getCurrentTNode();\n return createContainerRef(previousTNode, getLView());\n}", "function injectViewContainerRef() {\n const previousTNode = getCurrentTNode();\n return createContainerRef(previousTNode, getLView());\n}", "function injectVi...
[ "0.840245", "0.840245", "0.840245", "0.840245", "0.840245", "0.840245", "0.8363846", "0.8356282", "0.7060843", "0.7025963", "0.6999497", "0.6999497", "0.6917571", "0.6825248", "0.6825248", "0.6825248", "0.6665076", "0.64561933", "0.64561933", "0.64561933", "0.64561933", "0....
0.70956177
8
Returns a ChangeDetectorRef (a.k.a. a ViewRef)
function injectChangeDetectorRef(){return createViewRef(getPreviousOrParentTNode(),getLView(),null);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function injectChangeDetectorRef() {\n return createViewRef(getPreviousOrParentTNode(), getLView(), null);\n}", "function injectChangeDetectorRef() {\n return createViewRef(getPreviousOrParentTNode(), getLView(), null);\n}", "function injectChangeDetectorRef() {\n return createViewRef(getPreviousOrPar...
[ "0.7618842", "0.7618842", "0.7618842", "0.75690556", "0.65421474", "0.6413998", "0.63832796", "0.63832796", "0.63832796", "0.63832796", "0.63832796", "0.6301412", "0.62019974", "0.61720544", "0.5983379", "0.5983379", "0.59105533", "0.5736367", "0.5703013", "0.5659992", "0.563...
0.7725259
0
Creates a ViewRef and stores it on the injector as ChangeDetectorRef (public alias).
function createViewRef(hostTNode,hostView,context){if(isComponent(hostTNode)){var componentIndex=hostTNode.directiveStart;var componentView=getComponentViewByIndex(hostTNode.index,hostView);return new ViewRef(componentView,context,componentIndex);}else if(hostTNode.type===3/* Element */){var hostComponentView=findCompo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function injectChangeDetectorRef() {\n return createViewRef(getPreviousOrParentTNode(), getLView(), null);\n}", "function injectChangeDetectorRef() {\n return createViewRef(getPreviousOrParentTNode(), getLView(), null);\n}", "function injectChangeDetectorRef() {\n return createViewRef(getPreviousOrPar...
[ "0.8019255", "0.8019255", "0.8019255", "0.79229134", "0.7644238", "0.73799473", "0.72220665", "0.72163963", "0.72163963", "0.72163963", "0.72163963", "0.72163963", "0.7064314", "0.7064314", "0.7064314", "0.7064314", "0.7064314", "0.7064314", "0.7042339", "0.7011775", "0.69428...
0.7084054
12
Returns a Renderer2 (or throws when application was bootstrapped with Renderer3)
function injectRenderer2(){return getOrCreateRenderer2(getLView());}/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * A wrapper around a native element inside o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOrCreateRenderer2(view) {\n var renderer = view[RENDERER];\n if (isProceduralRenderer(renderer)) {\n return renderer;\n }\n else {\n throw new Error('Cannot inject Renderer2 when the application uses Renderer3!');\n }\n}", "function getOrCreateRenderer2(lView) {\n ...
[ "0.79702", "0.77223456", "0.7654204", "0.76366585", "0.76366585", "0.76366585", "0.76366585", "0.76366585", "0.76366585", "0.7356921", "0.7297926", "0.7297926", "0.71580607", "0.71580607", "0.70460194", "0.70460194", "0.70460194", "0.6999419", "0.69449335", "0.69433933", "0.6...
0.5882601
41
Returns whether Angular is in development mode. After called once, the value is locked and won't change any more. By default, this is true, unless a user calls `enableProdMode` before calling this.
function isDevMode(){_runModeLocked=true;return _devMode;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isDevMode() {\n _runModeLocked = true;\n return _devMode;\n }", "function isDevMode() {\n _runModeLocked = true;\n return _devMode;\n }", "function isDevMode() {\n _runModeLocked = true;\n return _devMode;\n }", "function isDevMode() {\n _runModeLocked =...
[ "0.8204179", "0.8204179", "0.8204179", "0.81933945", "0.8140579", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8069573", "0.8003359", "0.78129005", ...
0.74716085
22
Disable Angular's development mode, which turns off assertions and other checks within the framework. One important assertion this disables verifies that a change detection pass does not result in additional changes to any bindings (also known as unidirectional data flow).
function enableProdMode(){if(_runModeLocked){throw new Error('Cannot enable prod mode after platform setup.');}_devMode=false;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disableDebugTools() {\n delete context.ng;\n}", "function disableDebugTools() {\n delete context.ng;\n}", "function disableDebugTools() {\n delete context.ng;\n }", "_checkConfigured() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._pointerTracke...
[ "0.65481377", "0.653827", "0.6469645", "0.6286102", "0.61678654", "0.61678654", "0.61254025", "0.61140865", "0.6086722", "0.6004987", "0.6004987", "0.6004987", "0.6004987", "0.6004987", "0.6004987", "0.5881823", "0.58394855", "0.58394855", "0.58394855", "0.58394855", "0.58394...
0.5509187
40
Escapes all potentially dangerous characters, so that the resulting string can be safely inserted into attribute or element text.
function encodeEntities(value){return value.replace(/&/g,'&amp;').replace(SURROGATE_PAIR_REGEXP,function(match){var hi=match.charCodeAt(0);var low=match.charCodeAt(1);return'&#'+((hi-0xD800)*0x400+(low-0xDC00)+0x10000)+';';}).replace(NON_ALPHANUMERIC_REGEXP,function(match){return'&#'+match.charCodeAt(0)+';';}).replace(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function escapeText(s) {\n \tif (!s) {\n \t\treturn \"\";\n \t}\n \ts = s + \"\";\n\n \t// Both single quotes and double quotes (for attributes)\n \treturn s.replace(/['\"<>&]/g, function (s) {\n \t\tswitch (s) {\n \t\t\tcase \"'\":\n \t\t\t\treturn \"&#039;\";\n \t\t\tcase \"\\\"\":\n \t\t\t\treturn \"...
[ "0.70107883", "0.69909495", "0.69390774", "0.68499833", "0.6843491", "0.682382", "0.68162304", "0.6810811", "0.6801559", "0.6772063", "0.66645736", "0.6633667", "0.6626396", "0.6620448", "0.6573189", "0.6540706", "0.6527008", "0.6527008", "0.6527008", "0.65237474", "0.6506242...
0.0
-1
Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to the DOM in a browser environment.
function _sanitizeHtml(defaultDoc,unsafeHtmlInput){var inertBodyElement=null;try{inertBodyHelper=inertBodyHelper||new InertBodyHelper(defaultDoc);// Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime). var unsafeHtml=unsafeHtmlInput?String(unsafeHtmlInput):'';inertBodyElement=inertB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sanitizeHtml(unsafeHtmlInput) {\n try {\n var containerEl = getInertElement();\n // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).\n var unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';\n // mXSS protection. Repeatedly p...
[ "0.71061194", "0.687774", "0.6785215", "0.6780681", "0.67546266", "0.6751584", "0.6751584", "0.6751584", "0.6751584", "0.6751584", "0.67262566", "0.6674135", "0.6650657", "0.6650657", "0.6650657", "0.6647659", "0.6643321", "0.66363937", "0.6576048", "0.647137", "0.6463639", ...
0.6706887
11
Parses text containing an ICU expression and produces a JSON object for it. Original code from closure library, modified for Angular.
function parseICUBlock(pattern){var cases=[];var values=[];var icuType=1/* plural */;var mainBinding=0;pattern=pattern.replace(ICU_BLOCK_REGEX,function(str,binding,type){if(type==='select'){icuType=0/* select */;}else{icuType=1/* plural */;}mainBinding=parseInt(binding.substr(1),10);return'';});var parts=extractParts(p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "parse (text) {\r\n var result = {}\r\n var find = null\r\n\r\n try {\r\n // CUIT\r\n find = text.match(/(?:C\\.U\\.I\\.T\\. )(\\d{2}-\\d{8}-\\d)/)\r\n result.CUIT = find[1]\r\n\r\n // Periodo (Mes/Año)\r\n find = text.match(/(\\d{2}\\/\\d{4})(?:\\sServicios\\sEventuales)/)\r\n ...
[ "0.62300175", "0.5406681", "0.5406681", "0.54043126", "0.5378994", "0.5311787", "0.5283116", "0.52567464", "0.52244854", "0.521255", "0.521255", "0.521255", "0.521255", "0.521255", "0.521255", "0.521255", "0.521255", "0.5202347", "0.5202347", "0.5202347", "0.5202347", "0.52...
0.49158326
40
Removes everything inside the subtemplates of a message.
function removeInnerTemplateTranslation(message){var match;var res='';var index=0;var inTemplate=false;var tagMatched;while((match=SUBTEMPLATE_REGEXP.exec(message))!==null){if(!inTemplate){res+=message.substring(index,match.index+match[0].length);tagMatched=match[1];inTemplate=true;}else{if(match[0]===MARKER+"/*"+tagMa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeInnerTemplateTranslation(message) {\n var match;\n var res = '';\n var index = 0;\n var inTemplate = false;\n var tagMatched;\n while ((match = SUBTEMPLATE_REGEXP.exec(message)) !== null) {\n if (!inTemplate) {\n res += message.substring(index, match.index + match...
[ "0.69816333", "0.69816333", "0.69816333", "0.6943389", "0.68937516", "0.68468255", "0.68468255", "0.68468255", "0.68468255", "0.68468255", "0.68468255", "0.6234191", "0.6117086", "0.60801584", "0.60520554", "0.6039565", "0.6039565", "0.6038917", "0.603571", "0.60329896", "0.6...
0.7077274
0
Extracts a part of a message and removes the rest. This method is used for extracting a part of the message associated with a template. A translated message can span multiple templates. Example: ``` Translate me! ```
function getTranslationForTemplate(message,subTemplateIndex){if(typeof subTemplateIndex!=='number'){// We want the root template message, ignore all sub-templates return removeInnerTemplateTranslation(message);}else{// We want a specific sub-template var start=message.indexOf(":"+subTemplateIndex+MARKER)+2+subTemplateI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeInnerTemplateTranslation(message){var match;var res='';var index=0;var inTemplate=false;var tagMatched;while((match=SUBTEMPLATE_REGEXP.exec(message))!==null){if(!inTemplate){res+=message.substring(index,match.index+match[0].length);tagMatched=match[1];inTemplate=true;}else{if(match[0]===MARKER+\"/*\...
[ "0.72471935", "0.6984339", "0.697038", "0.69391996", "0.69391996", "0.69391996", "0.69391996", "0.69391996", "0.69391996", "0.6925535", "0.6925535", "0.6925535", "0.6923164", "0.6923164", "0.6923164", "0.68870467", "0.68847525", "0.6820578", "0.6820578", "0.6820578", "0.68205...
0.72757685
0