Class: Cecil::Lang::TypeScript
- Defined in:
- lib/cecil/lang/typescript.rb
Overview
rubocop:disable Style/Documentation
Defined Under Namespace
Modules: Helpers
Constant Summary
Constants inherited from Code
Code::PLACEHOLDER_NO_BRACKETS_PAIR
Instance Method Summary collapse
-
#block_ending_pairs ⇒ Object
Overrides to add support for closing multi-line comments (e.g. /* ... */).
-
#handle_ambiguous_indentation ⇒ Object
Overrides to ignore ambiguous indentation.
-
#indent_chars ⇒ Object
Overrides to use 2 spaces for indentation.
Methods inherited from Code
generate, generate_string, #placeholder_delimiting_pairs, #placeholder_ident_re, #placeholder_re, #placeholder_start_re, #scan_for_placeholders
Instance Method Details
#block_ending_pairs ⇒ Object
Overrides to add support for closing multi-line comments (e.g. /* ... */)
14 |
# File 'lib/cecil/lang/typescript.rb', line 14 def block_ending_pairs = super.merge({ "/*" => "*/" }) |
#handle_ambiguous_indentation ⇒ Object
Overrides to ignore ambiguous indentation
11 |
# File 'lib/cecil/lang/typescript.rb', line 11 def handle_ambiguous_indentation = Indentation::Ambiguity.ignore |
#indent_chars ⇒ Object
Overrides to use 2 spaces for indentation
8 |
# File 'lib/cecil/lang/typescript.rb', line 8 def indent_chars = " " |