Skip to content
Snippets Groups Projects
Commit 610ba7cb authored by Jesper's avatar Jesper
Browse files

Tweak AST declaration template

parent cd93cd0b
No related branches found
No related tags found
No related merge requests found
++ Separate attribute declarations and equations in type view.
++ Add thrown type descriptions.
++ Make current member filter more noticeable.
++ Add class overview as default page.
......
......@@ -16,10 +16,10 @@ import {AstDecl} from './ast-decl';
}
`],
template: `
<p *ngIf="_decl">JastAdd production: <br>
<div class="ast-decl">{{_decl.name}}: <type-ref [type]="_decl.extends"></type-ref><!--
--><ng-container *ngIf="_decl.components"> ::= <!--
--><ng-container *ngFor="let comp of _decl.components"><!--
<p *ngIf="decl">JastAdd production: <br>
<div class="ast-decl">{{decl.name}}: <type-ref [type]="decl.extends"></type-ref><!--
--><ng-container *ngIf="decl.components"> ::= <!--
--><ng-container *ngFor="let comp of decl.components"><!--
--><div class="ast-component"><!--
--><ng-container *ngIf="comp.kind == 'regular'"><!--
--><ng-container *ngIf="comp.name">{{comp.name}}:</ng-container><type-ref [type]="comp.type"></type-ref> <!--
......@@ -48,4 +48,8 @@ export class AstDeclComponent {
set decl(decl: AstDecl) {
this._decl = decl;
}
get decl(): AstDecl {
return this._decl;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment