(InstanceScope scope, ST st, Object attr)
| 913 | } |
| 914 | |
| 915 | protected void setFirstArgument(InstanceScope scope, ST st, Object attr) { |
| 916 | if ( !st.impl.hasFormalArgs ) { |
| 917 | if ( st.impl.formalArguments==null ) { |
| 918 | st.add(ST.IMPLICIT_ARG_NAME, attr); |
| 919 | return; |
| 920 | } |
| 921 | // else fall thru to set locals[0] |
| 922 | } |
| 923 | if ( st.impl.formalArguments==null ) { |
| 924 | errMgr.runTimeError(this, scope, ErrorType.ARGUMENT_COUNT_MISMATCH, 1, st.impl.name, 0); |
| 925 | return; |
| 926 | } |
| 927 | st.locals[0] = attr; |
| 928 | } |
| 929 | |
| 930 | protected void addToList(InstanceScope scope, List<Object> list, Object o) { |
| 931 | o = convertAnythingIteratableToIterator(scope, o); |
no test coverage detected