Searched refs:OptionalLoc (Results 1 – 2 of 2) sorted by relevance
327 StorageLocation &locForHasValue(const RecordStorageLocation &OptionalLoc) { in locForHasValue() argument328 return OptionalLoc.getSyntheticField("has_value"); in locForHasValue()331 StorageLocation &locForValue(const RecordStorageLocation &OptionalLoc) { in locForValue() argument332 return OptionalLoc.getSyntheticField("value"); in locForValue()337 void setHasValue(RecordStorageLocation &OptionalLoc, BoolValue &HasValueVal, in setHasValue() argument339 Env.setValue(locForHasValue(OptionalLoc), HasValueVal); in setHasValue()344 BoolValue *getHasValue(Environment &Env, RecordStorageLocation *OptionalLoc) { in getHasValue() argument345 if (OptionalLoc == nullptr) in getHasValue()347 StorageLocation &HasValueLoc = locForHasValue(*OptionalLoc); in getHasValue()387 if (auto *OptionalLoc = cast_or_null<RecordStorageLocation>( in transferUnwrapCall() local[all …]
1177 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl() local1178 ReplaceText(OptionalLoc, strlen("@optional"), "/* @optional */"); in RewriteProtocolDecl()1182 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl() local1183 ReplaceText(OptionalLoc, strlen("@required"), "/* @required */"); in RewriteProtocolDecl()