Class: Cecil::Lang::TypeScript

Inherits:
Code
  • Object
show all
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

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_pairsObject

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_indentationObject

Overrides to ignore ambiguous indentation



11
# File 'lib/cecil/lang/typescript.rb', line 11

def handle_ambiguous_indentation = Indentation::Ambiguity.ignore

#indent_charsObject

Overrides to use 2 spaces for indentation



8
# File 'lib/cecil/lang/typescript.rb', line 8

def indent_chars = "  "