private static bool TryTakeNumericLiteral(TokenKeeper pos, out ExpressionNode node) { if (pos.Next.TokenType == TokenType.NumericLiteral) { node = new NumericLiteralNode(pos.Take()); return(true); } node = null; return(false); }
public void VisitNumericLiteral(NumericLiteralNode node) { IType?type = _typeManager.GetType("int", PointerMode.NotAPointer); if (type == null) { throw new InvalidOperationException("Primitive types not registered with type system."); } SetAndCacheType(node, type); }
public void VisitNumericLiteral(NumericLiteralNode node) { VisitPreOrder(node); VisitPostOrder(node); }
public void VisitNumericLiteral(NumericLiteralNode node) { Print($"Numeric Literal ({node.Value})"); }
public void VisitNumericLiteral(NumericLiteralNode node) { _functionBuilder.AddInstruction(OpCode.PUSHWORD, node.Value); }
public void VisitNumericLiteral(NumericLiteralNode node) { NumericLiteralVisitor?.Visit(node); }
public virtual void VisitNumericLiteral(NumericLiteralNode node) { VisitDefaultExpression(node); }
public void VisitNumericLiteral(NumericLiteralNode node) { }
public void VisitNumericLiteral(NumericLiteralNode node) { _visitedValue = Value.ConstInt(_genContext.Context.Int32Type, (ulong)node.Value, true); }