xshade-lang / xshade

"cross shade" meta shading language and compiler
MIT License
38 stars 3 forks source link

Span for BlockDeclaration not properly provided #33

Closed BoneCrasher closed 6 years ago

BoneCrasher commented 6 years ago

Feature: Name

parse_function

Summary

Add a short summary.

Each BlockDeclaration has a Span attached to it, which gives the offset, length, line and column of the respective "first character" of the block. It is default initialized and returned from parsing.

Examples

Give some examples.

//... ],
                                block: BlockDeclaration {
                                    span: Span::new(0, 0, 1, 1),
                                    statements: [
                                        Return(

References

Give some references about research or otherwise relevant information.