logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

"Devel::MAT::Context" - represent a single call context state

Author

       Paul Evans <leonerd@leonerd.org.uk>

perl v5.40.0                                       2024-10-20                           Devel::MAT::Context(3pm)

Common Methods

gimme
          $gimme = $ctx->gimme;

       Returns the gimme value of the call context.

   filelinelocation
          $file = $ctx->file;

          $line = $ctx->line;

          $location = $ctx->location;

       Returns the file, line or location as ("FILE line LINE").

Description

       Objects in this class represent a single level of state from the call context.  These contexts represent
       function calls between perl functions.

Devel::Mat::Context::Eval

       Represents a context which is a string "eval EXPR" call.

   code
          $sv = $ctx->code;

       Returns the SV containing the text string being evaluated.

Devel::Mat::Context::Sub

       Represents a context which is a subroutine call.

   cv
          $cv = $ctx->cv;

       Returns the CV which this call is to.

   args
          $args = $ctx->args;

       Returns the arguments AV which represents the @_ argument array.

   olddepth
          $olddepth = $ctx->olddepth;

       Returns the old depth of the context (that is, the depth the CV would be at after this context returns).

   depth
          $depth = $ctx->depth;

       Returns the actual depth of the context. This is inferred at load time by considering the "olddepth" of
       the next inner-nested call to the same CV, or from the actual "depth" of the CV is no other call exists.

Devel::Mat::Context::Try

       Represents a context which is a block "eval {}" call.

Name

       "Devel::MAT::Context" - represent a single call context state

See Also