complete-at-exprstmt.m revision 834389b87451b24618513b907b4dfb5b00d211f3
19a0c85e640a08174569a303db22981612f05d385Douglas Gregor/* The run lines are below, because this test is line- and 29a0c85e640a08174569a303db22981612f05d385Douglas Gregor column-number sensitive. */ 39a0c85e640a08174569a303db22981612f05d385Douglas Gregor@interface MyClass { } 49a0c85e640a08174569a303db22981612f05d385Douglas Gregor- (int)myMethod:(int)arg; 59a0c85e640a08174569a303db22981612f05d385Douglas Gregor@end 69a0c85e640a08174569a303db22981612f05d385Douglas Gregor 79a0c85e640a08174569a303db22981612f05d385Douglas Gregor@implementation MyClass 89a0c85e640a08174569a303db22981612f05d385Douglas Gregor- (int)myMethod:(int)arg { 99a0c85e640a08174569a303db22981612f05d385Douglas Gregor @synchronized (@encode(MyClass)) { } 109a0c85e640a08174569a303db22981612f05d385Douglas Gregor} 119a0c85e640a08174569a303db22981612f05d385Douglas Gregor@end 129a0c85e640a08174569a303db22981612f05d385Douglas Gregor// RUN: c-index-test -code-completion-at=%s:9:4 %s | FileCheck -check-prefix=CHECK-CC1 %s 139a0c85e640a08174569a303db22981612f05d385Douglas Gregor// CHECK-CC1: {TypedText encode}{LeftParen (}{Placeholder type-name}{RightParen )} 149a0c85e640a08174569a303db22981612f05d385Douglas Gregor// CHECK-CC1: {TypedText protocol}{LeftParen (}{Placeholder protocol-name}{RightParen )} 159a0c85e640a08174569a303db22981612f05d385Douglas Gregor// CHECK-CC1: {TypedText selector}{LeftParen (}{Placeholder selector}{RightParen )} 16834389b87451b24618513b907b4dfb5b00d211f3Douglas Gregor// CHECK-CC1: {TypedText synchronized}{HorizontalSpace }{LeftParen (}{Placeholder expression}{RightParen )}{LeftBrace {}{Placeholder statements}{RightBrace }} 17834389b87451b24618513b907b4dfb5b00d211f3Douglas Gregor// CHECK-CC1: {TypedText throw}{HorizontalSpace }{Placeholder expression}{Text ;} 189a0c85e640a08174569a303db22981612f05d385Douglas Gregor// CHECK-CC1: {TypedText try}{LeftBrace {}{Placeholder statements}{RightBrace }}{Text @catch}{LeftParen (}{Placeholder parameter}{RightParen )}{LeftBrace {}{Placeholder statements}{RightBrace }}{Text @finally}{LeftBrace {}{Placeholder statements}{RightBrace }} 199a0c85e640a08174569a303db22981612f05d385Douglas Gregor// RUN: c-index-test -code-completion-at=%s:9:19 %s | FileCheck -check-prefix=CHECK-CC2 %s 209a0c85e640a08174569a303db22981612f05d385Douglas Gregor// CHECK-CC2: {TypedText encode}{LeftParen (}{Placeholder type-name}{RightParen )} 219a0c85e640a08174569a303db22981612f05d385Douglas Gregor// CHECK-CC2: {TypedText protocol}{LeftParen (}{Placeholder protocol-name}{RightParen )} 229a0c85e640a08174569a303db22981612f05d385Douglas Gregor// CHECK-CC2: {TypedText selector}{LeftParen (}{Placeholder selector}{RightParen )} 239a0c85e640a08174569a303db22981612f05d385Douglas Gregor 24