Git Product home page Git Product logo

thenameless314159 / sourcegeneratorutils Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 0.0 172 KB

.NET standard 2.0 utils and helpers to write source files (for source generators or general purpose)

Home Page: https://thenameless314159.github.io/SourceGeneratorUtils/

License: MIT License

C# 100.00%
abstractions codegen codegeneration codegenerator helpers sourcegeneration sourcegenerator utils src-gen sourcegen

sourcegeneratorutils's People

Contributors

thenameless314159 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sourcegeneratorutils's Issues

Containing types declaration should follow the same logic as the target type

The target type containing types are currently written simply like this writer.WriteLine($"{type.Accessibility ?? publicKeyword} {type.Type} {type.Name}");, the goal was to allow source generator users to handle containing partial types (when logic needs to be generated for a nested class) but the scope of this library is also general-purpose code generation therefore they should be handled like target types

[Feature] Support for fully qualified type name to include/exclude resources

Resources could be excluded via their fully qualified type name, the reason this wasn't implemented in the 0.0.1 is because some types are generic and it'd require to either :

  • rename every file with their fully qualified type name (and therefore make sure that in the future every new type introduced follows this logic)
  • or parse the type declaration from the source code, which would be more convenient but won't be possible until #43 have been resolved

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.