@@ -12,7 +12,8 @@ import { AstSymbol } from '../analyzer/AstSymbol';
1212import {
1313 ExtractorMessage ,
1414 ExtractorMessageCategory ,
15- IExtractorMessageOptions
15+ IExtractorMessageOptions ,
16+ IExtractorMessageProperties
1617} from '../api/ExtractorMessage' ;
1718import { ExtractorMessageId , allExtractorMessageIds } from '../api/ExtractorMessageId' ;
1819import {
@@ -164,7 +165,7 @@ export class MessageRouter {
164165 * Add a message from the API Extractor analysis
165166 */
166167 public addAnalyzerIssue ( messageId : ExtractorMessageId , messageText : string ,
167- astDeclarationOrSymbol : AstDeclaration | AstSymbol ) : void {
168+ astDeclarationOrSymbol : AstDeclaration | AstSymbol , properties ?: IExtractorMessageProperties ) : void {
168169
169170 let astDeclaration : AstDeclaration ;
170171 if ( astDeclarationOrSymbol instanceof AstDeclaration ) {
@@ -175,7 +176,7 @@ export class MessageRouter {
175176
176177 const extractorMessage : ExtractorMessage = this . addAnalyzerIssueForPosition (
177178 messageId , messageText , astDeclaration . declaration . getSourceFile ( ) ,
178- astDeclaration . declaration . getStart ( ) ) ;
179+ astDeclaration . declaration . getStart ( ) , properties ) ;
179180
180181 this . _associateMessageWithAstDeclaration ( extractorMessage , astDeclaration ) ;
181182 }
@@ -231,7 +232,7 @@ export class MessageRouter {
231232 * Add a message for a location in an arbitrary source file.
232233 */
233234 public addAnalyzerIssueForPosition ( messageId : ExtractorMessageId , messageText : string ,
234- sourceFile : ts . SourceFile , pos : number ) : ExtractorMessage {
235+ sourceFile : ts . SourceFile , pos : number , properties ?: IExtractorMessageProperties ) : ExtractorMessage {
235236
236237 const lineAndCharacter : ts . LineAndCharacter = sourceFile . getLineAndCharacterOfPosition (
237238 pos ) ;
0 commit comments