Home
last modified time | relevance | path

Searched refs:AbstractType (Results 1 – 25 of 650) sorted by relevance

12345678910>>...26

/dports/lang/mono/mono-5.10.1.57/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Static.Analysis.HeapAnalysis/
H A DAbstractType.cs35 struct AbstractType : IAbstractDomainForEGraph<AbstractType>, IEquatable<AbstractType> { struct
36 public static AbstractType TopValue = new AbstractType (FlatDomain<TypeNode>.TopValue, false); argument
37 …public static AbstractType BottomValue = new AbstractType (FlatDomain<TypeNode>.BottomValue, true); argument
64 public AbstractType ButZero argument
74 public AbstractType Top argument
79 public AbstractType Bottom argument
94 public AbstractType Join(AbstractType that) in Join() argument
99 public AbstractType Join (AbstractType that, bool widening, out bool weaker) in Join() argument
118 public AbstractType Widen(AbstractType that) in Widen() argument
123 public AbstractType Meet (AbstractType that) in Meet() argument
[all …]
/dports/devel/kdevelop/kdevelop-21.12.3/kdevplatform/language/duchain/types/
H A Dabstracttype.cpp20 void AbstractType::makeDynamic() in makeDynamic()
32 AbstractType::AbstractType(AbstractTypeData& dd) in AbstractType() function in KDevelop::AbstractType
47 int64_t AbstractType::sizeOf() const in sizeOf()
57 int64_t AbstractType::alignOf() const in alignOf()
79 AbstractType::AbstractType() in AbstractType() function in KDevelop::AbstractType
84 AbstractType::~AbstractType() in ~AbstractType()
100 void AbstractType::acceptType(AbstractType::Ptr type, TypeVisitor* v) in acceptType()
108 AbstractType::WhichType AbstractType::whichType() const in whichType()
119 return IndexedType(AbstractType::Ptr(const_cast<AbstractType*>(this))); in indexed()
122 bool AbstractType::equals(const AbstractType* rhs) const in equals()
[all …]
H A Dtypesystem.cpp160 visit(( AbstractType* )type); in visit()
165 return visit(( AbstractType* )type); in visit()
170 visit(( AbstractType* )type); in endVisit()
175 return visit(( AbstractType* )type); in visit()
180 visit(( AbstractType* )type); in endVisit()
185 return visit(( AbstractType* )type); in visit()
190 visit(( AbstractType* )type); in endVisit()
200 visit(( AbstractType* )type); in endVisit()
210 visit(( AbstractType* )type); in endVisit()
217 TypePtr<KDevelop::AbstractType> TypeExchanger::exchange(const TypePtr<KDevelop::AbstractType>& type) in exchange()
[all …]
H A Dreferencetype.cpp25 ReferenceType::ReferenceType(ReferenceTypeData& data) : AbstractType(data) in ReferenceType()
29 AbstractType* ReferenceType::clone() const in clone()
34 bool ReferenceType::equals(const AbstractType* _rhs) const in equals()
39 if (!AbstractType::equals(_rhs)) in equals()
50 : AbstractType(createData<ReferenceType>()) in ReferenceType()
58 AbstractType::Ptr ReferenceType::baseType() const in baseType()
63 void ReferenceType::setBaseType(const AbstractType::Ptr& type) in setBaseType()
93 AbstractType::Ptr base = baseType(); in toString()
97 return AbstractType::toString(false) + baseString + ampersands; in toString()
99 return baseString + AbstractType::toString(true) + ampersands; in toString()
[all …]
H A Dtypesystem.h19 class AbstractType; variable
34 virtual bool preVisit (const AbstractType*) = 0;
35 virtual void postVisit (const AbstractType*) = 0;
38 virtual bool visit(const AbstractType*) = 0;
66 bool preVisit (const AbstractType*) override;
67 void postVisit (const AbstractType*) override;
103 virtual AbstractType::Ptr exchange(const AbstractType::Ptr&);
111 SimpleTypeExchanger(const AbstractType::Ptr& replace, const AbstractType::Ptr& replaceWith);
112 AbstractType::Ptr exchange(const AbstractType::Ptr&) override;
115 AbstractType::Ptr m_replace, m_replaceWith;
H A Dtypeutils.h31 KDEVPLATFORMLANGUAGE_EXPORT KDevelop::AbstractType::Ptr targetType(const KDevelop::AbstractType::Pt…
38 KDEVPLATFORMLANGUAGE_EXPORT KDevelop::AbstractType::Ptr targetTypeKeepAliases(const KDevelop::Abstr…
45 KDEVPLATFORMLANGUAGE_EXPORT KDevelop::AbstractType::Ptr unAliasedType(const KDevelop::AbstractType:…
50 KDEVPLATFORMLANGUAGE_EXPORT KDevelop::AbstractType::Ptr resolveAliasType(
51 const KDevelop::AbstractType::Ptr& eventualAlias);
57 KDEVPLATFORMLANGUAGE_EXPORT bool isUsefulType(KDevelop::AbstractType::Ptr type);
77 KDevelop::AbstractType::Ptr mergeTypes(KDevelop::AbstractType::Ptr type, const KDevelop::AbstractTy… in mergeTypes()
116 … return KDevelop::AbstractType::Ptr(new KDevelop::IntegralType(KDevelop::IntegralType::TypeMixed)); in mergeTypes()
123 return KDevelop::AbstractType::Ptr::staticCast(ret); in mergeTypes()
H A Dtypeutils.cpp18 TypePtr<KDevelop::AbstractType> unAliasedType(const TypePtr<KDevelop::AbstractType>& _type) in unAliasedType()
20 TypePtr<KDevelop::AbstractType> type = _type; in unAliasedType()
41 AbstractType::Ptr targetType(const AbstractType::Ptr& _base, const TopDUContext* /*topContext*/, bo… in targetType()
43 AbstractType::Ptr base(_base); in targetType()
70 AbstractType::Ptr targetTypeKeepAliases(const AbstractType::Ptr& _base, const TopDUContext* /*topCo… in targetTypeKeepAliases()
73 AbstractType::Ptr base(_base); in targetTypeKeepAliases()
94 AbstractType::Ptr resolveAliasType(const AbstractType::Ptr& eventualAlias) in resolveAliasType()
96 if (eventualAlias && eventualAlias->whichType() == KDevelop::AbstractType::TypeAlias) { in resolveAliasType()
102 bool isUsefulType(AbstractType::Ptr type) in isUsefulType()
108 if (type->whichType() != AbstractType::TypeIntegral) { in isUsefulType()
H A Dabstracttype.h75 class KDEVPLATFORMLANGUAGE_EXPORT AbstractType
79 using Ptr = TypePtr<AbstractType>;
110 AbstractType();
112 explicit AbstractType(AbstractTypeData& dd);
114 virtual ~AbstractType ();
116 AbstractType(const AbstractType& rhs) = delete;
117 AbstractType& operator=(const AbstractType& rhs) = delete;
189 virtual AbstractType* clone() const = 0;
302 TYPE_DECLARE_DATA(AbstractType)
311 inline To fastCast(AbstractType* from)
[all …]
H A Dpointertype.cpp19 PointerType::PointerType(const PointerType& rhs) : AbstractType(copyData<PointerType>(*rhs.d_func()… in PointerType()
23 PointerType::PointerType(PointerTypeData& data) : AbstractType(data) in PointerType()
27 AbstractType* PointerType::clone() const in clone()
32 bool PointerType::equals(const AbstractType* _rhs) const in equals()
37 if (!AbstractType::equals(_rhs)) in equals()
48 : AbstractType(createData<PointerType>()) in PointerType()
69 AbstractType::Ptr PointerType::baseType() const in baseType()
74 void PointerType::setBaseType(const AbstractType::Ptr& type) in setBaseType()
82 return baseString + QLatin1Char('*') + AbstractType::toString(true); in toString()
85 AbstractType::WhichType PointerType::whichType() const in whichType()
[all …]
H A Dunsuretype.cpp19 UnsureType::UnsureType() : AbstractType(createData<UnsureType>()) in UnsureType()
26 AbstractType::Ptr t = type.abstractType(); in accept0()
31 KDevelop::AbstractType* UnsureType::clone() const in clone()
41 AbstractType::Ptr t = type.abstractType(); in toString()
52 bool UnsureType::equals(const KDevelop::AbstractType* rhs) const in equals()
66 return KDevelop::AbstractType::equals(rhs); in equals()
71 KDevHash kdevhash(AbstractType::hash()); in hash()
77 KDevelop::AbstractType::WhichType UnsureType::whichType() const in whichType()
85 AbstractType::Ptr from = d_func()->m_types()[a].abstractType(); in exchangeTypes()
86 AbstractType::Ptr exchanged = exchanger->exchange(from); in exchangeTypes()
[all …]
H A Ddelayedtype.cpp21 DelayedType::DelayedType(DelayedTypeData& data) : AbstractType(data) in DelayedType()
25 AbstractType* DelayedType::clone() const in clone()
30 bool DelayedType::equals(const AbstractType* _rhs) const in equals()
35 if (!AbstractType::equals(_rhs)) in equals()
45 AbstractType::WhichType DelayedType::whichType() const in whichType()
47 return AbstractType::TypeDelayed; in whichType()
52 return AbstractType::toString(false) + identifier().toString(); in toString()
66 : AbstractType(createData<DelayedType>()) in DelayedType()
70 DelayedType::DelayedType(const DelayedType& rhs) : AbstractType(copyData<DelayedType>(*rhs.d_func()… in DelayedType()
101 return KDevHash(AbstractType::hash()) << d_func()->m_identifier.hash() << d_func()->m_kind; in hash()
H A Dfunctiontype.cpp25 FunctionType::FunctionType(FunctionTypeData& data) : AbstractType(data) in FunctionType()
29 AbstractType* FunctionType::clone() const in clone()
34 bool FunctionType::equals(const AbstractType* _rhs) const in equals()
39 if (!AbstractType::equals(_rhs)) in equals()
64 : AbstractType(createData<FunctionType>()) in FunctionType()
85 void FunctionType::setReturnType(const AbstractType::Ptr& returnType) in setReturnType()
90 AbstractType::Ptr FunctionType::returnType() const in returnType()
95 QList<AbstractType::Ptr> FunctionType::arguments() const in arguments()
98 QList<AbstractType::Ptr> ret; in arguments()
166 AbstractType::WhichType FunctionType::whichType() const in whichType()
[all …]
H A Darraytype.cpp19 ArrayType::ArrayType(const ArrayType& rhs) : AbstractType(copyData<ArrayType>(*rhs.d_func())) in ArrayType()
23 ArrayType::ArrayType(ArrayTypeData& data) : AbstractType(data) in ArrayType()
27 AbstractType* ArrayType::clone() const in clone()
32 bool ArrayType::equals(const AbstractType* _rhs) const in equals()
34 if (!AbstractType::equals(_rhs)) in equals()
49 : AbstractType(createData<ArrayType>()) in ArrayType()
67 AbstractType::Ptr ArrayType::elementType() const in elementType()
72 void ArrayType::setElementType(const AbstractType::Ptr& type) in setElementType()
101 AbstractType::WhichType ArrayType::whichType() const in whichType()
108 return KDevHash(AbstractType::hash()) in hash()
H A Dfunctiontype.h24 : public AbstractType
53 AbstractType::Ptr returnType () const;
60 void setReturnType(const AbstractType::Ptr& returnType);
67 QList<AbstractType::Ptr> arguments () const;
87 void addArgument(const AbstractType::Ptr& argument, int index = -1);
96 AbstractType* clone() const override;
98 bool equals(const AbstractType* rhs) const override;
130 inline FunctionType* fastCast<FunctionType*>(AbstractType* from)
132 if (!from || from->whichType() != AbstractType::TypeFunction)
H A Dtypealiastype.cpp14 AbstractType* TypeAliasType::clone() const in clone()
19 bool TypeAliasType::equals(const AbstractType* _rhs) const in equals()
28 if (AbstractType::equals(rhs) && IdentifiedType::equals(rhs)) { in equals()
40 AbstractType::Ptr TypeAliasType::type() const in type()
45 void TypeAliasType::setType(const AbstractType::Ptr& type) in setType()
52 return KDevHash(AbstractType::hash()) << IdentifiedType::hash() << d_func()->m_type.hash(); in hash()
59 return AbstractType::toString(false) + id.toString(); in toString()
62 return AbstractType::toString(false) + type()->toString(); in toString()
75 KDevelop::AbstractType::WhichType TypeAliasType::whichType() const in whichType()
/dports/devel/kdev-python/kdev-python-21.12.3/duchain/
H A Dhelpers.h57 static AbstractType::Ptr extractTypeHints(AbstractType::Ptr type);
68 static KDevelop::Declaration* accessAttribute(const KDevelop::AbstractType::Ptr accessed,
77 static AbstractType::Ptr resolveAliasType(const AbstractType::Ptr eventualAlias);
85 …static AbstractType::Ptr contentOfIterable(const AbstractType::Ptr iterable, const TopDUContext* t…
96 …static QList<typename T::Ptr> filterType(AbstractType::Ptr type, std::function<bool(AbstractType::…
104 if ( type->whichType() == KDevelop::AbstractType::TypeUnsure ) {
107 AbstractType::Ptr t = unsure->types()[i].abstractType();
154 static AbstractType::Ptr mergeTypes(AbstractType::Ptr type, const AbstractType::Ptr newType);
162 …static AbstractType::Ptr foldTypes(QList<T> types, std::function<AbstractType::Ptr(const T&)> tran…
165 AbstractType::Ptr result(new IntegralType(IntegralType::TypeMixed));
[all …]
H A Dexpressionvisitor.cpp43 AbstractType::Ptr ExpressionVisitor::encounterPreprocess(AbstractType::Ptr type) in encounterPreprocess()
129 AbstractType::Ptr type; in visitCall()
163 auto listOfTuples = [&](AbstractType::Ptr key, AbstractType::Ptr value) { in docstringTypeOverride()
178 AbstractType::Ptr resultingType = AbstractType::Ptr::staticCast(newType); in docstringTypeOverride()
265 AbstractType::Ptr newType; in docstringTypeOverride()
326 …auto valueTypes = Helper::filterType<AbstractType>(lastType(), [](AbstractType::Ptr) { return true… in visitSubscript()
580 AbstractType::Ptr type; in visitNumber()
675 AbstractType::Ptr ExpressionVisitor::fromBinaryOperator(AbstractType::Ptr lhs, AbstractType::Ptr rh… in fromBinaryOperator()
680 return AbstractType::Ptr(); in fromBinaryOperator()
706 AbstractType::Ptr result; in visitBinaryOperation()
[all …]
H A Dexpressionvisitor.h81 AbstractType::Ptr docstringTypeOverride(CallAst* node, const AbstractType::Ptr normalType,
108 AbstractType::Ptr null; in typeObjectForIntegralType()
113 auto type = decl ? decl->abstractType() : AbstractType::Ptr(); in typeObjectForIntegralType()
118AbstractType::Ptr fromBinaryOperator(AbstractType::Ptr lhs, AbstractType::Ptr rhs, const QString& …
119 AbstractType::Ptr encounterPreprocess(AbstractType::Ptr type, bool merge=false);
120 …void encounter(AbstractType::Ptr type, DeclarationPointer declaration=DeclarationPointer(), bool a…
124 AbstractType::Ptr encounterPreprocess(AbstractType::Ptr type) override;
138 static QHash<NameConstantAst::NameConstantTypes, KDevelop::AbstractType::Ptr> m_defaultTypes;
/dports/devel/kdevelop/kdevelop-21.12.3/plugins/clang/codegen/
H A Dcodegenhelper.cpp98 AbstractType::Ptr useTypeText = type; in buildIdentifierForType()
164 AbstractType::Ptr shortenTypeForViewing(const AbstractType::Ptr& type) in shortenTypeForViewing()
169 AbstractType::Ptr exchange(const AbstractType::Ptr& type) override { in shortenTypeForViewing()
174 AbstractType::Ptr newType(type->clone()); in shortenTypeForViewing()
201 AbstractType::Ptr stripType(const AbstractType::Ptr& type, DUContext* ctx) in stripType()
204 return AbstractType::Ptr(); in stripType()
216 AbstractType::Ptr exchange(const AbstractType::Ptr& type) override { in stripType()
221 AbstractType::Ptr newType(type->clone()); in stripType()
297 return ret.cast<AbstractType>(); in stripType()
313 AbstractType::Ptr type = decl->abstractType(); in typeForShortenedString()
[all …]
/dports/devel/kdev-php/kdev-php-21.12.3/duchain/builders/
H A Dtypebuilder.cpp49 QList<AbstractType::Ptr> types; in parseType()
57 foreach (const AbstractType::Ptr& t, types) { in parseType()
60 return AbstractType::Ptr::staticCast(ret); in parseType()
66 return AbstractType::Ptr(a_type); in parseType()
119 AbstractType::Ptr ret(new IntegralType(iType)); in parseSimpleType()
126 AbstractType::Ptr ret = parseType(type, node); in injectParseType()
213 AbstractType::Ptr type; in parseDocComment()
228 return AbstractType::Ptr(); in parseDocComment()
233 QList<AbstractType::Ptr> ret; in parseDocCommentParams()
250 AbstractType::Ptr type; in getTypeForNode()
[all …]
H A Dtypebuilder.h58 KDevelop::AbstractType::Ptr getTypeForNode(AstNode* node);
63 void openContextType(const KDevelop::AbstractType::Ptr& type) in openContextType()
82 inline KDevelop::AbstractType::Ptr currentContextType() in currentContextType()
85 return KDevelop::AbstractType::Ptr(); in currentContextType()
96 QList<KDevelop::AbstractType::Ptr> m_currentFunctionParams;
97 KDevelop::Stack<KDevelop::AbstractType::Ptr> m_contextTypes;
103 KDevelop::AbstractType::Ptr injectParseType(QString type, AstNode* node);
104 KDevelop::AbstractType::Ptr parseType(QString type, AstNode* node);
105 KDevelop::AbstractType::Ptr parseSimpleType(QString type, AstNode* node);
106 KDevelop::AbstractType::Ptr parseDocComment(AstNode* node, const QString& docCommentName);
[all …]
/dports/devel/kdevelop/kdevelop-21.12.3/kdevplatform/language/duchain/builders/
H A Dabstracttypebuilder.h39 const QList<AbstractType::Ptr>& topTypes() const in topTypes()
81 AbstractType::Ptr lastType() const in lastType()
91 void setLastType(const AbstractType::Ptr& ptr) in setLastType()
106 void injectType(const AbstractType::Ptr& type) in injectType()
118 { injectType(AbstractType::Ptr::staticCast(type)); } in injectType()
130 void openAbstractType(const AbstractType::Ptr& type) in openAbstractType()
161 inline AbstractType::Ptr currentAbstractType() in currentAbstractType()
164 return AbstractType::Ptr(); in currentAbstractType()
250 Stack<AbstractType::Ptr> m_typeStack;
252 AbstractType::Ptr m_lastType;
[all …]
/dports/devel/kdev-php/kdev-php-21.12.3/duchain/
H A Dhelper.cpp465 AbstractType::Ptr type; in determineTypehint()
492AbstractType::Ptr arrayType = AbstractType::Ptr(new IntegralType(IntegralType::TypeArray)); in determineTypehint()
510 AbstractType::Ptr nullType = AbstractType::Ptr(new IntegralType(IntegralType::TypeNull)); in determineTypehint()
519 type = AbstractType::Ptr(unsure); in determineTypehint()
528 AbstractType::Ptr type; in parameterType()
547AbstractType::Ptr nullType = AbstractType::Ptr(new IntegralType(IntegralType::TypeNull)); in parameterType()
554 type = AbstractType::Ptr(unsure); in parameterType()
573 type = p.cast<AbstractType>(); in parameterType()
579 type = AbstractType::Ptr(container); in parameterType()
588 AbstractType::Ptr type; in propertyType()
[all …]
/dports/devel/umbrello/umbrello-21.12.3/lib/kdev4-php/duchain/builders/
H A Dtypebuilder.cpp82 QList<AbstractType::Ptr> types; in parseType()
91 foreach (const AbstractType::Ptr& t, types) { in parseType()
95 return AbstractType::Ptr::staticCast(ret); in parseType()
100 AbstractType::Ptr ret(new IntegralType(iType)); in parseType()
107 AbstractType::Ptr ret = parseType(type, node); in injectParseType()
194 AbstractType::Ptr type; in parseDocComment()
209 return AbstractType::Ptr(); in parseDocComment()
214 QList<AbstractType::Ptr> ret; in parseDocCommentParams()
230 AbstractType::Ptr type; in getTypeForNode()
343 AbstractType::Ptr type; in visitParameter()
[all …]
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/mlir/include/mlir/IR/
H A DTypeSupport.h30 class AbstractType {
34 static const AbstractType &lookup(TypeID typeID, MLIRContext *context);
38 template <typename T> static AbstractType get(Dialect &dialect) { in get()
39 return AbstractType(dialect, T::getInterfaceMap(), T::getTypeID()); in get()
48 return AbstractType(dialect, std::move(interfaceMap), typeID); in get()
70 AbstractType(Dialect &dialect, detail::InterfaceMap &&interfaceMap, in AbstractType() function
83 static AbstractType *lookupMutable(TypeID typeID, MLIRContext *context);
110 const AbstractType &getAbstractType() { in getAbstractType()
122 void initialize(const AbstractType &abstractTy) { in initialize()
123 abstractType = const_cast<AbstractType *>(&abstractTy); in initialize()
[all …]

12345678910>>...26