Class: Fastlane::Helper::Ios::StringsFileValidationHelper::State

Inherits:
Struct
  • Object
show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb

Overview

context can be one of:

:root, :maybe_comment_start, :maybe_comment_or_value, :in_line_comment, :in_block_comment,
:maybe_block_comment_end, :in_quoted_key, :in_unquoted_key,
:after_quoted_key_before_eq, :after_quoted_key_and_eq,
:in_quoted_value, :in_unquoted_value, :after_quoted_value

resume_context holds the context to return to once a comment ends. Comments are valid not only at the top level but also between the tokens of a statement (e.g. "key" /* note */ = "value";), so a comment must resume the state it interrupted rather than always dropping back to :root. depth tracks how deeply nested we are inside a container value ({ … } / ( … )); see :in_container_value.

Instance Attribute Summary collapse

Instance Attribute Details

#bufferObject

Returns the value of attribute buffer

Returns:

  • (Object)

    the current value of buffer



17
18
19
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb', line 17

def buffer
  @buffer
end

#contextObject

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



17
18
19
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb', line 17

def context
  @context
end

#depthObject

Returns the value of attribute depth

Returns:

  • (Object)

    the current value of depth



17
18
19
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb', line 17

def depth
  @depth
end

#found_keyObject

Returns the value of attribute found_key

Returns:

  • (Object)

    the current value of found_key



17
18
19
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb', line 17

def found_key
  @found_key
end

#in_escaped_ctxObject

Returns the value of attribute in_escaped_ctx

Returns:

  • (Object)

    the current value of in_escaped_ctx



17
18
19
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb', line 17

def in_escaped_ctx
  @in_escaped_ctx
end

#resume_contextObject

Returns the value of attribute resume_context

Returns:

  • (Object)

    the current value of resume_context



17
18
19
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb', line 17

def resume_context
  @resume_context
end