Federico Tomassetti
Federico Tomassetti
In the context of editors it is useful to know the position of references and attributes. ReferenceByName could get a new field called position. Attributes may not have positions directly,...
- [ ] Move serialization out of core so we can drop dependencies from JSON and XML libraries - [ ] Move cli functionalities out of core so we can...
For example: ``` fun SymbolResolverConfiguration.resolveSymbols(node: Node) { val semantics = Semantics(configuration = SemanticsConfiguration(symbolResolver = this)) semantics.symbolResolver.resolve(node) } ```
For example: ``` fun Node.getReferenceResolvedValues( withReturnType: KClass = PossiblyNamed::class ): Sequence { return this.walk().flatMap { it.nodeProperties .filter { property -> property.returnType.isSubtypeOf(referenceByName(withReturnType)) } .mapNotNull { property -> property.get(it) } .map {...
When an exception is thrown during mapping it could be caused by the fact that a syntax error led to an invalid tree. In that case it would be useful...
IDs could be by default calculated based on the name of the source and the position within the file. However a policy to define different ways to calculate the ID,...
In this way we remove the need to use reflection, and we enable the possibility to compile the core module under Kotlin Multi Platform