@@ -213,16 +213,18 @@ public static Expr Parse(ParserContext pcon, ISeq form)
213213 if ( fexpr is StaticFieldExpr )
214214 return fexpr ;
215215
216- IPersistentVector args = PersistentVector . EMPTY ;
217- for ( ISeq s = RT . seq ( form . next ( ) ) ; s != null ; s = s . next ( ) )
218- args = args . cons ( Compiler . Analyze ( pcon , s . first ( ) ) ) ;
219216
220217 if ( fexpr is QualifiedMethodExpr qmfexpr )
221218 return ToHostExpr ( pcon ,
222219 qmfexpr ,
223220 Compiler . TagOf ( form ) ,
224221 tailPosition ,
225- args ) ;
222+ form . next ( ) ) ;
223+
224+
225+ IPersistentVector args = PersistentVector . EMPTY ;
226+ for ( ISeq s = RT . seq ( form . next ( ) ) ; s != null ; s = s . next ( ) )
227+ args = args . cons ( Compiler . Analyze ( pcon , s . first ( ) ) ) ;
226228
227229 //if (args.count() > Compiler.MAX_POSITIONAL_ARITY)
228230 // throw new ArgumentException(String.Format("No more than {0} args supported", Compiler.MAX_POSITIONAL_ARITY));
@@ -235,7 +237,7 @@ public static Expr Parse(ParserContext pcon, ISeq form)
235237 tailPosition ) ;
236238 }
237239
238- static Expr ToHostExpr ( ParserContext pcon , QualifiedMethodExpr qmfexpr , Symbol tag , bool tailPosition , IPersistentVector args )
240+ static Expr ToHostExpr ( ParserContext pcon , QualifiedMethodExpr qmfexpr , Symbol tag , bool tailPosition , ISeq args )
239241 {
240242 if ( qmfexpr . HintedSig != null )
241243 {
@@ -246,7 +248,7 @@ static Expr ToHostExpr(ParserContext pcon, QualifiedMethodExpr qmfexpr, Symbol t
246248 return new NewExpr (
247249 qmfexpr . MethodType ,
248250 ( ConstructorInfo ) method ,
249- HostExpr . ParseArgs ( pcon , RT . seq ( args ) ) ,
251+ HostExpr . ParseArgs ( pcon , args ) ,
250252 ( IPersistentMap ) Compiler . SourceSpanVar . deref ( ) ) ;
251253
252254 case QualifiedMethodExpr . EMethodKind . INSTANCE :
@@ -271,7 +273,7 @@ static Expr ToHostExpr(ParserContext pcon, QualifiedMethodExpr qmfexpr, Symbol t
271273 Compiler . munge ( qmfexpr . MethodName ) ,
272274 ( MethodInfo ) method ,
273275 null ,
274- HostExpr . ParseArgs ( pcon , RT . seq ( args ) ) ,
276+ HostExpr . ParseArgs ( pcon , args ) ,
275277 tailPosition ) ;
276278 }
277279 }
@@ -282,7 +284,7 @@ static Expr ToHostExpr(ParserContext pcon, QualifiedMethodExpr qmfexpr, Symbol t
282284 case QualifiedMethodExpr . EMethodKind . CTOR :
283285 return new NewExpr (
284286 qmfexpr . MethodType ,
285- HostExpr . ParseArgs ( pcon , RT . seq ( args ) ) ,
287+ HostExpr . ParseArgs ( pcon , args ) ,
286288 ( IPersistentMap ) Compiler . SourceSpanVar . deref ( ) ) ;
287289
288290 case QualifiedMethodExpr . EMethodKind . INSTANCE :
@@ -305,7 +307,7 @@ static Expr ToHostExpr(ParserContext pcon, QualifiedMethodExpr qmfexpr, Symbol t
305307 qmfexpr . MethodType ,
306308 Compiler . munge ( qmfexpr . MethodName ) ,
307309 null ,
308- HostExpr . ParseArgs ( pcon , RT . seq ( args ) ) ,
310+ HostExpr . ParseArgs ( pcon , args ) ,
309311 tailPosition ) ;
310312 }
311313 }
0 commit comments