@@ -67,7 +67,7 @@ export interface ProblemPattern {
6767
6868 mostSignifikant ?: boolean ;
6969
70- [ key :string ] : any ;
70+ [ key : string ] : any ;
7171}
7272
7373export let problemPatternProperties = [ 'file' , 'message' , 'location' , 'line' , 'column' , 'endLine' , 'endColumn' , 'code' , 'severity' , 'loop' , 'mostSignifikant' ] ;
@@ -110,7 +110,7 @@ export interface ProblemMatcher {
110110 fileLocation : FileLocationKind ;
111111 filePrefix ?: string ;
112112 pattern : ProblemPattern | ProblemPattern [ ] ;
113- severity ?:Severity ;
113+ severity ?: Severity ;
114114 watching ?: WatchingMatcher ;
115115}
116116
@@ -122,7 +122,7 @@ export function isNamedProblemMatcher(value: ProblemMatcher): value is NamedProb
122122 return Types . isString ( ( < NamedProblemMatcher > value ) . name ) ;
123123}
124124
125- let valueMap : { [ key :string ] :string ; } = {
125+ let valueMap : { [ key : string ] : string ; } = {
126126 E : 'error' ,
127127 W : 'warning' ,
128128 I : 'info' ,
@@ -137,15 +137,15 @@ interface Location {
137137
138138interface ProblemData {
139139 file ?: string ;
140- location ?:string ;
140+ location ?: string ;
141141 line ?: string ;
142142 column ?: string ;
143143 endLine ?: string ;
144144 endColumn ?: string ;
145145 message ?: string ;
146146 severity ?: string ;
147147 code ?: string ;
148- [ key :string ] : string ;
148+ [ key : string ] : string ;
149149}
150150
151151export interface ProblemMatch {
@@ -159,7 +159,7 @@ export interface HandleResult {
159159 continue : boolean ;
160160}
161161
162- export function getResource ( filename :string , matcher : ProblemMatcher ) : URI {
162+ export function getResource ( filename : string , matcher : ProblemMatcher ) : URI {
163163 let kind = matcher . fileLocation ;
164164 let fullPath : string ;
165165 if ( kind === FileLocationKind . Absolute ) {
@@ -233,7 +233,7 @@ class AbstractLineMatcher implements ILineMatcher {
233233 protected getMarkerMatch ( data : ProblemData ) : ProblemMatch {
234234 let location = this . getLocation ( data ) ;
235235 if ( data . file && location && data . message ) {
236- let marker :IMarkerData = {
236+ let marker : IMarkerData = {
237237 severity : this . getSeverity ( data ) ,
238238 startLineNumber : location . startLineNumber ,
239239 startColumn : location . startColumn ,
@@ -252,7 +252,7 @@ class AbstractLineMatcher implements ILineMatcher {
252252 }
253253 }
254254
255- protected getResource ( filename :string ) :URI {
255+ protected getResource ( filename : string ) : URI {
256256 return getResource ( filename , this . matcher ) ;
257257 }
258258
@@ -266,11 +266,11 @@ class AbstractLineMatcher implements ILineMatcher {
266266 let startLine = parseInt ( data . line ) ;
267267 let startColumn = data . column ? parseInt ( data . column ) : undefined ;
268268 let endLine = data . endLine ? parseInt ( data . endLine ) : undefined ;
269- let endColumn = data . endColumn ? parseInt ( data . endColumn ) : undefined ;
269+ let endColumn = data . endColumn ? parseInt ( data . endColumn ) : undefined ;
270270 return this . createLocation ( startLine , startColumn , endLine , endColumn ) ;
271271 }
272272
273- private parseLocationInfo ( value :string ) :Location {
273+ private parseLocationInfo ( value : string ) : Location {
274274 if ( ! value || ! value . match ( / ( \d + | \d + , \d + | \d + , \d + , \d + , \d + ) / ) ) {
275275 return null ;
276276 }
@@ -284,18 +284,18 @@ class AbstractLineMatcher implements ILineMatcher {
284284 }
285285 }
286286
287- private createLocation ( startLine :number , startColumn :number , endLine :number , endColumn :number ) :Location {
287+ private createLocation ( startLine : number , startColumn : number , endLine : number , endColumn : number ) : Location {
288288 if ( startLine && startColumn && endLine && endColumn ) {
289- return { startLineNumber : startLine , startColumn : startColumn , endLineNumber : endLine , endColumn : endColumn } ;
289+ return { startLineNumber : startLine , startColumn : startColumn , endLineNumber : endLine , endColumn : endColumn } ;
290290 }
291291 if ( startLine && startColumn ) {
292292 return { startLineNumber : startLine , startColumn : startColumn , endLineNumber : startLine , endColumn : startColumn } ;
293293 }
294294 return { startLineNumber : startLine , startColumn : 1 , endLineNumber : startLine , endColumn : Number . MAX_VALUE } ;
295295 }
296296
297- private getSeverity ( data : ProblemData ) :Severity {
298- let result :Severity = null ;
297+ private getSeverity ( data : ProblemData ) : Severity {
298+ let result : Severity = null ;
299299 if ( data . severity ) {
300300 let value = data . severity ;
301301 if ( value && value . length > 0 ) {
@@ -366,7 +366,7 @@ class MultiLineMatcher extends AbstractLineMatcher {
366366 let pattern = this . patterns [ i ] ;
367367 let matches = pattern . regexp . exec ( lines [ i + start ] ) ;
368368 if ( ! matches ) {
369- return { match : null , continue : false } ;
369+ return { match : null , continue : false } ;
370370 } else {
371371 // Only the last pattern can loop
372372 if ( pattern . loop && i === this . patterns . length - 1 ) {
@@ -379,7 +379,7 @@ class MultiLineMatcher extends AbstractLineMatcher {
379379 if ( ! loop ) {
380380 this . data = null ;
381381 }
382- return { match : this . getMarkerMatch ( data ) , continue : loop } ;
382+ return { match : this . getMarkerMatch ( data ) , continue : loop } ;
383383 }
384384
385385 public next ( line : string ) : ProblemMatch {
@@ -396,7 +396,7 @@ class MultiLineMatcher extends AbstractLineMatcher {
396396 }
397397}
398398
399- let _defaultPatterns :{ [ name :string ] : ProblemPattern | ProblemPattern [ ] ; } = Object . create ( null ) ;
399+ let _defaultPatterns : { [ name : string ] : ProblemPattern | ProblemPattern [ ] ; } = Object . create ( null ) ;
400400_defaultPatterns [ 'msCompile' ] = {
401401 regexp : / ^ ( [ ^ \s ] .* ) \( ( \d + | \d + , \d + | \d + , \d + , \d + , \d + ) \) : \s + ( e r r o r | w a r n i n g | i n f o ) \s + ( \w { 1 , 2 } \d + ) \s * : \s * ( .* ) $ / ,
402402 file : 1 ,
@@ -600,7 +600,7 @@ export namespace Config {
600600 */
601601 loop ?: boolean ;
602602
603- [ key :string ] : any ;
603+ [ key : string ] : any ;
604604 }
605605
606606 /**
@@ -856,7 +856,7 @@ export class ProblemMatcherParser extends Parser {
856856 private createProblemPattern ( value : string | Config . ProblemPattern | Config . ProblemPattern [ ] ) : ProblemPattern | ProblemPattern [ ] {
857857 let pattern : ProblemPattern ;
858858 if ( Types . isString ( value ) ) {
859- let variableName :string = < string > value ;
859+ let variableName : string = < string > value ;
860860 if ( variableName . length > 1 && variableName [ 0 ] === '$' ) {
861861 return defaultPattern ( variableName . substring ( 1 ) ) ;
862862 }
@@ -889,7 +889,7 @@ export class ProblemMatcherParser extends Parser {
889889 return null ;
890890 }
891891
892- private createSingleProblemPattern ( value : Config . ProblemPattern , setDefaults :boolean ) : ProblemPattern {
892+ private createSingleProblemPattern ( value : Config . ProblemPattern , setDefaults : boolean ) : ProblemPattern {
893893 let result : ProblemPattern = {
894894 regexp : this . createRegularExpression ( value . regexp )
895895 } ;
@@ -969,7 +969,7 @@ export class ProblemMatcherParser extends Parser {
969969 }
970970 }
971971
972- private createWatchingPattern ( external : string | Config . WatchingPattern ) : WatchingPattern {
972+ private createWatchingPattern ( external : string | Config . WatchingPattern ) : WatchingPattern {
973973 if ( Types . isUndefinedOrNull ( external ) ) {
974974 return null ;
975975 }
@@ -986,10 +986,10 @@ export class ProblemMatcherParser extends Parser {
986986 if ( ! regexp ) {
987987 return null ;
988988 }
989- return file ? { regexp, file} : { regexp } ;
989+ return file ? { regexp, file } : { regexp } ;
990990 }
991991
992- private createRegularExpression ( value :string ) :RegExp {
992+ private createRegularExpression ( value : string ) : RegExp {
993993 let result : RegExp = null ;
994994 if ( ! value ) {
995995 return result ;
0 commit comments