Project

General

Profile

rules.diff

Vladimir Tsichevski, 01/05/2026 03:45 PM

Download (4.43 KB)

View differences:

new/rules/annotations/abbrev_check.rules 2026-01-02 18:59:19 +0000
73 73
   <variable name="s_dname"         type="java.lang.String" />
74 74
   <variable name="s_tname"         type="java.lang.String" />
75 75
   <variable name="s_fname"         type="java.lang.String" />
76
   <variable name="dname"           type="java.lang.String" init="" />
77
   <variable name="tname"           type="java.lang.String" init="" />
78
   <variable name="fname"           type="java.lang.String" init="" />
76
   <variable name="dname"           type="java.lang.String" init="''" />
77
   <variable name="tname"           type="java.lang.String" init="''" />
78
   <variable name="fname"           type="java.lang.String" init="''" />
79 79
   <variable name="fdot"            type="java.lang.Integer" />
80 80
   <variable name="ldot"            type="java.lang.Integer" />
81 81
   <variable name="entype"          type="java.lang.Integer" />
new/rules/annotations/native_api.rules 2026-01-04 14:48:20 +0000
190 190
            <!-- convert typelist at the prog.procedure node -->
191 191
            <action>list = parent.parent.getAnnotationList("typelist")</action>
192 192
            <rule>list != null and !list.isEmpty()
193
               <action>list2 = create("java.util.ArrayList)</action>
193
               <action>list2 = create("java.util.ArrayList")</action>
194 194
               <action>it = list.iterator()</action>
195 195
               <while>it.hasNext()
196 196
                  <action>name = #(java.lang.String) it.next()</action>
new/rules/callgraph/callgraph_lib.rules 2026-01-02 00:15:54 +0000
613 613
         </rule>
614 614
         
615 615
         <rule>siteKey == prog.property_invocation
616
            <action>key = "property-name</action>
616
            <action>key = "property-name"</action>
617 617
         </rule>
618 618

  
619 619
         <rule>siteKey == prog.run_filename              or
new/rules/convert/brew_javadoc.rules 2026-01-04 13:40:17 +0000
160 160
         
161 161
         <!-- get optional member annotation -->
162 162
         <rule>this.isAnnotation('member')
163
            <action>memberName = sprintf('#%s', this.getAnnotation('member')</action>
163
            <action>memberName = sprintf('#%s', this.getAnnotation('member'))</action>
164 164
         </rule>
165 165
         
166 166
         <!-- get optional label annotation -->
new/rules/convert/input_output.rules 2026-01-04 13:10:02 +0000
580 580
            </action>
581 581
         </rule>
582 582
         
583
         <rule>(setPage or 
583
         <rule>setPage or 
584 584
                (type == prog.kw_page_sz and downPath(this, prog.kw_value))) and
585 585
               (type == prog.kw_page_sz or
586 586
                (type == prog.kw_paged and not sibling(prog.kw_page_sz)))
new/rules/include/report.rules 2026-01-02 12:31:31 +0000
1488 1488
                                  target.getSymbolicTokenType())
1489 1489
               </action>
1490 1490
               <action on="false">
1491
                  descr = sprintf("%s (%s), target.text, target.getSymbolicTokenType())
1491
                  descr = sprintf("%s (%s)", target.text, target.getSymbolicTokenType())
1492 1492
               </action>
1493 1493
            </rule>
1494 1494
         </rule>
new/rules/schema/dmo_common.rules 2026-01-02 18:04:49 +0000
1463 1463
               <rule>isRuntimeConfig()
1464 1464
                  <action>ref = getAst(ctorId)</action>
1465 1465
                  <action>
1466
                     ref.putAnnotation('class', sprintf('com.goldencode.p2j.util.%s', dataType)
1466
                     ref.putAnnotation('class', sprintf('com.goldencode.p2j.util.%s', dataType))
1467 1467
                  </action>
1468 1468
                  <action>ref.putAnnotation('method', initTextLow)</action>
1469 1469
               </rule>