AST generation omits strings in C# and python

Aperta
#1,139 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp, python, rust
Ambito
compilers

Direzione di ricerca

The report identifies C# and Python string literals but does not name the AST generation files or tests. Start by locating the parsers and AST tests for both languages, then reproduce the snippets and inspect how string values are represented. Done means the generated AST preserves "hdfs:///" and "/" for both snippets.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I encountered an issue when generating the Abstract Syntax Tree (AST) for the following C# and Python code snippets. The expected string values "hdfs:///" and "/" do not appear in the generated AST. Instead, the AST contains empty strings.

public class TestURIHandlerService
{
    [Fact]
    public void TestGetAuthorityWithScheme5()
    {
        var uriService = new URIHandlerService();
        // ...
        Assert.Equal("hdfs:///", uri.ToString());
        // ...
        Assert.Equal("/", uri.ToString());
    }
}
class TestURIHandlerService:
    def test_get_authority_with_scheme_5(self):
        uri_service = URIHandlerService()
        # ...
        assert uri.to_string() == "hdfs:///"
        # ...
        assert uri.to_string() == "/"
Lingua principale
Rust
Stelle
469
Fork
74
Merge medio
17h 16m
PR unite (30g)
10

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mozilla/rust-code-analysis

Tutte le issue di mozilla/rust-code-analysis

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.