|
| 1 | +// Copyright 2025 CloudWeGo Authors |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +package python |
| 16 | + |
| 17 | +import ( |
| 18 | + lsp "github.com/cloudwego/abcoder/lang/lsp" |
| 19 | +) |
| 20 | + |
| 21 | +type PythonSpec struct { |
| 22 | + repo string |
| 23 | +} |
| 24 | + |
| 25 | +func NewPythonSpec() *PythonSpec { |
| 26 | + return &PythonSpec{} |
| 27 | +} |
| 28 | + |
| 29 | +func (c *PythonSpec) WorkSpace(root string) (map[string]string, error) { |
| 30 | + panic("TODO") |
| 31 | +} |
| 32 | + |
| 33 | +func (c *PythonSpec) NameSpace(path string) (string, string, error) { |
| 34 | + panic("TODO") |
| 35 | +} |
| 36 | + |
| 37 | +func (c *PythonSpec) ShouldSkip(path string) bool { |
| 38 | + panic("TODO") |
| 39 | +} |
| 40 | + |
| 41 | +func (c *PythonSpec) DeclareTokenOfSymbol(sym lsp.DocumentSymbol) int { |
| 42 | + panic("TODO") |
| 43 | +} |
| 44 | + |
| 45 | +func (c *PythonSpec) IsEntityToken(tok lsp.Token) bool { |
| 46 | + panic("TODO") |
| 47 | +} |
| 48 | + |
| 49 | +func (c *PythonSpec) IsStdToken(tok lsp.Token) bool { |
| 50 | + panic("TODO") |
| 51 | +} |
| 52 | + |
| 53 | +func (c *PythonSpec) TokenKind(tok lsp.Token) lsp.SymbolKind { |
| 54 | + panic("TODO") |
| 55 | +} |
| 56 | + |
| 57 | +func (c *PythonSpec) IsMainFunction(sym lsp.DocumentSymbol) bool { |
| 58 | + panic("TODO") |
| 59 | +} |
| 60 | + |
| 61 | +func (c *PythonSpec) IsEntitySymbol(sym lsp.DocumentSymbol) bool { |
| 62 | + panic("TODO") |
| 63 | +} |
| 64 | + |
| 65 | +func (c *PythonSpec) IsPublicSymbol(sym lsp.DocumentSymbol) bool { |
| 66 | + panic("TODO") |
| 67 | +} |
| 68 | + |
| 69 | +func (c *PythonSpec) HasImplSymbol() bool { |
| 70 | + panic("TODO") |
| 71 | +} |
| 72 | + |
| 73 | +func (c *PythonSpec) ImplSymbol(sym lsp.DocumentSymbol) (int, int, int) { |
| 74 | + panic("TODO") |
| 75 | +} |
| 76 | + |
| 77 | +func (c *PythonSpec) FunctionSymbol(sym lsp.DocumentSymbol) (int, []int, []int, []int) { |
| 78 | + panic("TODO") |
| 79 | +} |
| 80 | + |
| 81 | +func (c *PythonSpec) GetUnloadedSymbol(from lsp.Token, define lsp.Location) (string, error) { |
| 82 | + panic("TODO") |
| 83 | +} |
0 commit comments