Skip to content

Commit

Permalink
Resolving calls more precisely
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Jul 5, 2024
1 parent 2f2ef7f commit 19b3a1e
Show file tree
Hide file tree
Showing 46 changed files with 221 additions and 453 deletions.
4 changes: 1 addition & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
src/main/java/org/vyperlang/plugin/grammar/**/*.java linguist-generated=true
src/main/java/org/vyperlang/plugin/parser/**/*.java linguist-generated=true
src/main/java/org/vyperlang/plugin/psi/**/*.java linguist-generated=true
src/gen/**/*.* linguist-generated=true
2 changes: 1 addition & 1 deletion .idea/modules/vyper-plugin.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

## [Unreleased]
- Fix auto-complete issues and `immutable` support ([#31](https://github.com/NikitaMishin/vyper-plugin/issues/31))
- Fix find usages issues ([#28](https://github.com/NikitaMishin/vyper-plugin/issues/28)) for `immutable`, `interface` and `struct`

## [0.2.0-alpha.3] - 2024-07-02
- Add automatic compilation errors ([#36](https://github.com/NikitaMishin/vyper-plugin/issues/36))
Expand Down
21 changes: 11 additions & 10 deletions src/main/gen/org/vyperlang/plugin/parser/BaseVyperParser.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions src/main/gen/org/vyperlang/plugin/psi/VyperImportDirective.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/main/gen/org/vyperlang/plugin/psi/VyperTypes.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/main/gen/org/vyperlang/plugin/psi/VyperVisitor.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/main/kotlin/org/vyperlang/plugin/VyperLanguage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ package org.vyperlang.plugin
import com.intellij.lang.Language

object VyperLanguage : Language("Vyper", "text/vyper") {

override fun isCaseSensitive() = true
}


Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.vyperlang.plugin


import com.intellij.lang.ASTNode
import com.intellij.lang.ParserDefinition
import com.intellij.lang.PsiParser
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/org/vyperlang/plugin/VyperStubGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import com.intellij.openapi.vfs.VirtualFileManager
import org.vyperlang.plugin.settings.VyperSettings
import java.io.File


object VyperStubGenerator {

fun createStubInGenSourceFolder(
Expand Down Expand Up @@ -51,7 +50,6 @@ object VyperStubGenerator {
ModuleRootManager.getInstance(module).sourceRoots
.firstOrNull { it.name == VyperSettings.INSTANCE.genarateOutputPath }


private fun generateFolder(module: Module, project: Project) {
WriteCommandAction.runWriteCommandAction(project) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import org.vyperlang.plugin.compile.VyperParameters
import org.vyperlang.plugin.gui.NoFilesWithVyperAreSelectedDialogue
import org.vyperlang.plugin.settings.VyperSettings


private const val COMPILING_MESSAGE = "Compiling Vyper"
private val EXTENSION = VyperFileType.INSTANCE.defaultExtension

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.vyperlang.plugin.actions


import com.intellij.ide.actions.CreateFileFromTemplateAction
import com.intellij.ide.actions.CreateFileFromTemplateDialog
import com.intellij.openapi.project.Project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import org.vyperlang.plugin.VyperFileType
import org.vyperlang.plugin.VyperInterfaceFileType
import org.vyperlang.plugin.psi.*


/**
* Annotator that highlights Vyper elements with different colors
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class VyperDeclarationsOrderAnnotator : Annotator {
override fun annotate(element: PsiElement, holder: AnnotationHolder) {

if (element is VyperStateVariableDeclaration) {
val declarations = (element.file as VyperFile).statements.takeWhile { it != element }
val declarations = (element.file as VyperFile).elements.takeWhile { it != element }
loop@ for (dec in declarations) {
when (dec) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import org.vyperlang.plugin.docker.ToolResult
import org.vyperlang.plugin.docker.VyperCompilerDocker
import org.vyperlang.plugin.toolWindow.VyperWindow


data class VyperParameters(
val module: Module,
val project: Project,
Expand Down
Loading

0 comments on commit 19b3a1e

Please sign in to comment.