Example #1
0
 public BracketedSelectorSegment(
     SingleLineCommentsSupportOptions singleLineCommentsSupportOptions,
     char closeBracketCharacter,
     IProcessCharacters characterProcessorToReturnTo,
     IGenerateCharacterProcessors processorFactory)
     : base(
         ProcessingTypeOptions.StyleOrSelector,
         singleLineCommentsSupportOptions,
         new CharacterCategorisationBehaviourOverride(
             closeBracketCharacter,
             CharacterCategorisationOptions.SelectorOrStyleProperty,
             characterProcessorToReturnTo
             ),
         processorFactory
         )
 {
 }
Example #2
0
        protected SelectorOrStyleSegment(
            ProcessingTypeOptions processingType,
            SingleLineCommentsSupportOptions singleLineCommentsSupportOptions,
            CharacterCategorisationBehaviourOverride optionalCharacterCategorisationBehaviourOverride,
            IGenerateCharacterProcessors processorFactory)
        {
            if (!Enum.IsDefined(typeof(ProcessingTypeOptions), processingType))
            {
                throw new ArgumentOutOfRangeException("processingType");
            }
            if (!Enum.IsDefined(typeof(SingleLineCommentsSupportOptions), singleLineCommentsSupportOptions))
            {
                throw new ArgumentOutOfRangeException("singleLineCommentsSupportOptions");
            }
            if (processorFactory == null)
            {
                throw new ArgumentNullException("processorFactory");
            }

            _processingType = processingType;
            _singleLineCommentsSupportOptions = singleLineCommentsSupportOptions;
            _optionalCharacterCategorisationBehaviourOverride = optionalCharacterCategorisationBehaviourOverride;
            _processorFactory = processorFactory;
        }
 public SelectorOrStylePropertySegment(SingleLineCommentsSupportOptions singleLineCommentsSupportOptions, IGenerateCharacterProcessors processorFactory)
     : base(ProcessingTypeOptions.StyleOrSelector, singleLineCommentsSupportOptions, null, processorFactory)
 {
 }
 public StyleValueSegment(SingleLineCommentsSupportOptions singleLineCommentsSupportOptions, IGenerateCharacterProcessors processorFactory)
     : base(ProcessingTypeOptions.Value, singleLineCommentsSupportOptions, null, processorFactory)
 {
 }