Remove TypeDeclarationStatement without altering lines position #113
-
|
Hello, I'm trying to remove This is how I remove TypeDeclarationStatements public override SyntaxNode VisitTypeDeclarationStatement(TypeDeclarationStatementSyntax node)
{
return null;
}es: function a()
print('epic')
end
type Point = { x: number, y: number }
function foo(x: number, y: string): boolean
local k: string = y:rep(x)
return k == "a"
endout: function a()
print('epic')
end
function foo(x: number, y: string): boolean
local k: string = y:rep(x)
return k == "a"
endHave a good day! |
Beta Was this translation helpful? Give feedback.
Answered by
GGG-KILLER
Jan 3, 2023
Replies: 1 comment 4 replies
-
|
The lines are being "altered" because the spacing in the type declaration statement was in the If you could share the rest of the process we could confirm whether or not that's the case @uniquadev |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Yeah, the way to solve this would be to take the leading trivia of the
typekeyword and add it to thefunctioninfunction foo