scalameta
scalameta copied to clipboard
Library to read, analyze, transform and generate Scala programs
Currently, we don't have a way to tell whether a method is an extension method or not. Proposing adding a new property `EXTENSION` like this https://github.com/scalameta/scalameta/blob/b97a504d381bb98ebb63b80f4ee3a1447aae7c32/semanticdb/semanticdb/semanticdb.proto#L265-L289 ```diff TRANSPARENT = 0x80000;...
Context for this PR: https://github.com/scala/bug/issues/12232#issuecomment-734811470 This represents the majority of `match may not be exhaustive` warnings in my codebase. Given this trivial program on 2.13.6: ```scala import scala.meta._ object App...
This PR expands the SemanticDB spec to model the `throws` clause in method signatures. This was an outstanding issue outlined in the spec [here](https://github.com/scalameta/scalameta/compare/master...Strum355:nsc/signature-throws?expand=1#diff-6de01c45b01f872f6b7fc8762fbdca7a514b734fec77ba7d47037f3cd0f26272L3451). Working implementation can be seen https://github.com/sourcegraph/lsif-java/pull/160
This PR expands the SemanticDB spec to allow for representing Annotation AST's (incl. parameters) by introducing two new types to the `Tree` family: `AnnotationTree` and `AssignTree`. As `AnnotationTree` is binary...
Currently, it's not possible to query whether a symbol inherits another symbol. For example, it would be nice to have the ability check if `scala.reflect.io.FileOperationException` is a subtype of `Throwable`...
Hi all We have a piece of code that does some scala code generation. Now, at some point, I had a string that is just `"\n"` and I wanted to...
This template is mostly a guideline, not a strict requirement, except the sections marked `(required)`. Please make sure that the issue is observable using the latest version of `scalafmt` and...
The discussion originally from https://github.com/lampepfl/dotty/pull/13288 ## Background In Scala3, we can write anonymous using params `using ` , and the compiler synthesizes the variable name like `x$1` for it. ```scala...
https://www.npmjs.com/package/scalameta-parsers (added in https://github.com/scalameta/scalameta/pull/949) is currently stuck at 4.4.17, making https://astexplorer.net/ not as useful as it could be for Scala 3. Bumping & publishing seems [manual](https://github.com/scalameta/scalameta/blob/main/scalameta/parsers/js/npm/PUBLISH.md). I am not familiar...