Lines Matching defs:scope
33 const char *WhyBaseObjectIsSuspicious(const Symbol &x, const Scope &scope) {
34 if (IsHostAssociatedIntoSubprogram(x, scope)) {
36 } else if (IsUseAssociated(x, scope)) {
99 const Scope &scope, DefinabilityFlags flags, const Symbol &original,
114 return WhyNotDefinableBase(at, scope, flags, dataRef->GetFirstSymbol(),
124 } else if (IsProtected(ultimate) && IsUseAssociated(original, scope)) {
125 return BlameSymbol(at, "'%s' is protected in this scope"_en_US, original);
135 scope.context().NoteDefinedSymbol(ultimate);
137 if (const Scope * pure{FindPureProcedureContaining(scope)}) {
141 at, original, ultimate, scope, *pure)}) {
153 if (const Scope * deviceContext{FindCUDADeviceContext(&scope)}) {
185 const Scope &scope, DefinabilityFlags flags, const Symbol &original) {
193 return WhyNotDefinableLast(at, scope, flags, dataRef->GetLastSymbol());
213 if (FindPureProcedureContaining(scope)) {
242 const Scope &scope, DefinabilityFlags flags,
245 WhyNotDefinableBase(at, scope, flags, dataRef.GetFirstSymbol(),
250 WhyNotDefinableLast(at, scope, flags, dataRef.GetLastSymbol())}) {
260 const Scope &scope, DefinabilityFlags flags, const Symbol &original) {
261 auto whyNotBase{WhyNotDefinableBase(at, scope, flags, original,
264 if (auto whyNotLast{WhyNotDefinableLast(at, scope, flags, original)}) {
315 const Scope &scope, DefinabilityFlags flags,
351 scope.context().languageFeatures().ShouldWarn(
366 DuplicatedSubscriptFinder{scope.context().foldingContext()}(expr)) {
375 if (FindPureProcedureContaining(scope) &&
381 if (auto whyNotDataRef{WhyNotDefinable(at, scope, flags, *dataRef)}) {
399 return WhyNotDefinableBase(at, scope, flags,
403 return WhyNotDefinable(at, scope, flags, *procSym);