hhvm / definition-finder Goto Github PK
View Code? Open in Web Editor NEWFind definitions (classes, functions, etc) in PHP and Hack files
License: MIT License
Find definitions (classes, functions, etc) in PHP and Hack files
License: MIT License
related to #13
$ echo enable_experimental_tc_features = optional_shape_field >> .hhconfig
$ hh_client
src/TokenQueue.php:43:45,49: Invalid argument (Typing[4057])
src/TokenQueue.php:43:45,49: The field 'firstChar' is missing
src/NGToken.php:25:13,27: The field 'firstChar' is defined
src/TokenQueue.php:46:37,41: Invalid argument (Typing[4057])
src/TokenQueue.php:46:37,41: The field 'firstChar' is missing
src/NGToken.php:25:13,27: The field 'firstChar' is defined
src/TreeParser.php:18:40,44: Invalid argument (Typing[4057])
src/TreeParser.php:19:21,25: The field 'line' is missing
src/definitions/ScannedBase.php:16:25,38: The field 'line' is defined
Means anyone using hhvm-autoload
can't use optional_shape_field
I noticed a generic has only a possible constraint and constraint relationship (super
or as
), but generics can have both super
and as
at the same time (both an upper and lower bound). Example:
abstract class Path {
// ..
public final function relativeTo<T super this as Path>(T $base): T {
// ..
}
// ..
}
Here, T
must be some Path
that this
is compatible with. definition-finder will only pick up the as Path
part, the lower bound is lost.
ScannedFunction is a function, ScannedFunctionAbstract is the base of functions and methods
ScannedClass is the abstract base of classes, interfaces, and traits, ScannedBasicClass is a real class.
hh_client in 3.21 is correctly pointing out that define() always declares something in the root namespace:
https://travis-ci.org/hhvm/definition-finder/jobs/262331066
Update tests to make sure that what definition-finder reports is accurate.
assertEquals is useless for vecs - assertion succeeds if both are vecs, even if contents is completely different
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.