Comments (8)
To resolve types in Java, we would parse all source (and class/jar) files in the project instead of single files.
How are we going about the language versions of files?
I am thinking of:
- one pass of parsing single files to get language version
- another pass using the highest version to parse all files to build Boa ast with types
from compiler.
There isn't a way to avoid parsing every file twice? Why does the language version matter for this task?
from compiler.
If we tried to parse every file once then it matter because we will only have language version for the entire project.
If we parse twice then each parsing will do a separate task.
I cannot think of anyway to avoid parsing twice.
from compiler.
But why do we need the language version for the project? In reality, a single repo might actually contain multiple language versions.
from compiler.
No, I didn't mean that.
I just meant that we should not use language version that works for all files as the language version of every single file.
from compiler.
Since we are not resolving types for all snapshots, would it be better to store a head snapshot with types separately?
from compiler.
Commits
ca964b7
e7b3c5d
c727ede
e3c10c2
e9c490b
5153c47
from compiler.
Use in-project jar files to resolve types
ef1c86a
99e08f8
from compiler.
Related Issues (20)
- Recursive function does not work HOT 2
- Tuple with Proto types HOT 3
- Boa Switch Statement HOT 1
- RevisionKeys HOT 7
- Codegen error due to var scope after Merge pull request #160 from boalang/issue25
- Function 'exp' Already Exists
- Add line numbers to AST nodes HOT 1
- missing typecheck error when adding to sets with wrong value type HOT 1
- Variables created as undefined values are not cleared between maps HOT 1
- Missing typecheck error when using aggregator functions in emit statements
- ++ (and --) not supported on non-basic types HOT 5
- blank output: committer.username as an identifier to output HOT 3
- Using an enum causes compiler crash HOT 1
- aggregator does not allow component values
- Trailing commas not currently allowed
- Allow visiting protolists
- Enums cannot be used as tuple elements
- Queries with diacritical characters in comments are rejected HOT 1
- Add warnings for undef accesses
- Optimize visitors to avoid calling getrevision(), similar to avoiding getast() calls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compiler.