-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mover funciones de definitions.ts a wollok-ts #162
Labels
Comments
fdodino
added
enhancement
New feature or request
severity: 1 - minor
Low priority issue
labels
Apr 2, 2024
Update, se migraron algunas, quedó pendiente ésto: // TODO: terminar de migrar a wollok-ts estas 4 definiciones
export const getNodeDefinition = (environment: Environment) => (node: Node): Node[] => {
try {
return match(node)(
when(Reference)(node => definedOrEmpty(node.target)),
when(Send)(sendDefinitions(environment)),
when(Super)(node => definedOrEmpty(superMethodDefinition(node))),
when(Self)(node => definedOrEmpty(getParentModule(node)))
)
} catch {
return [node]
}
}
const superMethodDefinition = (superNode: Super): Method | undefined => {
const currentMethod = superNode.ancestors.find(is(Method))!
const module = getParentModule(superNode)
return module ? module.lookupMethod(currentMethod.name, superNode.args.length, { lookupStartFQN: module.fullyQualifiedName }) : undefined
}
const getParentModule = (node: Node) => node.ancestors.find(is(Module))
const definedOrEmpty = <T>(value: T | undefined): T[] => value ? [value] : [] |
fdodino
added a commit
to uqbar-project/wollok-ts
that referenced
this issue
Oct 6, 2024
fdodino
added a commit
that referenced
this issue
Oct 9, 2024
* Fix #128 * Fix #162 * Undo local dependency * Undo local dependency * Fix #186 * add game port number configuration * i18n command message * i18n extension texts * 📝 Update contributors list * Updating yarn.lock * Updating wollok-ts dependency * Fix yarn.lock & tests --------- Co-authored-by: Publishing Bot <action@github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hoy tenemos toda esta funcionalidad que parece que podría migrarse toda a wollok-ts:
The text was updated successfully, but these errors were encountered: