src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Close the current scope at the given offset.
/// </summary>
/// <param name="offset">The offset of where to close the scope.</param>
Close the current scope at the given offset.
Close the current scope at the given offset .
public void CloseScope(int offset) {
            if (currentScope == null)
                throw new Exception("You can not close a scope now, none are open.");
            currentScope.OffsetEnd = offset;
            currentScope = currentScope.ParentScope;
        }
public void CloseScope ( int offset ) { if ( currentScope == null ) throw new Exception ( " " ) ; currentScope . OffsetEnd = offset ; currentScope = currentScope . ParentScope ; }
Close the current scope at the given offset.
Close the current scope at the given offset .
// Make sure a scope is open // Set the end offset for this scope and close it.
offset
int
The offset of where to close the scope.
The offset of where to close the scope .