pull/3005/head
Timothy Johnson 6 years ago
parent 6b58a1d2f6
commit 9223f56323

@ -2,14 +2,15 @@
import { import {
SvelteComponentDev, SvelteComponentDev,
add_location, add_location,
append, append_dev,
detach, detach_dev,
dispatch_dev,
element, element,
init, init,
insert, insert_dev,
noop, noop,
safe_not_equal, safe_not_equal,
set_data, set_data_dev,
space, space,
text text
} from "svelte/internal"; } from "svelte/internal";
@ -19,7 +20,7 @@ const file = undefined;
function create_fragment(ctx) { function create_fragment(ctx) {
var h1, t0, t1, t2, t3; var h1, t0, t1, t2, t3;
return { const block = {
c: function create() { c: function create() {
h1 = element("h1"); h1 = element("h1");
t0 = text("Hello "); t0 = text("Hello ");
@ -35,16 +36,16 @@ function create_fragment(ctx) {
}, },
m: function mount(target, anchor) { m: function mount(target, anchor) {
insert(target, h1, anchor); insert_dev(target, h1, anchor);
append(h1, t0); append_dev(h1, t0);
append(h1, t1); append_dev(h1, t1);
append(h1, t2); append_dev(h1, t2);
insert(target, t3, anchor); insert_dev(target, t3, anchor);
}, },
p: function update(changed, ctx) { p: function update(changed, ctx) {
if (changed.name) { if (changed.name) {
set_data(t1, ctx.name); set_data_dev(t1, ctx.name);
} }
debugger; debugger;
@ -55,11 +56,13 @@ function create_fragment(ctx) {
d: function destroy(detaching) { d: function destroy(detaching) {
if (detaching) { if (detaching) {
detach(h1); detach_dev(h1);
detach(t3); detach_dev(t3);
} }
} }
}; };
dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment.name, type: "component", source: "", ctx });
return block;
} }
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
@ -74,6 +77,10 @@ function instance($$self, $$props, $$invalidate) {
if ('name' in $$props) $$invalidate('name', name = $$props.name); if ('name' in $$props) $$invalidate('name', name = $$props.name);
}; };
$$self.$unsafe_set = $$values => {
if ('name' in $$values) $$invalidate('name', name = $$values.name);
};
return { name }; return { name };
} }
@ -81,6 +88,7 @@ class Component extends SvelteComponentDev {
constructor(options) { constructor(options) {
super(options); super(options);
init(this, options, instance, create_fragment, safe_not_equal, ["name"]); init(this, options, instance, create_fragment, safe_not_equal, ["name"]);
dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "Component", id: create_fragment.name });
const { ctx } = this.$$; const { ctx } = this.$$;
const props = options.props || {}; const props = options.props || {};

@ -2,15 +2,16 @@
import { import {
SvelteComponentDev, SvelteComponentDev,
add_location, add_location,
append, append_dev,
destroy_each, destroy_each,
detach, detach_dev,
dispatch_dev,
element, element,
init, init,
insert, insert_dev,
noop, noop,
safe_not_equal, safe_not_equal,
set_data, set_data_dev,
space, space,
text text
} from "svelte/internal"; } from "svelte/internal";
@ -27,7 +28,7 @@ function get_each_context(ctx, list, i) {
function create_each_block(ctx) { function create_each_block(ctx) {
var span, t0_value = ctx.thing.name, t0, t1; var span, t0_value = ctx.thing.name, t0, t1;
return { const block = {
c: function create() { c: function create() {
span = element("span"); span = element("span");
t0 = text(t0_value); t0 = text(t0_value);
@ -42,14 +43,14 @@ function create_each_block(ctx) {
}, },
m: function mount(target, anchor) { m: function mount(target, anchor) {
insert(target, span, anchor); insert_dev(target, span, anchor);
append(span, t0); append_dev(span, t0);
insert(target, t1, anchor); insert_dev(target, t1, anchor);
}, },
p: function update(changed, ctx) { p: function update(changed, ctx) {
if ((changed.things) && t0_value !== (t0_value = ctx.thing.name)) { if ((changed.things) && t0_value !== (t0_value = ctx.thing.name)) {
set_data(t0, t0_value); set_data_dev(t0, t0_value);
} }
if (changed.foo || changed.bar || changed.baz || changed.things) { if (changed.foo || changed.bar || changed.baz || changed.things) {
@ -61,11 +62,13 @@ function create_each_block(ctx) {
d: function destroy(detaching) { d: function destroy(detaching) {
if (detaching) { if (detaching) {
detach(span); detach_dev(span);
detach(t1); detach_dev(t1);
} }
} }
}; };
dispatch_dev("SvelteRegisterBlock", { block, id: create_each_block.name, type: "each", source: "(8:0) {#each things as thing}", ctx });
return block;
} }
function create_fragment(ctx) { function create_fragment(ctx) {
@ -79,7 +82,7 @@ function create_fragment(ctx) {
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i)); each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
} }
return { const block = {
c: function create() { c: function create() {
for (var i = 0; i < each_blocks.length; i += 1) { for (var i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].c(); each_blocks[i].c();
@ -101,10 +104,10 @@ function create_fragment(ctx) {
each_blocks[i].m(target, anchor); each_blocks[i].m(target, anchor);
} }
insert(target, t0, anchor); insert_dev(target, t0, anchor);
insert(target, p, anchor); insert_dev(target, p, anchor);
append(p, t1); append_dev(p, t1);
append(p, t2); append_dev(p, t2);
}, },
p: function update(changed, ctx) { p: function update(changed, ctx) {
@ -130,7 +133,7 @@ function create_fragment(ctx) {
} }
if (changed.foo) { if (changed.foo) {
set_data(t2, ctx.foo); set_data_dev(t2, ctx.foo);
} }
}, },
@ -141,11 +144,13 @@ function create_fragment(ctx) {
destroy_each(each_blocks, detaching); destroy_each(each_blocks, detaching);
if (detaching) { if (detaching) {
detach(t0); detach_dev(t0);
detach(p); detach_dev(p);
} }
} }
}; };
dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment.name, type: "component", source: "", ctx });
return block;
} }
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
@ -163,6 +168,13 @@ function instance($$self, $$props, $$invalidate) {
if ('baz' in $$props) $$invalidate('baz', baz = $$props.baz); if ('baz' in $$props) $$invalidate('baz', baz = $$props.baz);
}; };
$$self.$unsafe_set = $$values => {
if ('things' in $$values) $$invalidate('things', things = $$values.things);
if ('foo' in $$values) $$invalidate('foo', foo = $$values.foo);
if ('bar' in $$values) $$invalidate('bar', bar = $$values.bar);
if ('baz' in $$values) $$invalidate('baz', baz = $$values.baz);
};
return { things, foo, bar, baz }; return { things, foo, bar, baz };
} }
@ -170,6 +182,7 @@ class Component extends SvelteComponentDev {
constructor(options) { constructor(options) {
super(options); super(options);
init(this, options, instance, create_fragment, safe_not_equal, ["things", "foo", "bar", "baz"]); init(this, options, instance, create_fragment, safe_not_equal, ["things", "foo", "bar", "baz"]);
dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "Component", id: create_fragment.name });
const { ctx } = this.$$; const { ctx } = this.$$;
const props = options.props || {}; const props = options.props || {};

@ -2,15 +2,16 @@
import { import {
SvelteComponentDev, SvelteComponentDev,
add_location, add_location,
append, append_dev,
destroy_each, destroy_each,
detach, detach_dev,
dispatch_dev,
element, element,
init, init,
insert, insert_dev,
noop, noop,
safe_not_equal, safe_not_equal,
set_data, set_data_dev,
space, space,
text text
} from "svelte/internal"; } from "svelte/internal";
@ -27,7 +28,7 @@ function get_each_context(ctx, list, i) {
function create_each_block(ctx) { function create_each_block(ctx) {
var span, t0_value = ctx.thing.name, t0, t1; var span, t0_value = ctx.thing.name, t0, t1;
return { const block = {
c: function create() { c: function create() {
span = element("span"); span = element("span");
t0 = text(t0_value); t0 = text(t0_value);
@ -42,14 +43,14 @@ function create_each_block(ctx) {
}, },
m: function mount(target, anchor) { m: function mount(target, anchor) {
insert(target, span, anchor); insert_dev(target, span, anchor);
append(span, t0); append_dev(span, t0);
insert(target, t1, anchor); insert_dev(target, t1, anchor);
}, },
p: function update(changed, ctx) { p: function update(changed, ctx) {
if ((changed.things) && t0_value !== (t0_value = ctx.thing.name)) { if ((changed.things) && t0_value !== (t0_value = ctx.thing.name)) {
set_data(t0, t0_value); set_data_dev(t0, t0_value);
} }
if (changed.foo) { if (changed.foo) {
@ -61,11 +62,13 @@ function create_each_block(ctx) {
d: function destroy(detaching) { d: function destroy(detaching) {
if (detaching) { if (detaching) {
detach(span); detach_dev(span);
detach(t1); detach_dev(t1);
} }
} }
}; };
dispatch_dev("SvelteRegisterBlock", { block, id: create_each_block.name, type: "each", source: "(6:0) {#each things as thing}", ctx });
return block;
} }
function create_fragment(ctx) { function create_fragment(ctx) {
@ -79,7 +82,7 @@ function create_fragment(ctx) {
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i)); each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
} }
return { const block = {
c: function create() { c: function create() {
for (var i = 0; i < each_blocks.length; i += 1) { for (var i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].c(); each_blocks[i].c();
@ -101,10 +104,10 @@ function create_fragment(ctx) {
each_blocks[i].m(target, anchor); each_blocks[i].m(target, anchor);
} }
insert(target, t0, anchor); insert_dev(target, t0, anchor);
insert(target, p, anchor); insert_dev(target, p, anchor);
append(p, t1); append_dev(p, t1);
append(p, t2); append_dev(p, t2);
}, },
p: function update(changed, ctx) { p: function update(changed, ctx) {
@ -130,7 +133,7 @@ function create_fragment(ctx) {
} }
if (changed.foo) { if (changed.foo) {
set_data(t2, ctx.foo); set_data_dev(t2, ctx.foo);
} }
}, },
@ -141,11 +144,13 @@ function create_fragment(ctx) {
destroy_each(each_blocks, detaching); destroy_each(each_blocks, detaching);
if (detaching) { if (detaching) {
detach(t0); detach_dev(t0);
detach(p); detach_dev(p);
} }
} }
}; };
dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment.name, type: "component", source: "", ctx });
return block;
} }
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
@ -161,6 +166,11 @@ function instance($$self, $$props, $$invalidate) {
if ('foo' in $$props) $$invalidate('foo', foo = $$props.foo); if ('foo' in $$props) $$invalidate('foo', foo = $$props.foo);
}; };
$$self.$unsafe_set = $$values => {
if ('things' in $$values) $$invalidate('things', things = $$values.things);
if ('foo' in $$values) $$invalidate('foo', foo = $$values.foo);
};
return { things, foo }; return { things, foo };
} }
@ -168,6 +178,7 @@ class Component extends SvelteComponentDev {
constructor(options) { constructor(options) {
super(options); super(options);
init(this, options, instance, create_fragment, safe_not_equal, ["things", "foo"]); init(this, options, instance, create_fragment, safe_not_equal, ["things", "foo"]);
dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "Component", id: create_fragment.name });
const { ctx } = this.$$; const { ctx } = this.$$;
const props = options.props || {}; const props = options.props || {};

@ -1,6 +1,7 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { import {
SvelteComponentDev, SvelteComponentDev,
dispatch_dev,
init, init,
noop, noop,
safe_not_equal safe_not_equal
@ -9,7 +10,7 @@ import {
const file = undefined; const file = undefined;
function create_fragment(ctx) { function create_fragment(ctx) {
return { const block = {
c: function create() { c: function create() {
{ {
const { obj } = ctx; const { obj } = ctx;
@ -36,6 +37,8 @@ function create_fragment(ctx) {
o: noop, o: noop,
d: noop d: noop
}; };
dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment.name, type: "component", source: "", ctx });
return block;
} }
let kobzol = 5; let kobzol = 5;
@ -43,6 +46,11 @@ let kobzol = 5;
function instance($$self) { function instance($$self) {
let obj = { x: 5 }; let obj = { x: 5 };
$$self.$unsafe_set = $$values => {
if ('obj' in $$values) $$invalidate('obj', obj = $$values.obj);
if ('kobzol' in $$values) $$invalidate('kobzol', kobzol = $$values.kobzol);
};
return { obj }; return { obj };
} }
@ -50,6 +58,7 @@ class Component extends SvelteComponentDev {
constructor(options) { constructor(options) {
super(options); super(options);
init(this, options, instance, create_fragment, safe_not_equal, []); init(this, options, instance, create_fragment, safe_not_equal, []);
dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "Component", id: create_fragment.name });
} }
} }

@ -2,14 +2,15 @@
import { import {
SvelteComponentDev, SvelteComponentDev,
add_location, add_location,
append, append_dev,
detach, detach_dev,
dispatch_dev,
element, element,
init, init,
insert, insert_dev,
noop, noop,
safe_not_equal, safe_not_equal,
set_data, set_data_dev,
space, space,
text text
} from "svelte/internal"; } from "svelte/internal";
@ -19,7 +20,7 @@ const file = undefined;
function create_fragment(ctx) { function create_fragment(ctx) {
var p, t0_value = Math.max(0, ctx.foo), t0, t1, t2; var p, t0_value = Math.max(0, ctx.foo), t0, t1, t2;
return { const block = {
c: function create() { c: function create() {
p = element("p"); p = element("p");
t0 = text(t0_value); t0 = text(t0_value);
@ -33,19 +34,19 @@ function create_fragment(ctx) {
}, },
m: function mount(target, anchor) { m: function mount(target, anchor) {
insert(target, p, anchor); insert_dev(target, p, anchor);
append(p, t0); append_dev(p, t0);
append(p, t1); append_dev(p, t1);
append(p, t2); append_dev(p, t2);
}, },
p: function update(changed, ctx) { p: function update(changed, ctx) {
if ((changed.foo) && t0_value !== (t0_value = Math.max(0, ctx.foo))) { if ((changed.foo) && t0_value !== (t0_value = Math.max(0, ctx.foo))) {
set_data(t0, t0_value); set_data_dev(t0, t0_value);
} }
if (changed.bar) { if (changed.bar) {
set_data(t2, ctx.bar); set_data_dev(t2, ctx.bar);
} }
}, },
@ -54,10 +55,12 @@ function create_fragment(ctx) {
d: function destroy(detaching) { d: function destroy(detaching) {
if (detaching) { if (detaching) {
detach(p); detach_dev(p);
} }
} }
}; };
dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment.name, type: "component", source: "", ctx });
return block;
} }
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
@ -74,6 +77,11 @@ function instance($$self, $$props, $$invalidate) {
if ('foo' in $$props) $$invalidate('foo', foo = $$props.foo); if ('foo' in $$props) $$invalidate('foo', foo = $$props.foo);
}; };
$$self.$unsafe_set = $$values => {
if ('foo' in $$values) $$invalidate('foo', foo = $$values.foo);
if ('bar' in $$values) $$invalidate('bar', bar = $$values.bar);
};
$$self.$$.update = ($$dirty = { foo: 1 }) => { $$self.$$.update = ($$dirty = { foo: 1 }) => {
if ($$dirty.foo) { $$invalidate('bar', bar = foo * 2); } if ($$dirty.foo) { $$invalidate('bar', bar = foo * 2); }
}; };
@ -85,6 +93,7 @@ class Component extends SvelteComponentDev {
constructor(options) { constructor(options) {
super(options); super(options);
init(this, options, instance, create_fragment, safe_not_equal, ["foo"]); init(this, options, instance, create_fragment, safe_not_equal, ["foo"]);
dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "Component", id: create_fragment.name });
const { ctx } = this.$$; const { ctx } = this.$$;
const props = options.props || {}; const props = options.props || {};

Loading…
Cancel
Save