@@ -7,7 +7,7 @@ import swift
77/**
88 * A function that takes a `printf` style format argument.
99 */
10- abstract class FormattingFunction extends AbstractFunctionDecl {
10+ abstract class FormattingFunction extends Function {
1111 /**
1212 * Gets the position of the format argument.
1313 */
@@ -32,7 +32,7 @@ class FormattingFunctionCall extends CallExpr {
3232 * An initializer for `String`, `NSString` or `NSMutableString` that takes a
3333 * `printf` style format argument.
3434 */
35- class StringInitWithFormat extends FormattingFunction , MethodDecl {
35+ class StringInitWithFormat extends FormattingFunction , Method {
3636 StringInitWithFormat ( ) {
3737 exists ( string fName |
3838 this .hasQualifiedName ( [ "String" , "NSString" , "NSMutableString" ] , fName ) and
@@ -46,7 +46,7 @@ class StringInitWithFormat extends FormattingFunction, MethodDecl {
4646/**
4747 * The `localizedStringWithFormat` method of `String`, `NSString` and `NSMutableString`.
4848 */
49- class LocalizedStringWithFormat extends FormattingFunction , MethodDecl {
49+ class LocalizedStringWithFormat extends FormattingFunction , Method {
5050 LocalizedStringWithFormat ( ) {
5151 this .hasQualifiedName ( [ "String" , "NSString" , "NSMutableString" ] ,
5252 "localizedStringWithFormat(_:_:)" )
@@ -58,7 +58,7 @@ class LocalizedStringWithFormat extends FormattingFunction, MethodDecl {
5858/**
5959 * The functions `NSLog` and `NSLogv`.
6060 */
61- class NsLog extends FormattingFunction , FreeFunctionDecl {
61+ class NsLog extends FormattingFunction , FreeFunction {
6262 NsLog ( ) { this .getName ( ) = [ "NSLog(_:_:)" , "NSLogv(_:_:)" ] }
6363
6464 override int getFormatParameterIndex ( ) { result = 0 }
@@ -67,7 +67,7 @@ class NsLog extends FormattingFunction, FreeFunctionDecl {
6767/**
6868 * The `NSException.raise` method.
6969 */
70- class NsExceptionRaise extends FormattingFunction , MethodDecl {
70+ class NsExceptionRaise extends FormattingFunction , Method {
7171 NsExceptionRaise ( ) { this .hasQualifiedName ( "NSException" , "raise(_:format:arguments:)" ) }
7272
7373 override int getFormatParameterIndex ( ) { result = 1 }
0 commit comments