Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 1 | //===--- MultiplexExternalSemaSource.cpp ---------------------------------===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // This file implements the event dispatching to the subscribed clients. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | #include "clang/Sema/MultiplexExternalSemaSource.h" |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 13 | #include "clang/AST/DeclContextInternals.h" |
| 14 | #include "clang/Sema/Lookup.h" |
| 15 | |
| 16 | using namespace clang; |
| 17 | |
Adrian Prantl | 9fc8faf | 2018-05-09 01:00:01 +0000 | [diff] [blame] | 18 | ///Constructs a new multiplexing external sema source and appends the |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 19 | /// given element to it. |
| 20 | /// |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 21 | MultiplexExternalSemaSource::MultiplexExternalSemaSource(ExternalSemaSource &s1, |
| 22 | ExternalSemaSource &s2){ |
| 23 | Sources.push_back(&s1); |
| 24 | Sources.push_back(&s2); |
| 25 | } |
| 26 | |
| 27 | // pin the vtable here. |
Angel Garcia Gomez | 637d1e6 | 2015-10-20 13:23:58 +0000 | [diff] [blame] | 28 | MultiplexExternalSemaSource::~MultiplexExternalSemaSource() {} |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 29 | |
Adrian Prantl | 9fc8faf | 2018-05-09 01:00:01 +0000 | [diff] [blame] | 30 | ///Appends new source to the source list. |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 31 | /// |
| 32 | ///\param[in] source - An ExternalSemaSource. |
| 33 | /// |
| 34 | void MultiplexExternalSemaSource::addSource(ExternalSemaSource &source) { |
| 35 | Sources.push_back(&source); |
| 36 | } |
| 37 | |
| 38 | //===----------------------------------------------------------------------===// |
| 39 | // ExternalASTSource. |
| 40 | //===----------------------------------------------------------------------===// |
| 41 | |
| 42 | Decl *MultiplexExternalSemaSource::GetExternalDecl(uint32_t ID) { |
| 43 | for(size_t i = 0; i < Sources.size(); ++i) |
| 44 | if (Decl *Result = Sources[i]->GetExternalDecl(ID)) |
| 45 | return Result; |
Craig Topper | c3ec149 | 2014-05-26 06:22:03 +0000 | [diff] [blame] | 46 | return nullptr; |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 47 | } |
| 48 | |
Richard Smith | 053f6c6 | 2014-05-16 23:01:30 +0000 | [diff] [blame] | 49 | void MultiplexExternalSemaSource::CompleteRedeclChain(const Decl *D) { |
| 50 | for (size_t i = 0; i < Sources.size(); ++i) |
| 51 | Sources[i]->CompleteRedeclChain(D); |
| 52 | } |
| 53 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 54 | Selector MultiplexExternalSemaSource::GetExternalSelector(uint32_t ID) { |
| 55 | Selector Sel; |
| 56 | for(size_t i = 0; i < Sources.size(); ++i) { |
| 57 | Sel = Sources[i]->GetExternalSelector(ID); |
| 58 | if (!Sel.isNull()) |
| 59 | return Sel; |
| 60 | } |
| 61 | return Sel; |
| 62 | } |
| 63 | |
| 64 | uint32_t MultiplexExternalSemaSource::GetNumExternalSelectors() { |
| 65 | uint32_t total = 0; |
| 66 | for(size_t i = 0; i < Sources.size(); ++i) |
| 67 | total += Sources[i]->GetNumExternalSelectors(); |
| 68 | return total; |
| 69 | } |
| 70 | |
| 71 | Stmt *MultiplexExternalSemaSource::GetExternalDeclStmt(uint64_t Offset) { |
| 72 | for(size_t i = 0; i < Sources.size(); ++i) |
| 73 | if (Stmt *Result = Sources[i]->GetExternalDeclStmt(Offset)) |
| 74 | return Result; |
Craig Topper | c3ec149 | 2014-05-26 06:22:03 +0000 | [diff] [blame] | 75 | return nullptr; |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | CXXBaseSpecifier *MultiplexExternalSemaSource::GetExternalCXXBaseSpecifiers( |
| 79 | uint64_t Offset){ |
| 80 | for(size_t i = 0; i < Sources.size(); ++i) |
| 81 | if (CXXBaseSpecifier *R = Sources[i]->GetExternalCXXBaseSpecifiers(Offset)) |
| 82 | return R; |
Craig Topper | c3ec149 | 2014-05-26 06:22:03 +0000 | [diff] [blame] | 83 | return nullptr; |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 84 | } |
| 85 | |
Richard Smith | c2bb818 | 2015-03-24 06:36:48 +0000 | [diff] [blame] | 86 | CXXCtorInitializer ** |
| 87 | MultiplexExternalSemaSource::GetExternalCXXCtorInitializers(uint64_t Offset) { |
| 88 | for (auto *S : Sources) |
| 89 | if (auto *R = S->GetExternalCXXCtorInitializers(Offset)) |
| 90 | return R; |
| 91 | return nullptr; |
| 92 | } |
| 93 | |
David Blaikie | 9ffe5a3 | 2017-01-30 05:00:26 +0000 | [diff] [blame] | 94 | ExternalASTSource::ExtKind |
David Blaikie | 1ac9c98 | 2017-04-11 21:13:37 +0000 | [diff] [blame] | 95 | MultiplexExternalSemaSource::hasExternalDefinitions(const Decl *D) { |
David Blaikie | 9ffe5a3 | 2017-01-30 05:00:26 +0000 | [diff] [blame] | 96 | for (const auto &S : Sources) |
David Blaikie | 1ac9c98 | 2017-04-11 21:13:37 +0000 | [diff] [blame] | 97 | if (auto EK = S->hasExternalDefinitions(D)) |
David Blaikie | 9ffe5a3 | 2017-01-30 05:00:26 +0000 | [diff] [blame] | 98 | if (EK != EK_ReplyHazy) |
| 99 | return EK; |
| 100 | return EK_ReplyHazy; |
| 101 | } |
| 102 | |
Richard Smith | 9ce12e3 | 2013-02-07 03:30:24 +0000 | [diff] [blame] | 103 | bool MultiplexExternalSemaSource:: |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 104 | FindExternalVisibleDeclsByName(const DeclContext *DC, DeclarationName Name) { |
Richard Smith | 9ce12e3 | 2013-02-07 03:30:24 +0000 | [diff] [blame] | 105 | bool AnyDeclsFound = false; |
| 106 | for (size_t i = 0; i < Sources.size(); ++i) |
| 107 | AnyDeclsFound |= Sources[i]->FindExternalVisibleDeclsByName(DC, Name); |
| 108 | return AnyDeclsFound; |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 109 | } |
| 110 | |
| 111 | void MultiplexExternalSemaSource::completeVisibleDeclsMap(const DeclContext *DC){ |
| 112 | for(size_t i = 0; i < Sources.size(); ++i) |
| 113 | Sources[i]->completeVisibleDeclsMap(DC); |
| 114 | } |
| 115 | |
Richard Smith | 3cb1572 | 2015-08-05 22:41:45 +0000 | [diff] [blame] | 116 | void MultiplexExternalSemaSource::FindExternalLexicalDecls( |
| 117 | const DeclContext *DC, llvm::function_ref<bool(Decl::Kind)> IsKindWeWant, |
| 118 | SmallVectorImpl<Decl *> &Result) { |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 119 | for(size_t i = 0; i < Sources.size(); ++i) |
Richard Smith | 3cb1572 | 2015-08-05 22:41:45 +0000 | [diff] [blame] | 120 | Sources[i]->FindExternalLexicalDecls(DC, IsKindWeWant, Result); |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 121 | } |
| 122 | |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 123 | void MultiplexExternalSemaSource::FindFileRegionDecls(FileID File, |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 124 | unsigned Offset, |
| 125 | unsigned Length, |
| 126 | SmallVectorImpl<Decl *> &Decls){ |
| 127 | for(size_t i = 0; i < Sources.size(); ++i) |
| 128 | Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); |
| 129 | } |
| 130 | |
| 131 | void MultiplexExternalSemaSource::CompleteType(TagDecl *Tag) { |
| 132 | for(size_t i = 0; i < Sources.size(); ++i) |
| 133 | Sources[i]->CompleteType(Tag); |
| 134 | } |
| 135 | |
| 136 | void MultiplexExternalSemaSource::CompleteType(ObjCInterfaceDecl *Class) { |
| 137 | for(size_t i = 0; i < Sources.size(); ++i) |
| 138 | Sources[i]->CompleteType(Class); |
| 139 | } |
| 140 | |
| 141 | void MultiplexExternalSemaSource::ReadComments() { |
| 142 | for(size_t i = 0; i < Sources.size(); ++i) |
| 143 | Sources[i]->ReadComments(); |
| 144 | } |
| 145 | |
| 146 | void MultiplexExternalSemaSource::StartedDeserializing() { |
| 147 | for(size_t i = 0; i < Sources.size(); ++i) |
| 148 | Sources[i]->StartedDeserializing(); |
| 149 | } |
| 150 | |
| 151 | void MultiplexExternalSemaSource::FinishedDeserializing() { |
| 152 | for(size_t i = 0; i < Sources.size(); ++i) |
| 153 | Sources[i]->FinishedDeserializing(); |
| 154 | } |
| 155 | |
| 156 | void MultiplexExternalSemaSource::StartTranslationUnit(ASTConsumer *Consumer) { |
| 157 | for(size_t i = 0; i < Sources.size(); ++i) |
| 158 | Sources[i]->StartTranslationUnit(Consumer); |
| 159 | } |
| 160 | |
| 161 | void MultiplexExternalSemaSource::PrintStats() { |
| 162 | for(size_t i = 0; i < Sources.size(); ++i) |
| 163 | Sources[i]->PrintStats(); |
| 164 | } |
| 165 | |
Raphael Isemann | 025d620c | 2018-01-22 15:27:25 +0000 | [diff] [blame] | 166 | Module *MultiplexExternalSemaSource::getModule(unsigned ID) { |
| 167 | for (size_t i = 0; i < Sources.size(); ++i) |
| 168 | if (auto M = Sources[i]->getModule(ID)) |
| 169 | return M; |
| 170 | return nullptr; |
| 171 | } |
| 172 | |
Hans Wennborg | 08c5a7b | 2018-06-25 13:23:49 +0000 | [diff] [blame] | 173 | bool MultiplexExternalSemaSource::DeclIsFromPCHWithObjectFile(const Decl *D) { |
| 174 | for (auto *S : Sources) |
| 175 | if (S->DeclIsFromPCHWithObjectFile(D)) |
| 176 | return true; |
| 177 | return false; |
| 178 | } |
| 179 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 180 | bool MultiplexExternalSemaSource::layoutRecordType(const RecordDecl *Record, |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 181 | uint64_t &Size, |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 182 | uint64_t &Alignment, |
| 183 | llvm::DenseMap<const FieldDecl *, uint64_t> &FieldOffsets, |
| 184 | llvm::DenseMap<const CXXRecordDecl *, CharUnits> &BaseOffsets, |
| 185 | llvm::DenseMap<const CXXRecordDecl *, CharUnits> &VirtualBaseOffsets){ |
| 186 | for(size_t i = 0; i < Sources.size(); ++i) |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 187 | if (Sources[i]->layoutRecordType(Record, Size, Alignment, FieldOffsets, |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 188 | BaseOffsets, VirtualBaseOffsets)) |
| 189 | return true; |
| 190 | return false; |
| 191 | } |
| 192 | |
| 193 | void MultiplexExternalSemaSource:: |
| 194 | getMemoryBufferSizes(MemoryBufferSizes &sizes) const { |
| 195 | for(size_t i = 0; i < Sources.size(); ++i) |
| 196 | Sources[i]->getMemoryBufferSizes(sizes); |
| 197 | |
| 198 | } |
| 199 | |
| 200 | //===----------------------------------------------------------------------===// |
| 201 | // ExternalSemaSource. |
| 202 | //===----------------------------------------------------------------------===// |
| 203 | |
| 204 | |
| 205 | void MultiplexExternalSemaSource::InitializeSema(Sema &S) { |
| 206 | for(size_t i = 0; i < Sources.size(); ++i) |
| 207 | Sources[i]->InitializeSema(S); |
| 208 | } |
| 209 | |
| 210 | void MultiplexExternalSemaSource::ForgetSema() { |
| 211 | for(size_t i = 0; i < Sources.size(); ++i) |
| 212 | Sources[i]->ForgetSema(); |
| 213 | } |
| 214 | |
| 215 | void MultiplexExternalSemaSource::ReadMethodPool(Selector Sel) { |
| 216 | for(size_t i = 0; i < Sources.size(); ++i) |
| 217 | Sources[i]->ReadMethodPool(Sel); |
| 218 | } |
| 219 | |
Manman Ren | a0f31a0 | 2016-04-29 19:04:05 +0000 | [diff] [blame] | 220 | void MultiplexExternalSemaSource::updateOutOfDateSelector(Selector Sel) { |
| 221 | for(size_t i = 0; i < Sources.size(); ++i) |
| 222 | Sources[i]->updateOutOfDateSelector(Sel); |
| 223 | } |
| 224 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 225 | void MultiplexExternalSemaSource::ReadKnownNamespaces( |
| 226 | SmallVectorImpl<NamespaceDecl*> &Namespaces){ |
| 227 | for(size_t i = 0; i < Sources.size(); ++i) |
| 228 | Sources[i]->ReadKnownNamespaces(Namespaces); |
| 229 | } |
Nick Lewycky | 8334af8 | 2013-01-26 00:35:08 +0000 | [diff] [blame] | 230 | |
Nick Lewycky | 9c7eb1d | 2013-02-01 08:13:20 +0000 | [diff] [blame] | 231 | void MultiplexExternalSemaSource::ReadUndefinedButUsed( |
Richard Smith | d6a04d7 | 2016-03-25 21:49:43 +0000 | [diff] [blame] | 232 | llvm::MapVector<NamedDecl *, SourceLocation> &Undefined) { |
Nick Lewycky | 8334af8 | 2013-01-26 00:35:08 +0000 | [diff] [blame] | 233 | for(size_t i = 0; i < Sources.size(); ++i) |
Nick Lewycky | 9c7eb1d | 2013-02-01 08:13:20 +0000 | [diff] [blame] | 234 | Sources[i]->ReadUndefinedButUsed(Undefined); |
Nick Lewycky | 8334af8 | 2013-01-26 00:35:08 +0000 | [diff] [blame] | 235 | } |
Ismail Pazarbasi | e5768d1 | 2015-05-18 19:59:11 +0000 | [diff] [blame] | 236 | |
| 237 | void MultiplexExternalSemaSource::ReadMismatchingDeleteExpressions( |
| 238 | llvm::MapVector<FieldDecl *, |
| 239 | llvm::SmallVector<std::pair<SourceLocation, bool>, 4>> & |
| 240 | Exprs) { |
| 241 | for (auto &Source : Sources) |
| 242 | Source->ReadMismatchingDeleteExpressions(Exprs); |
| 243 | } |
| 244 | |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 245 | bool MultiplexExternalSemaSource::LookupUnqualified(LookupResult &R, Scope *S){ |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 246 | for(size_t i = 0; i < Sources.size(); ++i) |
| 247 | Sources[i]->LookupUnqualified(R, S); |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 248 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 249 | return !R.empty(); |
| 250 | } |
| 251 | |
| 252 | void MultiplexExternalSemaSource::ReadTentativeDefinitions( |
| 253 | SmallVectorImpl<VarDecl*> &TentativeDefs) { |
| 254 | for(size_t i = 0; i < Sources.size(); ++i) |
| 255 | Sources[i]->ReadTentativeDefinitions(TentativeDefs); |
| 256 | } |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 257 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 258 | void MultiplexExternalSemaSource::ReadUnusedFileScopedDecls( |
| 259 | SmallVectorImpl<const DeclaratorDecl*> &Decls) { |
| 260 | for(size_t i = 0; i < Sources.size(); ++i) |
| 261 | Sources[i]->ReadUnusedFileScopedDecls(Decls); |
| 262 | } |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 263 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 264 | void MultiplexExternalSemaSource::ReadDelegatingConstructors( |
| 265 | SmallVectorImpl<CXXConstructorDecl*> &Decls) { |
| 266 | for(size_t i = 0; i < Sources.size(); ++i) |
| 267 | Sources[i]->ReadDelegatingConstructors(Decls); |
| 268 | } |
| 269 | |
| 270 | void MultiplexExternalSemaSource::ReadExtVectorDecls( |
| 271 | SmallVectorImpl<TypedefNameDecl*> &Decls) { |
| 272 | for(size_t i = 0; i < Sources.size(); ++i) |
| 273 | Sources[i]->ReadExtVectorDecls(Decls); |
| 274 | } |
| 275 | |
Nico Weber | 7288943 | 2014-09-06 01:25:55 +0000 | [diff] [blame] | 276 | void MultiplexExternalSemaSource::ReadUnusedLocalTypedefNameCandidates( |
| 277 | llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) { |
| 278 | for(size_t i = 0; i < Sources.size(); ++i) |
| 279 | Sources[i]->ReadUnusedLocalTypedefNameCandidates(Decls); |
| 280 | } |
| 281 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 282 | void MultiplexExternalSemaSource::ReadReferencedSelectors( |
| 283 | SmallVectorImpl<std::pair<Selector, SourceLocation> > &Sels) { |
| 284 | for(size_t i = 0; i < Sources.size(); ++i) |
| 285 | Sources[i]->ReadReferencedSelectors(Sels); |
| 286 | } |
| 287 | |
| 288 | void MultiplexExternalSemaSource::ReadWeakUndeclaredIdentifiers( |
| 289 | SmallVectorImpl<std::pair<IdentifierInfo*, WeakInfo> > &WI) { |
| 290 | for(size_t i = 0; i < Sources.size(); ++i) |
| 291 | Sources[i]->ReadWeakUndeclaredIdentifiers(WI); |
| 292 | } |
| 293 | |
| 294 | void MultiplexExternalSemaSource::ReadUsedVTables( |
| 295 | SmallVectorImpl<ExternalVTableUse> &VTables) { |
| 296 | for(size_t i = 0; i < Sources.size(); ++i) |
| 297 | Sources[i]->ReadUsedVTables(VTables); |
| 298 | } |
| 299 | |
| 300 | void MultiplexExternalSemaSource::ReadPendingInstantiations( |
| 301 | SmallVectorImpl<std::pair<ValueDecl*, |
| 302 | SourceLocation> > &Pending) { |
| 303 | for(size_t i = 0; i < Sources.size(); ++i) |
| 304 | Sources[i]->ReadPendingInstantiations(Pending); |
| 305 | } |
Richard Smith | e40f2ba | 2013-08-07 21:41:30 +0000 | [diff] [blame] | 306 | |
| 307 | void MultiplexExternalSemaSource::ReadLateParsedTemplates( |
Justin Lebar | 28f09c5 | 2016-10-10 16:26:08 +0000 | [diff] [blame] | 308 | llvm::MapVector<const FunctionDecl *, std::unique_ptr<LateParsedTemplate>> |
| 309 | &LPTMap) { |
Richard Smith | e40f2ba | 2013-08-07 21:41:30 +0000 | [diff] [blame] | 310 | for (size_t i = 0; i < Sources.size(); ++i) |
| 311 | Sources[i]->ReadLateParsedTemplates(LPTMap); |
| 312 | } |
Kaelyn Uhrain | f0aabda | 2013-08-12 19:54:38 +0000 | [diff] [blame] | 313 | |
| 314 | TypoCorrection MultiplexExternalSemaSource::CorrectTypo( |
| 315 | const DeclarationNameInfo &Typo, |
| 316 | int LookupKind, Scope *S, CXXScopeSpec *SS, |
| 317 | CorrectionCandidateCallback &CCC, |
| 318 | DeclContext *MemberContext, |
| 319 | bool EnteringContext, |
| 320 | const ObjCObjectPointerType *OPT) { |
| 321 | for (size_t I = 0, E = Sources.size(); I < E; ++I) { |
| 322 | if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, |
| 323 | MemberContext, |
| 324 | EnteringContext, OPT)) |
| 325 | return C; |
| 326 | } |
| 327 | return TypoCorrection(); |
| 328 | } |
Kaelyn Uhrain | 2c351bb | 2013-08-12 22:11:14 +0000 | [diff] [blame] | 329 | |
| 330 | bool MultiplexExternalSemaSource::MaybeDiagnoseMissingCompleteType( |
| 331 | SourceLocation Loc, QualType T) { |
| 332 | for (size_t I = 0, E = Sources.size(); I < E; ++I) { |
| 333 | if (Sources[I]->MaybeDiagnoseMissingCompleteType(Loc, T)) |
| 334 | return true; |
| 335 | } |
| 336 | return false; |
| 337 | } |