You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve textmate grammar for primary constructors #5920
We may as well do this at the same time as #5918. Primary Constructors mean that new and factory show up in more places in different contexts. We should try to get the grammar to match the semantic tokens as closely as possible. Currently they are very different.
classNewWithoutType {
constnew();
constnewnamed();
}
classNewWithType {
constNewWithType.named();
constNewWithType.new();
}
classFactoryWithoutType {
FactoryWithoutType._();
factory() =>FactoryWithoutType._();
factorynamed() =>FactoryWithoutType._();
voidfactory() =>''; // Method
}
classFactoryWithType {
FactoryWithType._();
factory() =>FactoryWithType._();
factorynamed() =>FactoryWithType._();
voidfactory() =>''; // Method
}
classPrimaryWithoutName(finalint a) {
this {}
}
classPrimaryWithName.named(finalint a) {
this {}
}
voidf() {
var _ =NewWithType.new();
var _ =NewWithType.named();
var _ =newNewWithType.new();
var _ =newNewWithType.named();
var _ =constNewWithType.new();
var _ =constNewWithType.named();
var _ =NewWithType.new;
var _ =NewWithType.named;
var _ =FactoryWithType.named().factory();
}
Activity
Improve handling of new/factory keywords (w/ primary constructors) (#87)
Update to latest textmate grammar