|
|
@ -63,8 +63,6 @@ export default class Generator {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
contextualise ( block, expression, context, isEventHandler ) {
|
|
|
|
contextualise ( block, expression, context, isEventHandler ) {
|
|
|
|
if ( expression._contextualised ) return expression._contextualised;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.addSourcemapLocations( expression );
|
|
|
|
this.addSourcemapLocations( expression );
|
|
|
|
|
|
|
|
|
|
|
|
const usedContexts = [];
|
|
|
|
const usedContexts = [];
|
|
|
@ -155,13 +153,11 @@ export default class Generator {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
expression._contextualised = {
|
|
|
|
return {
|
|
|
|
dependencies,
|
|
|
|
dependencies,
|
|
|
|
contexts: usedContexts,
|
|
|
|
contexts: usedContexts,
|
|
|
|
snippet: `[✂${expression.start}-${expression.end}✂]`
|
|
|
|
snippet: `[✂${expression.start}-${expression.end}✂]`
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return expression._contextualised;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
findDependencies ( block, expression, isEventHandler ) {
|
|
|
|
findDependencies ( block, expression, isEventHandler ) {
|
|
|
|