Skip to content

Platform Language API and Language Implementations #31

@VISTALL

Description

@VISTALL

Current examples:

  • JVM platform
    • Java
    • Groovy
    • Kotlin
    • Scala
  • .NET platform
    • C#
    • F#
    • Visual Basic

For example need create line marker provider for xClass and some marker like xAttribute/xAnnotation. Some languages same interfaces like DotNetType or PsiClass.

But anyway need create own xProvider for each language.

.NET plugin/Java plugin already provide some abstraction for it like DotNetType / JvmClass / PsiClass

How it will be - creating with to classes:

public class JvmLanguage extends xApiLanguage {
}

public class JavaLanguage extends Language implements LanguageImplement {
    public XApiLanguage getParentLanguage() {
       return JvmLanguage.INSTANCE; 
    }
}

Api language is not registered as parent of Impl since, it's not share tokens, etc.

Also need some convertor which will convert Impl Classes to Api classes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions