Home
last modified time | relevance | path

Searched refs:ASTAttr (Results 1 - 12 of 12) sorted by relevance

/foundation/ability/idl_tool/idl_tool_2/ast/
H A Dast_attribute.cpp21 std::string ASTAttr::ToString() const in ToString()
24 if (value_ & ASTAttr::MINI) { in ToString()
28 if (value_ & ASTAttr::LITE) { in ToString()
32 if (value_ & ASTAttr::FULL) { in ToString()
36 if (value_ & ASTAttr::ONEWAY) { in ToString()
40 if (value_ & ASTAttr::CALLBACK) { in ToString()
56 std::string ASTAttr::Dump(const std::string &prefix) in Dump()
61 bool ASTAttr::Match(SystemLevel level) const in Match()
65 return HasValue(ASTAttr::MINI); in Match()
67 return HasValue(ASTAttr in Match()
[all...]
H A Dast_method.h41 inline void SetAttribute(AutoPtr<ASTAttr> attr) in SetAttribute()
48 inline AutoPtr<ASTAttr> GetAttribute() const in GetAttribute()
65 return attr_->HasValue(ASTAttr::ONEWAY); in IsOneWay()
70 return attr_->HasValue(ASTAttr::FULL); in IsFull()
75 return attr_->HasValue(ASTAttr::LITE); in IsLite()
80 return attr_->HasValue(ASTAttr::MINI); in IsMini()
116 void SetCacheable(AutoPtr<ASTAttr> attr) in SetCacheable()
118 if (attr->HasValue(ASTAttr::CACHEABLE)) { in SetCacheable()
119 attr_->SetValue(ASTAttr::CACHEABLE); in SetCacheable()
136 return attr_->HasValue(ASTAttr in GetCacheable()
[all...]
H A Dast_interface_type.h34 attr_(new ASTAttr()), in ASTInterfaceType()
57 void SetAttribute(const AutoPtr<ASTAttr> &attr) in SetAttribute()
61 if (attr_->HasValue(ASTAttr::CALLBACK)) { in SetAttribute()
67 inline AutoPtr<ASTAttr> GetAttribute() const in GetAttribute()
79 return attr_->HasValue(ASTAttr::ONEWAY); in IsOneWay()
84 return attr_->HasValue(ASTAttr::CALLBACK); in IsCallback()
99 return attr_->HasValue(ASTAttr::FULL); in IsFull()
104 return attr_->HasValue(ASTAttr::LITE); in IsLite()
109 return attr_->HasValue(ASTAttr::MINI); in IsMini()
177 AutoPtr<ASTAttr> attr
[all...]
H A Dast_union_type.h30 ASTUnionType() : ASTType(true), attr_(new ASTAttr()), members_() {} in ASTUnionType()
42 inline void SetAttribute(const AutoPtr<ASTAttr> &attr) in SetAttribute()
51 return attr_ != nullptr ? attr_->HasValue(ASTAttr::FULL) : false; in IsFull()
56 return attr_ != nullptr ? attr_->HasValue(ASTAttr::LITE) : false; in IsLite()
90 AutoPtr<ASTAttr> attr_;
H A Dast_struct_type.h30 ASTStructType() : ASTType(true), attr_(new ASTAttr()), members_() {} in ASTStructType()
42 inline void SetAttribute(const AutoPtr<ASTAttr> &attr) in SetAttribute()
51 return attr_ != nullptr ? attr_->HasValue(ASTAttr::FULL) : false; in IsFull()
56 return attr_ != nullptr ? attr_->HasValue(ASTAttr::LITE) : false; in IsLite()
98 AutoPtr<ASTAttr> attr_;
H A Dast_enum_type.h67 ASTEnumType() : ASTType(true), attr_(new ASTAttr()), baseType_(), members_() {} in ASTEnumType()
79 inline void SetAttribute(const AutoPtr<ASTAttr> &attr) in SetAttribute()
88 return attr_ != nullptr ? attr_->HasValue(ASTAttr::FULL) : false; in IsFull()
93 return attr_ != nullptr ? attr_->HasValue(ASTAttr::LITE) : false; in IsLite()
137 AutoPtr<ASTAttr> attr_ = new ASTAttr();
H A Dast_attribute.h23 class ASTAttr : public ASTNode { class
35 explicit ASTAttr(Attribute value = ASTAttr::NONE) : value_(value) {} in ASTAttr() argument
/foundation/ability/idl_tool/idl_tool_2/parser/
H A Dintf_type_check.cpp81 ASTAttr::Attribute attr = ast_->GetInterfaceDef()->GetAttribute()->GetValue(); in CheckIntfSaAst()
82 if ((attr != ASTAttr::NONE) && (attr != ASTAttr::ONEWAY)) { in CheckIntfSaAst()
125 bool onewayInterface = (interfaceType->GetAttribute()->GetValue() == ASTAttr::ONEWAY); in CheckIntfSaAstMethods()
129 if (((method->GetAttribute()->GetValue()) & (~(ASTAttr::ONEWAY | ASTAttr::CACHEABLE))) != 0) { in CheckIntfSaAstMethods()
134 if (method->GetAttribute()->HasValue(ASTAttr::CACHEABLE) && in CheckIntfSaAstMethods()
135 !method->GetAttribute()->HasValue(ASTAttr::ONEWAY)) { in CheckIntfSaAstMethods()
145 if ((onewayInterface || method->GetAttribute()->GetValue() == ASTAttr::ONEWAY) && in CheckIntfSaAstMethods()
H A Dparser.cpp531 AutoPtr<ASTAttr> astAttr = ParseInfAttrInfo(attrs); in ParseInterface()
567 AutoPtr<ASTAttr> Parser::ParseInfAttrInfo(const AttrSet &attrs) in ParseInfAttrInfo()
569 AutoPtr<ASTAttr> infAttr = new ASTAttr(); in ParseInfAttrInfo()
574 infAttr->SetValue(ASTAttr::FULL); in ParseInfAttrInfo()
577 infAttr->SetValue(ASTAttr::LITE); in ParseInfAttrInfo()
580 infAttr->SetValue(ASTAttr::MINI); in ParseInfAttrInfo()
583 infAttr->SetValue(ASTAttr::CALLBACK); in ParseInfAttrInfo()
586 infAttr->SetValue(ASTAttr::ONEWAY); in ParseInfAttrInfo()
595 (!infAttr->HasValue(ASTAttr in ParseInfAttrInfo()
[all...]
H A Dparser.h104 AutoPtr<ASTAttr> ParseInfAttrInfo(const AttrSet &attrs);
116 AutoPtr<ASTAttr> ParseMethodAttr();
175 AutoPtr<ASTAttr> ParseUserDefTypeAttr(const AttrSet &attrs);
/foundation/ability/idl_tool/idl_tool_2/metadata/
H A Dmetadata_reader.cpp113 AutoPtr<ASTAttr> infAttr = new ASTAttr(); in ReadMetaInterface()
115 infAttr->SetValue(ASTAttr::ONEWAY); in ReadMetaInterface()
135 AutoPtr<ASTAttr> methodAttr = new ASTAttr(); in ReadMetaMethod()
137 methodAttr->SetValue(ASTAttr::ONEWAY); in ReadMetaMethod()
H A Dmetadata_builder.cpp337 mi->properties_ = interface->GetAttribute()->GetValue() == ASTAttr::ONEWAY ? INTERFACE_PROPERTY_ONEWAY : 0; in WriteMetaInterface()
362 mm->properties_ = method->GetAttribute()->GetValue() == ASTAttr::ONEWAY ? METHOD_PROPERTY_ONEWAY : 0; in WriteMetaMethod()

Completed in 8 milliseconds