LastNode() private method

private LastNode ( ) : SyntaxTreeNode
return Veil.Parser.SyntaxTreeNode
コード例 #1
0
ファイル: HandlebarsParser.cs プロジェクト: tonischranz/Veil
        private static void HandleTrimLastLiteral(HandlebarsParserState state)
        {
            var literal = state.LastNode() as WriteLiteralNode;

            if (literal != null)
            {
                literal.LiteralContent = literal.LiteralContent.TrimEnd();
            }
            state.ContinueProcessingToken = true;
        }
コード例 #2
0
 private static void HandleTrimLastLiteral(HandlebarsParserState state)
 {
     var literal = state.LastNode() as WriteLiteralNode;
     if (literal != null)
     {
         literal.LiteralContent = literal.LiteralContent.TrimEnd();
     }
     state.ContinueProcessingToken = true;
 }