Skip to content
Snippets Groups Projects
Select Git revision
  • 0d2a93c1774804d6ba1817f0900f1b6c623f8ea9
  • master default protected
2 results

RelationshipConstraintTestGenerator.py

Blame
  • doc.ts 619 B
    import {AstDecl} from './ast-decl/ast-decl';
    
    export class Doc {
      ast: string;
      astdecl: AstDecl;
      ragFile: string;
      line: number;
      description: string;
      apilevel: string;
      relation: string;
      params: string[]
    
      static fromJson(json: any): Doc {
        var astdecl: AstDecl = undefined;
        if (json.astdecl) {
          astdecl = AstDecl.fromJson(json.astdecl);
        }
        return {
          ast: json.ast,
          astdecl: astdecl,
          ragFile: json.ragFile,
          line: json.line,
          description: json.description,
          apilevel: json.apilevel,
          relation: json.relation,
          params: json.params,
        };
      }
    }