Home
last modified time | relevance | path

Searched refs:PropertyKind (Results 1 – 21 of 21) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/src/base/
Dproperties.ts20 export enum PropertyKind { enum
30 private propKind: PropertyKind;
38 … constructor(propKind: PropertyKind, name: string | number | ts.ComputedPropertyName | undefined) {
68 getKind(): PropertyKind {
73 if (this.propKind === PropertyKind.ACCESSOR) {
94 if (this.propKind != PropertyKind.ACCESSOR) {
97 this.propKind = PropertyKind.ACCESSOR;
103 if (this.propKind != PropertyKind.ACCESSOR) {
106 this.propKind = PropertyKind.ACCESSOR;
111 setKind(propKind: PropertyKind): void {
[all …]
/arkcompiler/ets_frontend/es2panda/ir/base/
Dproperty.h33 enum class PropertyKind { INIT, GET, SET, PROTO }; enum
39 kind_(PropertyKind::INIT), in Property()
48 …explicit Property(PropertyKind kind, Expression *key, Expression *value, bool isMethod, bool isCom… in Property()
79 PropertyKind Kind() const in Kind()
104 static bool IsAccessorKind(PropertyKind kind) in IsAccessorKind()
106 return kind == PropertyKind::GET || kind == PropertyKind::SET; in IsAccessorKind()
118 PropertyKind kind_;
Dproperty.cpp71 kind_ = PropertyKind::PROTO; in ValidateExpression()
101 case PropertyKind::INIT: { in Dump()
105 case PropertyKind::PROTO: { in Dump()
109 case PropertyKind::GET: { in Dump()
113 case PropertyKind::SET: { in Dump()
/arkcompiler/ets_frontend/ets2panda/ir/base/
Dproperty.h23 enum class PropertyKind { INIT, GET, SET, PROTO }; enum
37 : Expression(AstNodeType::PROPERTY), kind_(PropertyKind::INIT), key_(key), value_(value) in Property()
41 …explicit Property(PropertyKind const kind, Expression *const key, Expression *const value, bool co… in Property()
75 [[nodiscard]] PropertyKind Kind() const noexcept in Kind()
100 [[nodiscard]] static bool IsAccessorKind(PropertyKind kind) noexcept in IsAccessorKind()
102 return kind == PropertyKind::GET || kind == PropertyKind::SET; in IsAccessorKind()
135 PropertyKind kind_;
Dproperty.cpp106 kind_ = PropertyKind::PROTO; in ValidateExpression()
142 case PropertyKind::INIT: { in Dump()
146 case PropertyKind::PROTO: { in Dump()
150 case PropertyKind::GET: { in Dump()
154 case PropertyKind::SET: { in Dump()
/arkcompiler/ets_frontend/ts2panda/src/expression/
DobjectLiteralExpression.ts25 import { PropertyKind, Property, generatePropertyFromExpr } from "../base/properties";
62 if (prop.getKind() === PropertyKind.SPREAD || prop.getKind() === PropertyKind.COMPUTED) {
66 if (prop.getKind() === PropertyKind.PROTOTYPE || prop.isRedeclared()) {
72 if (prop.getKind() === PropertyKind.CONSTANT) {
79 if (prop.getKind() === PropertyKind.VARIABLE) {
101 if (prop.getKind() === PropertyKind.ACCESSOR) {
247 case PropertyKind.ACCESSOR: {
251 case PropertyKind.SPREAD: {
255 case PropertyKind.COMPUTED: {
259 case PropertyKind.CONSTANT:
[all …]
/arkcompiler/ets_frontend/ts2panda/src/statement/
DclassStatement.ts24 PropertyKind
79 if (prop.getKind() === PropertyKind.CONSTANT) {
88 if (prop.getKind() === PropertyKind.VARIABLE) {
115 if (prop.getKind() === PropertyKind.COMPUTED || prop.getKind() === PropertyKind.ACCESSOR) {
222 case PropertyKind.CONSTANT:
226 case PropertyKind.VARIABLE:
229 case PropertyKind.COMPUTED:
235 case PropertyKind.ACCESSOR:
443 propKind: PropertyKind,
447 if (propKind === PropertyKind.COMPUTED || propKind === PropertyKind.SPREAD) {
[all …]
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DobjectExpression.cpp103 if (prop->Kind() == PropertyKind::PROTO) { in ValidateExpression()
249 if (prop->Kind() != ir::PropertyKind::INIT) { in CreateLiteral()
293 prop->Kind() == ir::PropertyKind::PROTO) { in CompileStaticProperties()
309 …if (prop->Kind() != ir::PropertyKind::SET && getterIndxNameMap.find(name) != getterIndxNameMap.end… in CompileStaticProperties()
313 …if (prop->Kind() != ir::PropertyKind::GET && setterIndxNameMap.find(name) != setterIndxNameMap.end… in CompileStaticProperties()
318 if (prop->Kind() == ir::PropertyKind::GET) { in CompileStaticProperties()
320 } else if (prop->Kind() == ir::PropertyKind::SET) { in CompileStaticProperties()
359 if (prop->Kind() == ir::PropertyKind::GET) { in CompilePropertyOfGetterOrSetter()
424 case ir::PropertyKind::GET: in CompileRemainingProperties()
425 case ir::PropertyKind::SET: { in CompileRemainingProperties()
[all …]
/arkcompiler/ets_frontend/ets2panda/parser/
DexpressionParser.cpp1807 bool ParserImpl::ParsePropertyModifiers(ExpressionParseFlags flags, ir::PropertyKind *propertyKind, in ParsePropertyModifiers()
1830 *propertyKind = ir::PropertyKind::GET; in ParsePropertyModifiers()
1840 *propertyKind = ir::PropertyKind::SET; in ParsePropertyModifiers()
1906 ir::Expression *ParserImpl::ParsePropertyValue(const ir::PropertyKind *propertyKind, const ParserSt… in ParsePropertyValue()
1934 if (*propertyKind != ir::PropertyKind::SET) { in ParsePropertyValue()
1946 if (*propertyKind == ir::PropertyKind::SET && paramsSize != 1) { in ParsePropertyValue()
1950 if (*propertyKind == ir::PropertyKind::GET && paramsSize != 0) { in ParsePropertyValue()
1960 ir::PropertyKind propertyKind = ir::PropertyKind::INIT; in ParsePropertyDefinition()
1987 propertyKind = ir::PropertyKind::INIT; in ParsePropertyDefinition()
DparserImpl.h95 enum class PropertyKind; variable
222 …bool ParsePropertyModifiers(ExpressionParseFlags flags, ir::PropertyKind *propertyKind, ParserStat…
223 …ir::Expression *ParsePropertyValue(const ir::PropertyKind *propertyKind, const ParserStatus *metho…
/arkcompiler/ets_runtime/ecmascript/
Djs_object.h54 enum PropertyKind { KEY = 0, VALUE, KEY_VALUE }; enum
452 PropertyKind kind);
455 uint32_t &index, bool &fastMode, PropertyKind kind);
772 PropertyKind kind);
Djs_object-inl.h468 PropertyKind kind) in SetValuesOrEntries()
470 if (kind == PropertyKind::VALUE) { in SetValuesOrEntries()
Djs_object.cpp1862 …TaggedArray> &arr, JSHandle<TaggedArray> &prop, uint32_t &index, bool &fastMode, PropertyKind kind) in EnumerableOwnPropertyNamesHelper()
1899 PropertyKind kind) in EnumerableOwnPropertyNames()
1957 if (kind == PropertyKind::KEY) { in EnumerableOwnPropertyNames()
/arkcompiler/ets_frontend/es2panda/parser/
DexpressionParser.cpp2066 bool ParserImpl::ParsePropertyModifiers(ExpressionParseFlags flags, ir::PropertyKind *propertyKind, in ParsePropertyModifiers()
2089 *propertyKind = ir::PropertyKind::GET; in ParsePropertyModifiers()
2099 *propertyKind = ir::PropertyKind::SET; in ParsePropertyModifiers()
2165 ir::Expression *ParserImpl::ParsePropertyValue(const ir::PropertyKind *propertyKind, const ParserSt… in ParsePropertyValue()
2201 if (*propertyKind == ir::PropertyKind::SET && paramsSize != 1) { in ParsePropertyValue()
2205 if (*propertyKind == ir::PropertyKind::GET && paramsSize != 0) { in ParsePropertyValue()
2214 ir::PropertyKind propertyKind = ir::PropertyKind::INIT; in ParsePropertyDefinition()
2241 propertyKind = ir::PropertyKind::INIT; in ParsePropertyDefinition()
DparserImpl.h117 enum class PropertyKind; variable
350 …bool ParsePropertyModifiers(ExpressionParseFlags flags, ir::PropertyKind *propertyKind, ParserStat… in DEFINE_BITOPS()
352 …ir::Expression *ParsePropertyValue(const ir::PropertyKind *propertyKind, const ParserStatus *metho… in DEFINE_BITOPS()
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
DobjectExpression.cpp107 if (prop->Kind() == PropertyKind::PROTO) { in ValidateExpression()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DJSCompiler.cpp953 if (prop->Kind() != ir::PropertyKind::INIT) { in CreateLiteral()
990 prop->Kind() != ir::PropertyKind::PROTO; in IsLiteralBufferCompatible()
1074 case ir::PropertyKind::GET: in CompileRemainingProperties()
1075 case ir::PropertyKind::SET: { in CompileRemainingProperties()
1090 if (prop->Kind() == ir::PropertyKind::GET) { in CompileRemainingProperties()
1099 case ir::PropertyKind::INIT: { in CompileRemainingProperties()
1110 case ir::PropertyKind::PROTO: { in CompileRemainingProperties()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_object.cpp656 …JSHandle<TaggedArray> nameList = JSObject::EnumerableOwnPropertyNames(thread, obj, PropertyKind::V… in Values()
1083 …gedArray> nameList = JSObject::EnumerableOwnPropertyNames(thread, object, PropertyKind::KEY_VALUE); in Entries()
/arkcompiler/ets_frontend/ets2panda/util/
Dhelpers.cpp587 if (prop->Kind() != ir::PropertyKind::PROTO && in FunctionName()
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.cpp535 if (prop->Kind() != ir::PropertyKind::PROTO && in FunctionName()
/arkcompiler/ets_frontend/ets2panda/checker/
DTSAnalyzer.cpp843 if (prop->IsAccessor() && prop->Kind() == ir::PropertyKind::GET) { in GetFlagsForProperty()
855 if (prop->Kind() == ir::PropertyKind::SET) { in GetTypeForProperty()