зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1424946
- Move GeneralParser::declareDotGeneratorName into a baser class. r=arai
This commit is contained in:
Родитель
7aac997a48
Коммит
6fd90e2703
|
@ -2361,9 +2361,8 @@ PerHandlerParser<ParseHandler>::newDotGeneratorName()
|
|||
return newInternalDotName(context->names().dotGenerator);
|
||||
}
|
||||
|
||||
template <class ParseHandler, typename CharT>
|
||||
bool
|
||||
GeneralParser<ParseHandler, CharT>::declareDotGeneratorName()
|
||||
ParserBase::declareDotGeneratorName()
|
||||
{
|
||||
// The special '.generator' binding must be on the function scope, as
|
||||
// generators expect to find it on the CallObject.
|
||||
|
|
|
@ -246,6 +246,8 @@ class ParserBase
|
|||
bool noteUsedNameInternal(HandlePropertyName name);
|
||||
bool hasUsedName(HandlePropertyName name);
|
||||
bool hasUsedFunctionSpecialName(HandlePropertyName name);
|
||||
|
||||
bool declareDotGeneratorName();
|
||||
};
|
||||
|
||||
inline
|
||||
|
@ -401,6 +403,7 @@ class GeneralParser
|
|||
using Base::usedNames;
|
||||
|
||||
private:
|
||||
using Base::declareDotGeneratorName;
|
||||
using Base::declareFunctionThis;
|
||||
using Base::hasUsedName;
|
||||
using Base::newDotGeneratorName;
|
||||
|
@ -886,7 +889,6 @@ class GeneralParser
|
|||
bool matchInOrOf(bool* isForInp, bool* isForOfp);
|
||||
|
||||
bool declareFunctionArgumentsObject();
|
||||
bool declareDotGeneratorName();
|
||||
|
||||
inline bool finishFunction(bool isStandaloneFunction = false);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче