private LiteralExpressionNode createLiteralExpression(LiteralKind literalKind) {
     var result = new LiteralExpressionNode { EndPosition = scanner.EndPosition };
     setScannerState(result);
     result.LiteralKind = literalKind;
     result.ValueOffset = scanner.StartPosition;
     result.ValueLength = getLexicalUnitLength();
     return result;
 }
Esempio n. 2
0
 protected virtual TResult handleLiteral(LiteralExpressionNode literal, TSource source, bool nested)
 {
     return(defaultHandler());
 }