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
returnparse(node.typeString,{ctx: node, version })asTypeNode;
87
100
}
88
101
89
102
/**
90
-
* Return the `TypeNode` corresponding to `arg`, where `arg` is either a raw type string, or a node with a type string (`Expression` or `VariableDeclaration`).
91
-
* The function uses a parser to parse the type string, while resolving and user-defined type refernces in the context of `ctx`.
103
+
* Return the `TypeNode` corresponding to `arg`, where `arg` is either a raw type string,
104
+
* or an AST node with a type string (`Expression` or `VariableDeclaration`).
105
+
*
106
+
* The function uses a parser to process the type string,
107
+
* while resolving and user-defined type references in the context of `ctx`.
92
108
*
93
109
* @param arg - either a type string, or a node with a type string (`Expression` or `VariableDeclaration`)
94
-
* @param version - compiler version to be used. Useful as resolution rules changed betwee 0.4.x and 0.5.x
110
+
* @param version - compiler version to be used. Useful as resolution rules changed between 0.4.x and 0.5.x.
95
111
* @param ctx - `ASTNode` representing the context in which a type string is to be parsed
0 commit comments