Skip to content

CodeObject Derived Classes Not Supported

fonlow edited this page Feb 2, 2024 · 4 revisions

CodeDOM features applicable to TypeScript but not supported in TypeScriptCodeDom

  1. CodeGotoStatement
  2. CodeLabeledStatement

Remarks:

If you need to utilize these CodeDOM features for generating TypeScript codes, please raise some issues or vote existing ones. Alternatively you may download the source codes and add the feature needed. For quick fix, you may just use CodeSnippetExpression or CodeSnippetStatement.

CodeDOM features not applicable to TypeScript

  1. CodeAttributeArgument, CodeAttributeArgumentCollection
  2. CodeCatchClauseCollection
  3. CodeDefaultValueExpression
  4. CodeChecksumPragma
  5. CodeDirectionExpression
  6. CodeDirective, CodeDirectiveCollection
  7. CodeLinePragma
  8. CodeMemberEvent
  9. CodePropertySetValueReferenceExpression
  10. CodeSnippetCompileUnit
  11. CodeTypeDelegate
  12. CodeEntryPointMethod
  13. FieldDirection
  14. CodeTypeConstructor. Static constructor could has another approach as described in https://github.com/Microsoft/TypeScript/issues/265
  15. CodeNamespaceImport
  16. CodePropertySetValueReferenceExpression
  17. CodeMemberMethod.TypeParameters
  18. Nested CodeTypeDeclaration

Events

  1. CodeEventReferenceExpression
  2. CodeAttachEventStatement
  3. CodeRemoveEventStatement
  4. CodeDelegateCreateExpression
  5. CodeDelegateInvokeExpression

Events in Javascript are basically HTML DOM things, and TypeScript hasn't got its own event bus.

Clone this wiki locally