PCART  v1.4
Automated Repair of Python API Parameter Compatibility Issues
Public Member Functions | List of all members
CallsiteIdentity Class Reference

Callsite identity class 调用点身份类 More...

Public Member Functions

def artifactHash (self)
 Return stable artifact hash for a callsite 返回调用点稳定运行产物hash. More...
 
def artifactId (self)
 Return stable readable artifact id for a callsite 返回调用点稳定可读运行产物id. More...
 
def artifactPayload (self)
 The relative path from project root 相对于项目根目录的文件路径 More...
 

Detailed Description

Callsite identity class 调用点身份类

A CallsiteIdentity describes one AST Call node with project-relative path, source span and normalized call text. CallsiteIdentity使用项目相对路径、源码位置和归一化调用文本描述一个AST调用节点。

Definition at line 29 of file callsite.py.

Member Function Documentation

◆ artifactHash()

def artifactHash (   self)

Return stable artifact hash for a callsite 返回调用点稳定运行产物hash.

Definition at line 72 of file callsite.py.

Here is the call graph for this function:

◆ artifactId()

def artifactId (   self)

Return stable readable artifact id for a callsite 返回调用点稳定可读运行产物id.

Definition at line 82 of file callsite.py.

◆ artifactPayload()

def artifactPayload (   self)

The relative path from project root 相对于项目根目录的文件路径

The line number of AST Call node AST调用节点所在行号

The column offset of AST Call node AST调用节点所在列偏移

The end line number of AST Call node AST调用节点结束行号

The end column offset of AST Call node AST调用节点结束列偏移

The original call text used for report display 报告展示用的原始调用文本

The normalized call text used for identity generation 生成调用点身份用的归一化调用文本

Return the payload used to generate artifact id 返回用于生成运行产物id的数据

Definition at line 60 of file callsite.py.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: