Skip to content

Commit 46d4651

Browse files
committed
Added code start line attribute to JCallable (corresponding to added attribute in the
java code analyzer model). Signed-off-by: Saurabh Sinha <[email protected]>
1 parent 57248f2 commit 46d4651

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cldk/models/java/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ class JCallable(BaseModel):
270270
code (str): The code block of the callable.
271271
start_line (int): The starting line number of the callable in the source file.
272272
end_line (int): The ending line number of the callable in the source file.
273+
code_start_line (int): The starting line number of the code block of a callable in the source file.
273274
referenced_types (List[str]): The types referenced within the callable.
274275
accessed_fields (List[str]): Fields accessed in the callable.
275276
call_sites (List[JCallSite]): Call sites in the callable.
@@ -293,6 +294,7 @@ class JCallable(BaseModel):
293294
code: str
294295
start_line: int
295296
end_line: int
297+
code_start_line: int
296298
referenced_types: List[str]
297299
accessed_fields: List[str]
298300
call_sites: List[JCallSite]

0 commit comments

Comments
 (0)