How to create PSI elements from text, for custom language?
Permanently deleted user
创建于
I notice that the Javascript plugin uses some hack by creating a new temporary file, then inserting text into it, for each new PSI element. Is this the recommended way?
KL> I notice that the Javascript plugin uses some hack by creating a new KL> temporary file, then inserting text into it, for each new PSI KL> element. Is this the recommended way?
Yes, this is in fact the easiest way to create new PSI elements (although it does look hackish).
-- Dmitry Jemerov Software Developer JetBrains, Inc. http://www.jetbrains.com "Develop with pleasure!"
Hello Keith,
KL> I notice that the Javascript plugin uses some hack by creating a new
KL> temporary file, then inserting text into it, for each new PSI
KL> element. Is this the recommended way?
Yes, this is in fact the easiest way to create new PSI elements (although
it does look hackish).
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"