Home
last modified time | relevance | path

Searched refs:NodeKind (Results 1 – 25 of 105) sorted by relevance

12345

/external/llvm-project/clang/lib/Tooling/Syntax/
DSynthesis.cpp63 syntax::Tree *allocateTree(syntax::Arena &A, syntax::NodeKind Kind) { in allocateTree()
65 case syntax::NodeKind::Leaf: in allocateTree()
68 case syntax::NodeKind::TranslationUnit: in allocateTree()
70 case syntax::NodeKind::UnknownExpression: in allocateTree()
72 case syntax::NodeKind::ParenExpression: in allocateTree()
74 case syntax::NodeKind::ThisExpression: in allocateTree()
76 case syntax::NodeKind::IntegerLiteralExpression: in allocateTree()
78 case syntax::NodeKind::CharacterLiteralExpression: in allocateTree()
80 case syntax::NodeKind::FloatingLiteralExpression: in allocateTree()
82 case syntax::NodeKind::StringLiteralExpression: in allocateTree()
[all …]
/external/dokka/core/src/test/kotlin/model/
DTypeAliasTest.kt5 import org.jetbrains.dokka.NodeKind in <lambda>()
13 with(pkg.member(NodeKind.TypeAlias)) { in <lambda>()
16 assertEquals("A", detail(NodeKind.TypeAliasUnderlyingType).name) in <lambda>()
25 with(pkg.member(NodeKind.TypeAlias)) { in <lambda>()
28 assertEquals("Some", detail(NodeKind.TypeAliasUnderlyingType).name) in <lambda>()
31 with(pkg.members(NodeKind.Class).find { it.name == "My" }!!) { in <lambda>()
32 assertEquals("Same", detail(NodeKind.Supertype).name) in <lambda>()
41 with(pkg.members(NodeKind.TypeAlias).find { it.name == "B" }!!) { in <lambda>()
43 assertEquals("A", detail(NodeKind.TypeAliasUnderlyingType).name) in <lambda>()
45 with(pkg.members(NodeKind.TypeAlias).find { it.name == "C" }!!) { in <lambda>()
[all …]
DJavaTest.kt3 import org.jetbrains.dokka.NodeKind in <lambda>()
13 assertEquals(NodeKind.Class, cls.kind) in <lambda>()
14 with(cls.members(NodeKind.Function).single()) { in <lambda>()
32 assertEquals("Unit", detail(NodeKind.Type).name) in <lambda>()
36 assertEquals(NodeKind.Parameter, kind) in <lambda>()
37 assertEquals("String", detail(NodeKind.Type).name) in <lambda>()
40 assertEquals(NodeKind.Parameter, kind) in <lambda>()
41 assertEquals("Int", detail(NodeKind.Type).name) in <lambda>()
49 val modifiers = cls.details(NodeKind.Modifier).map { it.name } in <lambda>()
62 val superTypes = cls.details(NodeKind.Supertype) in <lambda>()
[all …]
DClassTest.kt4 import org.jetbrains.dokka.NodeKind in <lambda>()
14 assertEquals(NodeKind.Class, kind) in <lambda>()
26 assertEquals(NodeKind.Object, kind) in <lambda>()
38 assertEquals(NodeKind.Class, kind) in <lambda>()
47 assertEquals(NodeKind.Constructor, kind) in <lambda>()
52 assertEquals(NodeKind.Parameter, kind) in <lambda>()
54 assertEquals("String", detail(NodeKind.Type).name) in <lambda>()
68 assertEquals(NodeKind.Class, kind) in <lambda>()
77 assertEquals(NodeKind.Constructor, kind) in <lambda>()
86 assertEquals(NodeKind.Function, kind) in <lambda>()
[all …]
DFunctionTest.kt4 import org.jetbrains.dokka.NodeKind in <lambda>()
15 assertEquals(NodeKind.Function, kind) in <lambda>()
17 assertEquals("Unit", detail(NodeKind.Type).name) in <lambda>()
28 assertEquals(NodeKind.ExternalClass, kind) in <lambda>()
32 assertEquals(NodeKind.Function, kind) in <lambda>()
38 assertEquals(NodeKind.Receiver, kind) in <lambda>()
50 assertEquals(NodeKind.Function, kind) in <lambda>()
60 assertEquals(NodeKind.Function, kind) in <lambda>()
67 assertEquals(NodeKind.TypeParameter, kind) in <lambda>()
84 assertEquals(NodeKind.Function, kind) in <lambda>()
[all …]
DPropertyTest.kt4 import org.jetbrains.dokka.NodeKind in <lambda>()
16 assertEquals(NodeKind.Property, kind) in <lambda>()
18 assertEquals("String", detail(NodeKind.Type).name) in <lambda>()
29 assertEquals(NodeKind.Property, kind) in <lambda>()
31 assertEquals("String", detail(NodeKind.Type).name) in <lambda>()
42 assertEquals(NodeKind.Property, kind) in <lambda>()
44 assertEquals("String", detail(NodeKind.Type).name) in <lambda>()
55 assertEquals(NodeKind.Property, kind) in <lambda>()
57 assertEquals("String", detail(NodeKind.Type).name) in <lambda>()
58 val modifiers = details(NodeKind.Modifier).map { it.name } in <lambda>()
[all …]
DLinkTest.kt5 import org.jetbrains.dokka.NodeKind in <lambda>()
14 assertEquals(NodeKind.Class, kind) in <lambda>()
24 assertEquals(NodeKind.Class, kind) in <lambda>()
34 assertEquals(NodeKind.Class, kind) in <lambda>()
44 assertEquals(NodeKind.Class, kind) in <lambda>()
54 assertEquals(NodeKind.Function, kind) in <lambda>()
68 assertEquals(NodeKind.Class, kind) in <lambda>()
/external/dokka/core/src/main/kotlin/Kotlin/
DKotlinLanguageService.kt20 NodeKind.Package -> if (renderMode == RenderMode.FULL) renderPackage(node) in <lambda>()
21 in NodeKind.classLike -> renderClass(node, renderMode) in <lambda>()
23 NodeKind.EnumItem -> renderClass(node, renderMode) in <lambda>()
24 NodeKind.ExternalClass -> if (renderMode == RenderMode.FULL) identifier(node.name) in <lambda>()
26 NodeKind.Parameter -> renderParameter(node, renderMode) in <lambda>()
27 NodeKind.TypeParameter -> renderTypeParameter(node, renderMode) in <lambda>()
28 NodeKind.Type, in <lambda>()
29 NodeKind.UpperBound -> renderType(node, renderMode) in <lambda>()
31 NodeKind.Modifier -> renderModifier(this, node, renderMode) in <lambda>()
32 NodeKind.Constructor, in <lambda>()
[all …]
DDocumentationBuilder.kt158 kind: NodeKind, in nodeForDescriptor()
167 kind == NodeKind.Parameter in nodeForDescriptor()
195 appendTextNode(modifier, NodeKind.Modifier) in appendModality()
200 appendTextNode(modifier, NodeKind.Modifier) in appendVisibility()
208 appendType(unwrappedType, NodeKind.Supertype) in appendSupertype()
217 …fun DocumentationNode.appendProjection(projection: TypeProjection, kind: NodeKind = NodeKind.Type)… in appendProjection()
219 appendTextNode("*", NodeKind.Type) in appendProjection()
225 …fun DocumentationNode.appendType(kotlinType: KotlinType?, kind: NodeKind = NodeKind.Type, prefix: … in DocumentationNode()
252 node.appendTextNode(prefix, NodeKind.Modifier) in DocumentationNode()
255 node.appendTextNode("!", NodeKind.NullabilityModifier) in DocumentationNode()
[all …]
/external/dokka/core/src/main/kotlin/Languages/
DNewJavaLanguageService.kt19 NodeKind.Package -> renderPackage(node) in <lambda>()
20 in NodeKind.classLike -> renderClass(node, renderMode) in <lambda>()
22 NodeKind.Modifier -> renderModifier(this, node, renderMode) in <lambda>()
23 NodeKind.TypeParameter -> renderTypeParameter(node) in <lambda>()
24 NodeKind.Type, in <lambda>()
25 NodeKind.UpperBound -> renderType(node) in <lambda>()
26 NodeKind.Parameter -> renderParameter(node) in <lambda>()
27 NodeKind.Constructor, in <lambda>()
28 NodeKind.Function -> renderFunction(node, renderMode) in <lambda>()
29 NodeKind.Property -> renderProperty(node) in <lambda>()
[all …]
DJavaLanguageService.kt12 NodeKind.Package -> renderPackage(node) in <lambda>()
13 in NodeKind.classLike -> renderClass(node) in <lambda>()
15 NodeKind.TypeParameter -> renderTypeParameter(node) in <lambda>()
16 NodeKind.Type, in <lambda>()
17 NodeKind.UpperBound -> renderType(node) in <lambda>()
19 NodeKind.Constructor, in <lambda>()
20 NodeKind.Function -> renderFunction(node) in <lambda>()
21 NodeKind.Property -> renderProperty(node) in <lambda>()
28 NodeKind.Constructor -> node.owner!!.name in <lambda>()
35 NodeKind.Constructor -> node.owner!!.nameWithOuterClass() in <lambda>()
[all …]
/external/llvm-project/clang/include/clang/Tooling/Syntax/
DNodes.h37 enum class NodeKind : uint16_t { enum
42 raw_ostream &operator<<(raw_ostream &OS, NodeKind K);
123 NestedNameSpecifier() : List(NodeKind::NestedNameSpecifier) {} in NestedNameSpecifier()
134 UnqualifiedId() : Tree(NodeKind::UnqualifiedId) {} in UnqualifiedId()
142 UnknownExpression() : Expression(NodeKind::UnknownExpression) {} in UnknownExpression()
153 CallArguments() : List(NodeKind::CallArguments) {} in CallArguments()
162 UnaryOperatorExpression(NodeKind K) : Expression(K) {} in UnaryOperatorExpression()
180 : UnaryOperatorExpression(NodeKind::PrefixUnaryOperatorExpression) {} in PrefixUnaryOperatorExpression()
192 : UnaryOperatorExpression(NodeKind::PostfixUnaryOperatorExpression) {} in PostfixUnaryOperatorExpression()
205 BinaryOperatorExpression() : Expression(NodeKind::BinaryOperatorExpression) {} in BinaryOperatorExpression()
[all …]
/external/dokka/core/src/main/kotlin/Model/
DDocumentationNode.kt5 enum class NodeKind { in <lambda>() class
82 val kind: NodeKind) {
122 … get() = detailOrNull(NodeKind.ApiLevel) ?: DocumentationNode("", Content.Empty, NodeKind.ApiLevel)
124 …get() = detailOrNull(NodeKind.DeprecatedLevel) ?: DocumentationNode("", Content.Empty, NodeKind.De…
126 …get() = detailOrNull(NodeKind.ArtifactId) ?: DocumentationNode("", Content.Empty, NodeKind.Artifac…
128 get() = details(NodeKind.Attribute).sortedBy { it.attributeRef!!.name } in <lambda>()
132 get() = hiddenLinks(NodeKind.Attribute)
134 get() = details(NodeKind.Supertype)
135 val signatureName = detailOrNull(NodeKind.Signature)?.name
139 NodeKind.Constructor -> owner!!.name
[all …]
/external/dokka/core/src/main/kotlin/javadoc/
Ddocbase.kt37 override fun isException(): Boolean = node.kind == NodeKind.Exception in getRawCommentText()
38 override fun isEnumConstant(): Boolean = node.kind == NodeKind.EnumItem in getRawCommentText()
39 override fun isEnum(): Boolean = node.kind == NodeKind.Enum in getRawCommentText()
40 override fun isMethod(): Boolean = node.kind == NodeKind.Function in getRawCommentText()
41 override fun isInterface(): Boolean = node.kind == NodeKind.Interface in getRawCommentText()
42 override fun isField(): Boolean = node.kind == NodeKind.Field in getRawCommentText()
43 override fun isClass(): Boolean = node.kind == NodeKind.Class in getRawCommentText()
44 override fun isAnnotationType(): Boolean = node.kind == NodeKind.AnnotationClass in getRawCommentText()
45 override fun isConstructor(): Boolean = node.kind == NodeKind.Constructor in getRawCommentText()
46 override fun isOrdinaryClass(): Boolean = node.kind == NodeKind.Class in getRawCommentText()
[all …]
/external/dokka/core/src/main/kotlin/Formats/
DStructuredFormatService.kt209 if (to.owner?.kind == NodeKind.GroupNode) in <lambda>()
212 if (from.owner?.kind == NodeKind.GroupNode) in <lambda>()
221 val signature = to.detailOrNull(NodeKind.Signature) in <lambda>()
228 kind == NodeKind.Module || kind == NodeKind.Package in <lambda>()
283 appendLocation(nodes.filter { it.kind != NodeKind.ExternalClass }) in <lambda>()
290 if (singleNode.kind == NodeKind.Package) { in <lambda>()
326 item.detailOrNull(NodeKind.Signature)?.let { in <lambda>()
327 if (item.kind !in NodeKind.classLike || !isSingleNode) in <lambda>()
340 item.details(NodeKind.OverloadGroupNote).forEach { in <lambda>()
349 val sourceUrl = details(NodeKind.SourceUrl).firstOrNull() in <lambda>()
[all …]
DDacOutlineService.kt61 it.kind == NodeKind.Package in appendOutline()
117 it.kind == NodeKind.Package in appendOutline()
131 node.members.filter { it.kind == NodeKind.AllTypes }.firstOrNull()?.let { in appendOutlineHeader()
142 } else if (node.kind != NodeKind.AllTypes && !(node is DocumentationModule)) { in appendOutlineHeader()
147 for (kind in NodeKind.classLike) { in appendOutlineHeader()
193 val interfaces = node.getMembersOfKinds(NodeKind.Interface) in appendNavTree()
194 val classes = node.getMembersOfKinds(NodeKind.Class) in appendNavTree()
195 val objects = node.getMembersOfKinds(NodeKind.Object) in appendNavTree()
196 val annotations = node.getMembersOfKinds(NodeKind.AnnotationClass) in appendNavTree()
197 val enums = node.getMembersOfKinds(NodeKind.Enum) in appendNavTree()
[all …]
DPackageListService.kt23 NodeKind.Package -> { in formatPackageList()
27 NodeKind.Signature -> { in formatPackageList()
31 NodeKind.ExternalClass -> { in formatPackageList()
34 NodeKind.GroupNode -> { in formatPackageList()
38 node.detailOrNull(NodeKind.Signature)?.let { visit(it, relocated = true) } in formatPackageList()
41 if (nodeKind in NodeKind.classLike || nodeKind in NodeKind.memberLike) { in formatPackageList()
42 node.details(NodeKind.Signature).forEach { visit(it, relocated) } in formatPackageList()
/external/clang/include/clang/AST/
DASTTypeTraits.h232 return BaseConverter<T>::get(NodeKind, Storage.buffer);
240 return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
243 ASTNodeKind getNodeKind() const { return NodeKind; }
251 return NodeKind.hasPointerIdentity()
273 if (!NodeKind.isSame(Other.NodeKind))
274 return NodeKind < Other.NodeKind;
276 if (ASTNodeKind::getFromNodeKind<QualType>().isSame(NodeKind))
280 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind)) {
290 NodeKind)) {
305 if (!NodeKind.isSame(Other.NodeKind))
[all …]
/external/llvm-project/clang/include/clang/AST/
DASTTypeTraits.h250 return BaseConverter<T>::get(NodeKind, &Storage);
258 return BaseConverter<T>::getUnchecked(NodeKind, &Storage);
261 ASTNodeKind getNodeKind() const { return NodeKind; }
269 return NodeKind.hasPointerIdentity()
291 if (!NodeKind.isSame(Other.NodeKind))
292 return NodeKind < Other.NodeKind;
294 if (ASTNodeKind::getFromNodeKind<QualType>().isSame(NodeKind))
298 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind)) {
308 NodeKind)) {
323 if (!NodeKind.isSame(Other.NodeKind))
[all …]
/external/dokka/core/src/main/kotlin/Formats/JavaLayoutHtml/
DJavaLayoutHtmlFormat.kt104 val DocumentationNode.companion get() = members(NodeKind.Object).find { it.details(NodeKind.Modifie… in <lambda>()
109 detailOrNull(NodeKind.Receiver)?.let { in signatureForAnchor()
111 append(it.detail(NodeKind.Type).qualifiedNameFromType()) in signatureForAnchor()
117 NodeKind.Function, NodeKind.Constructor, NodeKind.CompanionObjectFunction -> buildString { in signatureForAnchor()
118 if (kind == NodeKind.CompanionObjectFunction) { in signatureForAnchor()
123 …details(NodeKind.Parameter).joinTo(this, prefix = "(", postfix = ")") { it.detail(NodeKind.Type).q… in signatureForAnchor()
125 NodeKind.Property, NodeKind.CompanionObjectProperty -> buildString { in signatureForAnchor()
126 if (kind == NodeKind.CompanionObjectProperty) { in signatureForAnchor()
132 append(detail(NodeKind.Type).qualifiedNameFromType()) in signatureForAnchor()
134NodeKind.TypeParameter, NodeKind.Parameter -> this.detail(NodeKind.Signature).name // Todo Why not… in signatureForAnchor()
[all …]
DJavaLayoutHtmlGenerator.kt7 import org.jetbrains.dokka.NodeKind.Companion.classLike in <lambda>()
33 NodeKind.Module -> URI("/").resolve(node.name + "/") in <lambda>()
34NodeKind.Package -> tryGetContainerUri(node.getOwnerOrReport())?.resolve(node.name.replace('.', '/… in <lambda>()
35 NodeKind.GroupNode -> tryGetContainerUri(node.getOwnerOrReport()) in <lambda>()
36 …in NodeKind.classLike -> tryGetContainerUri(node.getOwnerOrReport())?.resolve("${node.classNodeNam… in <lambda>()
43 NodeKind.Package -> tryGetContainerUri(node)?.resolve("package-summary.html") in <lambda>()
44 in NodeKind.classLike -> tryGetContainerUri(node)?.resolve("#") in <lambda>()
45 in NodeKind.memberLike -> { in <lambda>()
46 … val owner = if (node.owner?.kind != NodeKind.ExternalClass) node.owner else node.owner?.owner in <lambda>()
48 …(node.kind == NodeKind.CompanionObjectProperty || node.kind == NodeKind.CompanionObjectFunction) && in <lambda>()
[all …]
DJavaLayoutHtmlFormatOutputBuilder.kt10 import org.jetbrains.dokka.NodeKind.Companion.classLike in <lambda>()
146 NodeKind.TypeParameter -> body() in <lambda>()
224 for (modifier in node.details(NodeKind.Modifier)) { in <lambda>()
230 val params = func.details(NodeKind.Parameter) in <lambda>()
242 if (node.kind != NodeKind.Constructor) { in <lambda>()
245 renderedSignature(node.detail(NodeKind.Type), SUMMARY) in <lambda>()
251 val receiver = node.detailOrNull(NodeKind.Receiver) in <lambda>()
253 renderedSignature(receiver.detail(NodeKind.Type), SUMMARY) in <lambda>()
269 renderedSignature(node.detail(NodeKind.Type), SUMMARY) in <lambda>()
365 href.name.takeIf { href.kind == NodeKind.ExternalLink } in <lambda>()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/
DMicrosoftDemangleNodes.h224 enum class NodeKind { enum
257 explicit Node(NodeKind K) : Kind(K) {} in Node()
260 NodeKind kind() const { return Kind; } in kind()
267 NodeKind Kind;
299 explicit TypeNode(NodeKind K) : Node(K) {} in TypeNode()
314 : TypeNode(NodeKind::PrimitiveType), PrimKind(K) {} in PrimitiveTypeNode()
323 explicit FunctionSignatureNode(NodeKind K) : TypeNode(K) {} in FunctionSignatureNode()
324 FunctionSignatureNode() : TypeNode(NodeKind::FunctionSignature) {} in FunctionSignatureNode()
355 explicit IdentifierNode(NodeKind K) : Node(K) {} in IdentifierNode()
364 VcallThunkIdentifierNode() : IdentifierNode(NodeKind::VcallThunkIdentifier) {} in VcallThunkIdentifierNode()
[all …]
/external/llvm-project/llvm/include/llvm/Demangle/
DMicrosoftDemangleNodes.h224 enum class NodeKind { enum
257 explicit Node(NodeKind K) : Kind(K) {} in Node()
260 NodeKind kind() const { return Kind; } in kind()
267 NodeKind Kind;
299 explicit TypeNode(NodeKind K) : Node(K) {} in TypeNode()
314 : TypeNode(NodeKind::PrimitiveType), PrimKind(K) {} in PrimitiveTypeNode()
323 explicit FunctionSignatureNode(NodeKind K) : TypeNode(K) {} in FunctionSignatureNode()
324 FunctionSignatureNode() : TypeNode(NodeKind::FunctionSignature) {} in FunctionSignatureNode()
355 explicit IdentifierNode(NodeKind K) : Node(K) {} in IdentifierNode()
364 VcallThunkIdentifierNode() : IdentifierNode(NodeKind::VcallThunkIdentifier) {} in VcallThunkIdentifierNode()
[all …]
/external/dokka/core/src/main/kotlin/Java/
DJavaPsiDocumentationBuilder.kt113 kind: NodeKind, in appendFile()
133 val deprecationNode = DocumentationNode("", deprecatedContent, NodeKind.Modifier) in appendFile()
137 …l deprecationNode = DocumentationNode("", Content.of(ContentText("Deprecated")), NodeKind.Modifier) in appendFile()
207 isInterface -> NodeKind.Interface in appendFile()
208 isEnum -> NodeKind.Enum in appendFile()
209 isAnnotationType -> NodeKind.AnnotationClass in appendFile()
210 isException() -> NodeKind.Exception in appendFile()
211 else -> NodeKind.Class in appendFile()
215 node.appendType(superType, NodeKind.Supertype) in appendFile()
271 append(DocumentationNode(text, Content.Empty, NodeKind.Value), RefKind.Detail) in appendFile()
[all …]

12345