diff --git a/platform/core-api/api-dump-unreviewed.txt b/platform/core-api/api-dump-unreviewed.txt index 18984d4ad010..2aff4c45226c 100644 --- a/platform/core-api/api-dump-unreviewed.txt +++ b/platform/core-api/api-dump-unreviewed.txt @@ -462,10 +462,6 @@ com.intellij.lang.ASTNode - a:replaceAllChildrenToChildrenOf(com.intellij.lang.ASTNode):V - a:replaceChild(com.intellij.lang.ASTNode,com.intellij.lang.ASTNode):V - a:textContains(C):Z -f:com.intellij.lang.AstUtilKt -- sf:children(com.intellij.lang.ASTNode):kotlin.sequences.Sequence -- sf:parents(com.intellij.lang.ASTNode,Z):kotlin.sequences.Sequence -- sf:siblings(com.intellij.lang.ASTNode,Z,Z):kotlin.sequences.Sequence com.intellij.lang.CodeDocumentationAwareCommenter - com.intellij.lang.Commenter - a:getBlockCommentTokenType():com.intellij.psi.tree.IElementType @@ -881,6 +877,10 @@ c:com.intellij.lang.injection.general.SimpleInjection - getPrefix():java.lang.String - getSuffix():java.lang.String - getSupportId():java.lang.String +f:com.intellij.lang.tree.util.AstUtilKt +- sf:children(com.intellij.lang.ASTNode):kotlin.sequences.Sequence +- sf:parents(com.intellij.lang.ASTNode,Z):kotlin.sequences.Sequence +- sf:siblings(com.intellij.lang.ASTNode,Z,Z):kotlin.sequences.Sequence c:com.intellij.lexer.DelegateLexer - com.intellij.lexer.LexerBase - pf:myDelegate:com.intellij.lexer.Lexer diff --git a/platform/core-api/src/com/intellij/lang/astUtil.kt b/platform/core-api/src/com/intellij/lang/tree/util/astUtil.kt similarity index 72% rename from platform/core-api/src/com/intellij/lang/astUtil.kt rename to platform/core-api/src/com/intellij/lang/tree/util/astUtil.kt index c2533239abd5..6696059b44b3 100644 --- a/platform/core-api/src/com/intellij/lang/astUtil.kt +++ b/platform/core-api/src/com/intellij/lang/tree/util/astUtil.kt @@ -1,5 +1,7 @@ -// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.intellij.lang +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +package com.intellij.lang.tree.util + +import com.intellij.lang.ASTNode fun ASTNode.children(): Sequence { return generateSequence(firstChildNode) { it.treeNext }