mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
[python] PY-80436 support ellipsis
GitOrigin-RevId: 82e38fcb502ed68d5676f2cc774ef2653d69febb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1cfa311783
commit
4b1d24562a
@@ -142,7 +142,7 @@ public abstract class PyElementGenerator extends PyAstElementGenerator {
|
||||
@NotNull String name,
|
||||
@Nullable String alias);
|
||||
|
||||
public abstract @NotNull PyNoneLiteralExpression createEllipsis();
|
||||
public abstract @NotNull PyEllipsisLiteralExpression createEllipsis();
|
||||
|
||||
public abstract @NotNull PySingleStarParameter createSingleStarParameter();
|
||||
|
||||
|
||||
@@ -282,6 +282,10 @@ public class PyElementVisitor extends PsiElementVisitor {
|
||||
visitPyElement(node);
|
||||
}
|
||||
|
||||
public void visitPyEllipsisLiteralExpression(@NotNull PyEllipsisLiteralExpression node) {
|
||||
visitPyElement(node);
|
||||
}
|
||||
|
||||
public void visitPyBoolLiteralExpression(@NotNull PyBoolLiteralExpression node) {
|
||||
visitPyElement(node);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// Copyright 2000-2021 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.jetbrains.python.psi
|
||||
|
||||
import com.jetbrains.python.ast.PyAstEllipsisLiteralExpression
|
||||
|
||||
/**
|
||||
* Used for literal ellipsis (`...`).
|
||||
*/
|
||||
interface PyEllipsisLiteralExpression : PyAstEllipsisLiteralExpression, PyLiteralExpression
|
||||
@@ -1,10 +1,6 @@
|
||||
// Copyright 2000-2021 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.jetbrains.python.psi;
|
||||
package com.jetbrains.python.psi
|
||||
|
||||
import com.jetbrains.python.ast.PyAstNoneLiteralExpression;
|
||||
import com.jetbrains.python.ast.PyAstNoneLiteralExpression
|
||||
|
||||
/**
|
||||
* Used for literal None and literal ... (Ellipsis).
|
||||
*/
|
||||
public interface PyNoneLiteralExpression extends PyAstNoneLiteralExpression, PyLiteralExpression {
|
||||
}
|
||||
interface PyNoneLiteralExpression : PyAstNoneLiteralExpression, PyLiteralExpression
|
||||
|
||||
Reference in New Issue
Block a user