src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add local variables to this method
/// </summary>
/// <param name="locals">the locals to be added</param>
/// <param name="initLocals">are locals initialised to default values</param>
Add local variables to this method
Add local variables to this method
public void AddLocals(Local[] locals, bool initLocals) {
            if (locals == null) return;
            this.locals = locals;
            this.initLocals = initLocals;
            numLocals = locals.Length;
            for (int i=0; i < numLocals; i++) {
                this.locals[i].SetIndex(i);
            }
        }
public void AddLocals ( Local [ ] locals , bool initLocals ) { if ( locals == null ) return ; this . locals = locals ; this . initLocals = initLocals ; numLocals = locals . Length ; for ( int i = 0 ; i < numLocals ; i ++ ) { this . locals [ i ] . SetIndex ( i ) ; } }
Add local variables to this method
Add local variables to this method
locals
Local[]
the locals to be added
the locals to be added
initLocals
bool
None