Skip to content

Commit 2c79c32

Browse files
committed
Fix bad merge & fix build script
1 parent e7cb780 commit 2c79c32

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

packages/angular-html-parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"prepublish": "yarn run build",
1717
"prebuild": "del-cli ./lib",
1818
"build": "tsc -p tsconfig.build.json",
19-
"postbuild": "node ./node_modules/.bin/jscodeshift -t postbuild-codemod.ts lib --extensions=js,ts --parser=ts",
19+
"postbuild": "node ./node_modules/jscodeshift/bin/jscodeshift.js -t postbuild-codemod.ts lib --extensions=js,ts --parser=ts",
2020
"test": "ts-node --project tsconfig.test.json -r tsconfig-paths/register node_modules/jasmine/bin/jasmine.js ../compiler/test/ml_parser/*_spec.ts ./test/*_spec.ts",
2121
"release": "standard-version"
2222
},

packages/compiler/src/ml_parser/ast.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -142,25 +142,6 @@ export class BlockParameter implements BaseNode {
142142
readonly endSourceSpan: null = null;
143143
}
144144

145-
export class Block implements BaseNode {
146-
constructor(
147-
public name: string, public parameters: BlockParameter[], public children: Node[],
148-
public sourceSpan: ParseSourceSpan, public nameSpan: ParseSourceSpan,
149-
public startSourceSpan: ParseSourceSpan, public endSourceSpan: ParseSourceSpan|null = null) {}
150-
151-
visit(visitor: Visitor, context: any) {
152-
return visitor.visitBlock(this, context);
153-
}
154-
}
155-
156-
export class BlockParameter implements BaseNode {
157-
constructor(public expression: string, public sourceSpan: ParseSourceSpan) {}
158-
159-
visit(visitor: Visitor, context: any): any {
160-
return visitor.visitBlockParameter(this, context);
161-
}
162-
}
163-
164145
export interface Visitor {
165146
// Returning a truthy value from `visit()` will prevent `visitAll()` from the call to the typed
166147
// method and result returned will become the result included in `visitAll()`s result array.

packages/compiler/src/ml_parser/lexer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ class _Tokenizer {
736736
}
737737

738738
private _consumeAttributeValue() {
739+
let value: string;
739740
if (this._cursor.peek() === chars.$SQ || this._cursor.peek() === chars.$DQ) {
740741
const quoteChar = this._cursor.peek();
741742
this._consumeQuote(quoteChar);

0 commit comments

Comments
 (0)