Exemplo n.º 1
0
        private void CreateAstUseInheritanceStatement()
        {
            var result = new AstUseInheritanceStatement();

            DefaultSettingsOfCodeEntityHelper.SetUpAnnotatedItem(result, CurrentDefaultSetings);

            result.AppendAnnotations(_rawStatement);

            result.SubName   = _rawStatement.FirstName;
            result.SuperName = _rawStatement.SecondName;

            if (_rawStatement.Rank == null)
            {
                result.Rank = new LogicalValue(1);
            }
            else
            {
                result.Rank = _rawStatement.Rank;
            }

            result.HasNot = _rawStatement.HasNot;

            Result = result;
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        protected override void OnEnter()
        {
            _rawStatement = new AstTryStatement();

            DefaultSettingsOfCodeEntityHelper.SetUpAnnotatedItem(_rawStatement, CurrentDefaultSetings);
        }
        /// <inheritdoc/>
        protected override void OnEnter()
        {
            Result = new AstCatchStatement();

            DefaultSettingsOfCodeEntityHelper.SetUpAnnotatedItem(Result, CurrentDefaultSetings);
        }