Commit Graph

3 Commits

Author SHA1 Message Date
Saleem Abdulrasool
33f78388d7 test: enable ObjC interop for test which requires it
This test requires ObjC interop, ensure that we explicitly enable the
ObjC interop.
2020-06-15 16:29:50 +00:00
Rintaro Ishizaki
20a1e5db23 [IDE] Range info for accessor decl.
Attributes on explicit accessor decl may have attributes. Only when the
range contains those attributes, the range-info should report
`SingleDecl`.
2018-07-13 09:47:49 +09:00
Rintaro Ishizaki
a27bf841e2 [IDE] Don't widen source range for AccessorDecl
Syntactically, Attributes for AccessorDecl are not part of AccessorDecl,
but part of PatternBindingDecl. When the selected range is the brace for
implicit getter, it should be considered as selecting getter decl
regardless of the attributes.

Conversely, we should widen source range for PatternBindingDecl by
looking into declared VarDecls because, in AST, attributes on
PatternBindingDecl are attached to VarDecls.

rdar://problem/41073182
2018-06-18 12:39:41 +09:00