示例#1
0
 protected abstract void PrintMessage(ErrorLogger logger);
示例#2
0
 public void Print(ErrorLogger logger)
 {
     PrintMessage(logger);
     logger.Log($"{_line}");
     PrintErrorPointer(logger);
 }
示例#3
0
 protected override void PrintMessage(ErrorLogger logger)
 {
     logger.Log($"{FileName}:{_lineNo}:{_columnNo}: error: array ‘{_identifier}’ has invalid size ‘{_declaredSize}’");
 }
示例#4
0
 protected override void PrintMessage(ErrorLogger logger)
 {
     logger.Log($"{FileName}:{_lineNo}:{_columnNo}: error: array ‘{_identifier}’ has inconsistent size (declared size: {_declaredSize}, elements count: {_elementsCount})");
 }
示例#5
0
 protected override void PrintErrorPointer(ErrorLogger logger)
 {
     logger.Log($"{GetErrorPointerLine(_columnNo + _identifierPrefix.Length)}");
 }
示例#6
0
 protected override void PrintMessage(ErrorLogger logger)
 {
     logger.Log($"{FileName}:{_lineNo}:{_columnNo}: error: ‘{_identifier.Split(".").First()}’ undeclared");
 }
示例#7
0
 protected virtual void PrintErrorPointer(ErrorLogger logger)
 {
     logger.Log($"{GetErrorPointerLine(_columnNo)}");
 }