Skip to content

Commit f783159

Browse files
committed
Support interface method resolution
1 parent e3eb3d5 commit f783159

File tree

4 files changed

+10445
-9318
lines changed

4 files changed

+10445
-9318
lines changed

src/main/antlr3/org/sonar/plugins/delphi/antlr/Delphi.g

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ classMethod : (customAttribute)? ('class')? methodKey ident (ge
354354
-> (customAttribute)? ('class')? ^('function' ^(TkFunctionName ident) (genericDefinition)? ^(TkFunctionArgs (formalParameterSection)?) (customAttribute)? ^(TkFunctionReturn typeDecl) (methodDirective)*)
355355
| (customAttribute)? ('class')? 'operator' ident (genericDefinition)? (formalParameterSection)? ':' (customAttribute)? typeDecl ';'
356356
-> (customAttribute)? ('class')? ^('operator' ^(TkFunctionName ident) (genericDefinition)? ^(TkFunctionArgs (formalParameterSection)?) (customAttribute)? typeDecl )
357+
| (customAttribute)? ('class')? 'function' ident (genericDefinition)? '.' ident '=' ident ';'
358+
| (customAttribute)? ('class')? 'procedure' ident (genericDefinition)? '.' ident '=' ident ';'
357359
;
358360
classField : (customAttribute)? identList ':' typeDecl ';' (hintingDirective)*
359361
-> (customAttribute)? ^(TkClassField ^(TkVariableIdents identList) ^(TkVariableType typeDecl))

0 commit comments

Comments
 (0)