(InstanceScope scope, ST st, Object attr)
| 925 | } |
| 926 | |
| 927 | protected void setFirstArgument(InstanceScope scope, ST st, Object attr) { |
| 928 | if ( !st.impl.hasFormalArgs ) { |
| 929 | if ( st.impl.formalArguments==null ) { |
| 930 | st.add(ST.IMPLICIT_ARG_NAME, attr); |
| 931 | return; |
| 932 | } |
| 933 | // else fall thru to set locals[0] |
| 934 | } |
| 935 | if ( st.impl.formalArguments==null ) { |
| 936 | errMgr.runTimeError(this, scope, ErrorType.ARGUMENT_COUNT_MISMATCH, 1, st.impl.name, 0); |
| 937 | return; |
| 938 | } |
| 939 | st.locals[0] = attr; |
| 940 | } |
| 941 | |
| 942 | protected void addToList(InstanceScope scope, List<Object> list, Object o) { |
| 943 | o = convertAnythingIteratableToIterator(scope, o); |
no test coverage detected