Skip to content
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

Add an empty line after REFERENCE FROM #155

Open
ronaldtse opened this issue May 23, 2024 · 0 comments
Open

Add an empty line after REFERENCE FROM #155

ronaldtse opened this issue May 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Contributor

From Keith Hunten at WG 12 meeting in Seoul 2024-05-16.

Method:

def format_declarations_interface(node)
[
case node.kind
when Model::Declarations::Interface::USE then 'USE'
when Model::Declarations::Interface::REFERENCE then 'REFERENCE'
end,
' ',
'FROM',
' ',
format(node.schema),
*if node.items.length > 0
item_indent = INDENT_CHAR * '('.length
[
"\n",
indent([
'(',
node.items.map{|x| format(x)}.join(",\n#{item_indent}"),
')'
].join(''))
].join('')
end,
';',
].join('')
end

@ronaldtse ronaldtse added the enhancement New feature or request label May 23, 2024
@ronaldtse ronaldtse self-assigned this May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant