コード例 #1
0
 public void AddSemanticError(StyleSheetImportErrorCode code, string context)
 {
     m_Errors.Add(new Error(
                      StyleSheetImportErrorType.Semantic,
                      code,
                      context)
                  );
 }
コード例 #2
0
 public void AddSemanticError(StyleSheetImportErrorCode code, string message)
 {
     m_Errors.Add(new StyleSheetImportError(
                      StyleSheetImportErrorType.Semantic,
                      code,
                      assetPath,
                      message)
                  );
 }
コード例 #3
0
 public StyleSheetImportError(StyleSheetImportErrorType error, StyleSheetImportErrorCode code, string assetPath, string message, int line = -1, bool isWarning = false)
 {
     this.error     = error;
     this.code      = code;
     this.assetPath = assetPath;
     this.message   = message;
     this.line      = line;
     this.isWarning = isWarning;
 }
コード例 #4
0
 public void AddSemanticWarning(StyleSheetImportErrorCode code, string message, int line)
 {
     m_Errors.Add(new StyleSheetImportError(
                      StyleSheetImportErrorType.Semantic,
                      code,
                      assetPath,
                      message,
                      line,
                      isWarning: true)
                  );
 }
コード例 #5
0
 public Error(StyleSheetImportErrorType error, StyleSheetImportErrorCode code, string context)
 {
     this.error   = error;
     this.code    = code;
     this.context = context;
 }