Skip to content

Commit

Permalink
UniqueFuckingID is really unique now, no more lie!
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancisBourre committed Jul 4, 2017
1 parent 0fb62e0 commit 1c34536
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hex/compiler/parser/flow/ObjectParser.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package hex.compiler.parser.flow;
import hex.core.HashCodeFactory;

#if macro
import haxe.macro.*;
Expand Down Expand Up @@ -111,8 +112,9 @@ class ObjectParser extends AbstractExprParser<hex.factory.BuildRequest>

if ( then == null )
{
callback = 'uniquefuckingID';
var cvo = new ConstructorVO( callback, ContextTypeList.OBJECT );
var cvo = new ConstructorVO( '', ContextTypeList.OBJECT );
callback = '__then__' + hex.core.HashCodeFactory.getKey( cvo );
cvo.ID = callback;
cvo.filePosition = Context.currentPos();
this._builder.build( OBJECT( cvo ) );
}
Expand Down

0 comments on commit 1c34536

Please sign in to comment.