Class: Fastlane::Helper::Ios::StringsFileValidationHelper::State
- Inherits:
-
Struct
- Object
- Struct
- Fastlane::Helper::Ios::StringsFileValidationHelper::State
- 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
-
#buffer ⇒ Object
Returns the value of attribute buffer.
-
#context ⇒ Object
Returns the value of attribute context.
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#found_key ⇒ Object
Returns the value of attribute found_key.
-
#in_escaped_ctx ⇒ Object
Returns the value of attribute in_escaped_ctx.
-
#resume_context ⇒ Object
Returns the value of attribute resume_context.
Instance Attribute Details
#buffer ⇒ Object
Returns the value of attribute buffer
17 18 19 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb', line 17 def buffer @buffer end |
#context ⇒ Object
Returns the value of attribute context
17 18 19 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb', line 17 def context @context end |
#depth ⇒ Object
Returns the value of attribute depth
17 18 19 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb', line 17 def depth @depth end |
#found_key ⇒ Object
Returns the value of attribute 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_ctx ⇒ Object
Returns the value of attribute 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_context ⇒ Object
Returns the value of attribute 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 |