|
|
@ -4,8 +4,7 @@ import { snip } from '../../utils/snip';
|
|
|
|
import Renderer from '../Renderer';
|
|
|
|
import Renderer from '../Renderer';
|
|
|
|
import { stringify_props } from '../../utils/stringify_props';
|
|
|
|
import { stringify_props } from '../../utils/stringify_props';
|
|
|
|
import { get_slot_scope } from './shared/get_slot_scope';
|
|
|
|
import { get_slot_scope } from './shared/get_slot_scope';
|
|
|
|
|
|
|
|
import { AppendTarget } from '../../../interfaces';
|
|
|
|
type AppendTarget = any; // TODO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function stringify_attribute(chunk: Node) {
|
|
|
|
function stringify_attribute(chunk: Node) {
|
|
|
|
if (chunk.type === 'Text') {
|
|
|
|
if (chunk.type === 'Text') {
|
|
|
@ -111,4 +110,4 @@ export default function(node, renderer: Renderer, options) {
|
|
|
|
const slots = stringify_props(slot_fns);
|
|
|
|
const slots = stringify_props(slot_fns);
|
|
|
|
|
|
|
|
|
|
|
|
renderer.append(`\${@validate_component(${expression}, '${node.name}').$$render($$result, ${props}, ${bindings}, ${slots})}`);
|
|
|
|
renderer.append(`\${@validate_component(${expression}, '${node.name}').$$render($$result, ${props}, ${bindings}, ${slots})}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|