Skip to content

Commit aa3bfe7

Browse files
committed
Refactor annotation patterns in ut_annotation_parser and remove unused constants
1 parent c4d0ab0 commit aa3bfe7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

source/core/annotations/ut_annotation_manager.pkb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ create or replace package body ut_annotation_manager as
174174
end if;
175175
end;
176176

177-
178177
procedure validate_annotation_cache(
179178
a_object_owner varchar2,
180179
a_object_type varchar2,
@@ -238,7 +237,6 @@ create or replace package body ut_annotation_manager as
238237
l_sql_lines dbms_preprocessor.source_lines_t := dbms_preprocessor.source_lines_t();
239238
l_sql_lines_clob ut_varchar2_list := ut_varchar2_list();
240239
l_result sys_refcursor;
241-
l_replaced boolean := false;
242240
begin
243241
if a_parts > 0 then
244242
for i in 1..a_parts loop

source/core/annotations/ut_annotation_parser.pkb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ create or replace package body ut_annotation_parser as
2222
type tt_comment_list is table of varchar2(32767) index by binary_integer;
2323

2424
gc_annotation_qualifier constant varchar2(1) := '%';
25-
gc_annot_comment_pattern constant varchar2(30) := '^( |'||chr(09)||')*-- *('||gc_annotation_qualifier||'.*?)$'; -- chr(09) is a tab character
2625
gc_comment_replacer_patter constant varchar2(50) := '{COMMENT#%N%}';
2726
gc_comment_replacer_regex_ptrn constant varchar2(25) := '{COMMENT#(\d+)}';
2827
gc_regexp_identifier constant varchar2(50) := '[[:alpha:]][[:alnum:]$#_]*';
29-
gc_annotation_block_pattern constant varchar2(200) := '(({COMMENT#.+}'||chr(10)||')+)( |'||chr(09)||')*(procedure|function)\s+(' ||
30-
gc_regexp_identifier || ')';
28+
3129
gc_annotation_pattern constant varchar2(50) := gc_annotation_qualifier || gc_regexp_identifier || '[ '||chr(9)||']*(\(.*?\)\s*?$)?';
3230

3331

0 commit comments

Comments
 (0)