Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust to tink_hxx#v1 #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions haxe_libraries/tink_hxx.hxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @install: lix --silent download "gh://github.com/haxetink/tink_hxx#0d6cda883d5ef4c1186dbad476e016b98aad68b8" into tink_hxx/0.25.0/github/0d6cda883d5ef4c1186dbad476e016b98aad68b8
# @install: lix --silent download "gh://github.com/haxetink/tink_hxx#62a00c12a3ba8d14ea6f0df18bdb31d80f6a0054" into tink_hxx/0.25.0/github/62a00c12a3ba8d14ea6f0df18bdb31d80f6a0054
-lib html-entities
-lib tink_anon
-lib tink_parse
-cp ${HAXE_LIBCACHE}/tink_hxx/0.25.0/github/0d6cda883d5ef4c1186dbad476e016b98aad68b8/src
-cp ${HAXE_LIBCACHE}/tink_hxx/0.25.0/github/62a00c12a3ba8d14ea6f0df18bdb31d80f6a0054/src
-D tink_hxx=0.25.0
3 changes: 3 additions & 0 deletions src/coconut/react/View.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class ViewBase extends NativeComponent<{ revision: Int }, {}, ImplicitContext> {
mounted:Void->Void,
updated:Void->Void,
unmounting:Void->Void
#if tink_state.debug
, ?toString:()->String
#end
) {
js.Syntax.code('{0}.call(this)', NativeComponent);
this.__react_state = { revision: 0 };
Expand Down
7 changes: 1 addition & 6 deletions src/coconut/react/macros/HXX.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ package coconut.react.macros;
import tink.hxx.*;

class HXX {

static public var defaults(default, never) = new tink.priority.Queue<Lazy<Array<Named<Expr.Position->Tag>>>>();

static public var generator = new Generator(function ()
return [for (group in defaults) for (tag in group.get()) tag]
);
static public var generator = new Generator();

static public function parse(e)
return coconut.ui.macros.Helpers.parse(e, generator, 'coconut.react.View.createFragment');
Expand Down