Lines Matching refs:Context

74         Function->setType(S.Context.getFunctionType(  in applyNullability()
78 S.Context.getFunctionNoProtoType(*Modified, FnType->getExtInfo())); in applyNullability()
152 S.Context, Metadata.Version, *Existing, /*IsReplacedByActive*/ true); in handleAPINotedAttribute()
169 S.Context, Metadata.Version, Attr, in handleAPINotedAttribute()
178 S.Context, Metadata.Version, AttrKindFor<A>::value, in handleAPINotedAttribute()
204 [&] { return new (S.Context) A(S.Context, getPlaceholderAttrInfo()); }, in handleAPINotedRetainCountAttribute()
256 return new (S.Context) in ProcessAPINotes()
257 UnavailableAttr(S.Context, getPlaceholderAttrInfo(), in ProcessAPINotes()
258 ASTAllocateString(S.Context, Info.UnavailableMsg)); in ProcessAPINotes()
266 return new (S.Context) AvailabilityAttr( in ProcessAPINotes()
267 S.Context, getPlaceholderAttrInfo(), in ProcessAPINotes()
268 &S.Context.Idents.get("swift"), VersionTuple(), VersionTuple(), in ProcessAPINotes()
271 ASTAllocateString(S.Context, Info.UnavailableMsg), in ProcessAPINotes()
291 return new (S.Context) in ProcessAPINotes()
292 SwiftPrivateAttr(S.Context, getPlaceholderAttrInfo()); in ProcessAPINotes()
312 return new (S.Context) in ProcessAPINotes()
313 SwiftNameAttr(S.Context, getPlaceholderAttrInfo(), in ProcessAPINotes()
314 ASTAllocateString(S.Context, Info.SwiftName)); in ProcessAPINotes()
326 return new (S.Context) in ProcessAPINotes()
327 SwiftBridgeAttr(S.Context, getPlaceholderAttrInfo(), in ProcessAPINotes()
328 ASTAllocateString(S.Context, *SwiftBridge)); in ProcessAPINotes()
336 return new (S.Context) in ProcessAPINotes()
337 NSErrorDomainAttr(S.Context, getPlaceholderAttrInfo(), in ProcessAPINotes()
338 &S.Context.Idents.get(*NSErrorDomain)); in ProcessAPINotes()
352 if (S.Context.getTypeSize(OrigType) != in checkAPINotesReplacementType()
353 S.Context.getTypeSize(ReplacementType)) { in checkAPINotesReplacementType()
374 S.Context.getTrivialTypeSourceInfo(Type, D->getLocation()); in ProcessAPINotes()
381 Type = S.Context.getAdjustedParameterType(Type); in ProcessAPINotes()
415 return new (S.Context) NoEscapeAttr(S.Context, getPlaceholderAttrInfo()); in ProcessAPINotes()
447 return new (S.Context) SwiftImportPropertyAsAccessorsAttr( in ProcessAPINotes()
448 S.Context, getPlaceholderAttrInfo()); in ProcessAPINotes()
508 S.Context.getTrivialTypeSourceInfo(ResultType, D->getLocation()); in ProcessAPINotes()
531 FD->setType(S.Context.getFunctionType(OverriddenResultType, ParamTypes, in ProcessAPINotes()
535 FD->setType(S.Context.getFunctionNoProtoType( in ProcessAPINotes()
585 return new (S.Context) ObjCDesignatedInitializerAttr( in ProcessAPINotes()
586 S.Context, getPlaceholderAttrInfo()); in ProcessAPINotes()
599 D->addAttr(SwiftAttrAttr::Create(S.Context, "import_" + ImportAs.value())); in ProcessAPINotes()
602 D->addAttr(SwiftAttrAttr::Create(S.Context, "retain:" + RetainOp.value())); in ProcessAPINotes()
606 SwiftAttrAttr::Create(S.Context, "release:" + ReleaseOp.value())); in ProcessAPINotes()
610 D->addAttr(SwiftAttrAttr::Create(S.Context, "~Copyable")); in ProcessAPINotes()
629 return new (S.Context) in ProcessAPINotes()
630 EnumExtensibilityAttr(S.Context, getPlaceholderAttrInfo(), kind); in ProcessAPINotes()
636 return new (S.Context) FlagEnumAttr(S.Context, getPlaceholderAttrInfo()); in ProcessAPINotes()
673 return new (S.Context) SwiftNewTypeAttr(S.Context, SyntaxInfo, Kind); in ProcessAPINotes()
698 return new (S.Context) in ProcessAPINotes()
699 SwiftImportAsNonGenericAttr(S.Context, getPlaceholderAttrInfo()); in ProcessAPINotes()
706 return new (S.Context) in ProcessAPINotes()
707 SwiftObjCMembersAttr(S.Context, getPlaceholderAttrInfo()); in ProcessAPINotes()
793 [&](DeclContext *DC) -> std::optional<api_notes::Context> { in ProcessAPINotes()
817 return api_notes::Context(*NamespaceID, in ProcessAPINotes()
829 std::optional<api_notes::Context> APINotesContext = in ProcessAPINotes()
978 if (auto Context = GetContext(Reader)) { in ProcessAPINotes() local
993 auto Info = Reader->lookupObjCMethod(*Context, SelectorRef, in ProcessAPINotes()
1003 if (auto Context = GetContext(Reader)) { in ProcessAPINotes() local
1007 auto Info = Reader->lookupObjCProperty(*Context, Property->getName(), in ProcessAPINotes()
1029 if (auto Context = GetRecordContext(Reader)) { in ProcessAPINotes() local
1030 auto Info = Reader->lookupCXXMethod(*Context, CXXMethod->getName()); in ProcessAPINotes()