Skip to content

Commit

Permalink
fix compile errors from fix for #8647
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Jul 13, 2016
1 parent 3c14dfe commit d926a2f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions src/vs/languages/handlebars/common/handlebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ export enum States {
export class HandlebarsState extends htmlMode.State {

constructor(mode:modes.IMode,
public kind:htmlMode.States,
kind:htmlMode.States,
public handlebarsKind:States,
public lastTagName:string,
public lastAttributeName:string,
public embeddedContentType:string,
public attributeValueQuote:string,
public attributeValue:string) {
lastTagName:string,
lastAttributeName:string,
embeddedContentType:string,
attributeValueQuote:string,
attributeValueLength:number) {

super(mode, kind, lastTagName, lastAttributeName, embeddedContentType, attributeValueQuote, attributeValue);
super(mode, kind, lastTagName, lastAttributeName, embeddedContentType, attributeValueQuote, attributeValueLength);
}

public makeClone(): HandlebarsState {
return new HandlebarsState(this.getMode(), this.kind, this.handlebarsKind, this.lastTagName, this.lastAttributeName, this.embeddedContentType, this.attributeValueQuote, this.attributeValue);
return new HandlebarsState(this.getMode(), this.kind, this.handlebarsKind, this.lastTagName, this.lastAttributeName, this.embeddedContentType, this.attributeValueQuote, this.attributeValueLength);
}

public equals(other:modes.IState):boolean {
Expand Down Expand Up @@ -186,13 +186,13 @@ export class HandlebarsMode extends htmlMode.HTMLMode<htmlWorker.HTMLWorker> {
}

public getInitialState() : modes.IState {
return new HandlebarsState(this, htmlMode.States.Content, States.HTML, '', '', '', '', '');
return new HandlebarsState(this, htmlMode.States.Content, States.HTML, '', '', '', '', 0);
}

public getLeavingNestedModeData(line:string, state:modes.IState):ILeavingNestedModeData {
var leavingNestedModeData = super.getLeavingNestedModeData(line, state);
if (leavingNestedModeData) {
leavingNestedModeData.stateAfterNestedMode = new HandlebarsState(this, htmlMode.States.Content, States.HTML, '', '', '', '', '');
leavingNestedModeData.stateAfterNestedMode = new HandlebarsState(this, htmlMode.States.Content, States.HTML, '', '', '', '', 0);
}
return leavingNestedModeData;
}
Expand Down
10 changes: 5 additions & 5 deletions src/vs/languages/razor/common/razor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import {IWorkspaceContextService} from 'vs/platform/workspace/common/workspace';

class RAZORState extends htmlMode.State {

constructor(mode:modes.IMode, kind:htmlMode.States, lastTagName:string, lastAttributeName:string, embeddedContentType:string, attributeValueQuote:string, attributeValue:string) {
super(mode, kind, lastTagName, lastAttributeName, embeddedContentType, attributeValueQuote, attributeValue);
constructor(mode:modes.IMode, kind:htmlMode.States, lastTagName:string, lastAttributeName:string, embeddedContentType:string, attributeValueQuote:string, attributeValueLength:number) {
super(mode, kind, lastTagName, lastAttributeName, embeddedContentType, attributeValueQuote, attributeValueLength);
}

public makeClone():RAZORState {
return new RAZORState(this.getMode(), this.kind, this.lastTagName, this.lastAttributeName, this.embeddedContentType, this.attributeValueQuote, this.attributeValue);
return new RAZORState(this.getMode(), this.kind, this.lastTagName, this.lastAttributeName, this.embeddedContentType, this.attributeValueQuote, this.attributeValueLength);
}

public equals(other:modes.IState):boolean {
Expand Down Expand Up @@ -138,13 +138,13 @@ export class RAZORMode extends htmlMode.HTMLMode<RAZORWorker> {
}

public getInitialState(): modes.IState {
return new RAZORState(this, htmlMode.States.Content, '', '', '', '', '');
return new RAZORState(this, htmlMode.States.Content, '', '', '', '', 0);
}

public getLeavingNestedModeData(line:string, state:modes.IState): ILeavingNestedModeData {
var leavingNestedModeData = super.getLeavingNestedModeData(line, state);
if (leavingNestedModeData) {
leavingNestedModeData.stateAfterNestedMode = new RAZORState(this, htmlMode.States.Content, '', '', '', '', '');
leavingNestedModeData.stateAfterNestedMode = new RAZORState(this, htmlMode.States.Content, '', '', '', '', 0);
}
return leavingNestedModeData;
}
Expand Down

0 comments on commit d926a2f

Please sign in to comment.