/// <summary> /// function create(o) { /// F.prototype = o; /// return new F(); ///} private static PatternSpecialization CreateSpecialization() { var oParam = new ExpectedParameter(0); var fLookup = new ExpectedFlexibleLookup(); return new PatternSpecialization( CreateSpecializationImpl, false, new ExpectedNode( typeof(ExpressionStatement), new ExpectedBinary( JSToken.Assign, new ExpectedMember( fLookup, "prototype" ), oParam ) ), new ExpectedNode( typeof(ReturnNode), new ExpectedNew( fLookup.Confirmed ) ) ); }
public ExpectedConfirmedLookup(ExpectedFlexibleLookup lookup) { _lookup = lookup; }