Community
Participate
Working Groups
Build Identifier: Enhance the DOM AST to support type pattern nodes, including: AndTypePattern OrTypePattern AnyTypePattern TypePatternMaybe AnyWithAnnotationTypePattern EllipsisTypePattern HasMemberTypePattern NotTypePattern NoTypePattern TypeCategoryTypePattern ExactTypePattern BindingTypePattern WildTypePattern Test cases should be added that build the nodes both before and after types are resolved, and both cases should be handled in the AjASTConverter See equivalent AST weaver nodes for further details on each node type. The initial implementation of the nodes should hold the source range and type information obtained from the weaver nodes. Reproducible: Always
Created attachment 182310 [details] Initial implementation of feature This initial implementation contains new DOM nodes for TypePatterns. However, it has only been tested in a unresolved scenario, therefore the only nodes that are created are WildTypePattern, And, and OR type patterns. Other type patterns need to be tested.
Created attachment 183097 [details] Feature patch with additional test cases and polished code Contains the TypePattern feature for declare parents, with additional test cases and polished code.