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