(InstanceScope scope, ST st, Object attr)
| 886 | } |
| 887 | |
| 888 | protected void setFirstArgument(InstanceScope scope, ST st, Object attr) { |
| 889 | if ( !st.impl.hasFormalArgs ) { |
| 890 | if ( st.impl.formalArguments==null ) { |
| 891 | st.add(ST.IMPLICIT_ARG_NAME, attr); |
| 892 | return; |
| 893 | } |
| 894 | // else fall thru to set locals[0] |
| 895 | } |
| 896 | if ( st.impl.formalArguments==null ) { |
| 897 | errMgr.runTimeError(this, scope, ErrorType.ARGUMENT_COUNT_MISMATCH, 1, st.impl.name, 0); |
| 898 | return; |
| 899 | } |
| 900 | st.locals[0] = attr; |
| 901 | } |
| 902 | |
| 903 | protected void addToList(InstanceScope scope, List<Object> list, Object o) { |
| 904 | o = convertAnythingIteratableToIterator(scope, o); |
no test coverage detected