Skip to content

AST generation omits strings in C# and python #1139

@publiosilva

Description

@publiosilva

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() == "/"

Metadata

Metadata

Assignees

No one assigned

    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