Пример #1
0
 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;
 }
Пример #2
0
 protected virtual TResult handleLiteral(LiteralExpressionNode literal, TSource source, bool nested)
 {
     return(defaultHandler());
 }