|
|
@ -27,7 +27,7 @@ function get_each_context(ctx, list, i) {
|
|
|
|
// (8:0) {#each things as thing}
|
|
|
|
// (8:0) {#each things as thing}
|
|
|
|
function create_each_block(ctx) {
|
|
|
|
function create_each_block(ctx) {
|
|
|
|
let span;
|
|
|
|
let span;
|
|
|
|
let t0_value = ctx[4].name + "";
|
|
|
|
let t0_value = /*thing*/ ctx[4].name + "";
|
|
|
|
let t0;
|
|
|
|
let t0;
|
|
|
|
let t1;
|
|
|
|
let t1;
|
|
|
|
|
|
|
|
|
|
|
@ -38,10 +38,10 @@ function create_each_block(ctx) {
|
|
|
|
t1 = space();
|
|
|
|
t1 = space();
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const foo = ctx[1];
|
|
|
|
const foo = /*foo*/ ctx[1];
|
|
|
|
const bar = ctx[2];
|
|
|
|
const bar = /*bar*/ ctx[2];
|
|
|
|
const baz = ctx[3];
|
|
|
|
const baz = /*baz*/ ctx[3];
|
|
|
|
const thing = ctx[4];
|
|
|
|
const thing = /*thing*/ ctx[4];
|
|
|
|
console.log({ foo, bar, baz, thing });
|
|
|
|
console.log({ foo, bar, baz, thing });
|
|
|
|
debugger;
|
|
|
|
debugger;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -54,13 +54,13 @@ function create_each_block(ctx) {
|
|
|
|
insert_dev(target, t1, anchor);
|
|
|
|
insert_dev(target, t1, anchor);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
p: function update(ctx, dirty) {
|
|
|
|
p: function update(ctx, dirty) {
|
|
|
|
if (dirty & /* things */ 1 && t0_value !== (t0_value = ctx[4].name + "")) set_data_dev(t0, t0_value);
|
|
|
|
if (dirty & /*things*/ 1 && t0_value !== (t0_value = /*thing*/ ctx[4].name + "")) set_data_dev(t0, t0_value);
|
|
|
|
|
|
|
|
|
|
|
|
if (dirty & /*foo, bar, baz, things*/ 15) {
|
|
|
|
if (dirty & /*foo, bar, baz, things*/ 15) {
|
|
|
|
const foo = ctx[1];
|
|
|
|
const foo = /*foo*/ ctx[1];
|
|
|
|
const bar = ctx[2];
|
|
|
|
const bar = /*bar*/ ctx[2];
|
|
|
|
const baz = ctx[3];
|
|
|
|
const baz = /*baz*/ ctx[3];
|
|
|
|
const thing = ctx[4];
|
|
|
|
const thing = /*thing*/ ctx[4];
|
|
|
|
console.log({ foo, bar, baz, thing });
|
|
|
|
console.log({ foo, bar, baz, thing });
|
|
|
|
debugger;
|
|
|
|
debugger;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -87,7 +87,7 @@ function create_fragment(ctx) {
|
|
|
|
let p;
|
|
|
|
let p;
|
|
|
|
let t1;
|
|
|
|
let t1;
|
|
|
|
let t2;
|
|
|
|
let t2;
|
|
|
|
let each_value = ctx[0];
|
|
|
|
let each_value = /*things*/ ctx[0];
|
|
|
|
let each_blocks = [];
|
|
|
|
let each_blocks = [];
|
|
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
|
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
|
@ -103,7 +103,7 @@ function create_fragment(ctx) {
|
|
|
|
t0 = space();
|
|
|
|
t0 = space();
|
|
|
|
p = element("p");
|
|
|
|
p = element("p");
|
|
|
|
t1 = text("foo: ");
|
|
|
|
t1 = text("foo: ");
|
|
|
|
t2 = text(ctx[1]);
|
|
|
|
t2 = text(/*foo*/ ctx[1]);
|
|
|
|
add_location(p, file, 12, 0, 182);
|
|
|
|
add_location(p, file, 12, 0, 182);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
l: function claim(nodes) {
|
|
|
|
l: function claim(nodes) {
|
|
|
@ -121,7 +121,7 @@ function create_fragment(ctx) {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
p: function update(ctx, [dirty]) {
|
|
|
|
p: function update(ctx, [dirty]) {
|
|
|
|
if (dirty & /*things*/ 1) {
|
|
|
|
if (dirty & /*things*/ 1) {
|
|
|
|
each_value = ctx[0];
|
|
|
|
each_value = /*things*/ ctx[0];
|
|
|
|
let i;
|
|
|
|
let i;
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < each_value.length; i += 1) {
|
|
|
|
for (i = 0; i < each_value.length; i += 1) {
|
|
|
@ -143,7 +143,7 @@ function create_fragment(ctx) {
|
|
|
|
each_blocks.length = each_value.length;
|
|
|
|
each_blocks.length = each_value.length;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (dirty & /* foo */ 2) set_data_dev(t2, ctx[1]);
|
|
|
|
if (dirty & /*foo*/ 2) set_data_dev(t2, /*foo*/ ctx[1]);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
i: noop,
|
|
|
|
i: noop,
|
|
|
|
o: noop,
|
|
|
|
o: noop,
|
|
|
@ -212,19 +212,19 @@ class Component extends SvelteComponentDev {
|
|
|
|
const { ctx } = this.$$;
|
|
|
|
const { ctx } = this.$$;
|
|
|
|
const props = options.props || ({});
|
|
|
|
const props = options.props || ({});
|
|
|
|
|
|
|
|
|
|
|
|
if (ctx[0] === undefined && !("things" in props)) {
|
|
|
|
if (/*things*/ ctx[0] === undefined && !("things" in props)) {
|
|
|
|
console.warn("<Component> was created without expected prop 'things'");
|
|
|
|
console.warn("<Component> was created without expected prop 'things'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (ctx[1] === undefined && !("foo" in props)) {
|
|
|
|
if (/*foo*/ ctx[1] === undefined && !("foo" in props)) {
|
|
|
|
console.warn("<Component> was created without expected prop 'foo'");
|
|
|
|
console.warn("<Component> was created without expected prop 'foo'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (ctx[2] === undefined && !("bar" in props)) {
|
|
|
|
if (/*bar*/ ctx[2] === undefined && !("bar" in props)) {
|
|
|
|
console.warn("<Component> was created without expected prop 'bar'");
|
|
|
|
console.warn("<Component> was created without expected prop 'bar'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (ctx[3] === undefined && !("baz" in props)) {
|
|
|
|
if (/*baz*/ ctx[3] === undefined && !("baz" in props)) {
|
|
|
|
console.warn("<Component> was created without expected prop 'baz'");
|
|
|
|
console.warn("<Component> was created without expected prop 'baz'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|