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