-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude Doc string annotations from generated typescript AST
- Loading branch information
Showing
7 changed files
with
105 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module test23 { | ||
|
||
import adlc.config.typescript.*; | ||
|
||
/// A docstring | ||
struct S1 { | ||
/// Another docstring | ||
String field; | ||
}; | ||
|
||
@TypescriptGenerate false | ||
struct S2 { | ||
}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* @generated from adl module test23 */ | ||
|
||
import * as ADL from './runtime/adl'; | ||
|
||
/** | ||
* A docstring | ||
*/ | ||
export interface S1 { | ||
/** | ||
* Another docstring | ||
*/ | ||
field: string; | ||
} | ||
|
||
export function makeS1( | ||
input: { | ||
field: string, | ||
} | ||
): S1 { | ||
return { | ||
field: input.field, | ||
}; | ||
} | ||
|
||
const S1_AST : ADL.ScopedDecl = | ||
{"moduleName":"test23","decl":{"annotations":[],"type_":{"kind":"struct_","value":{"typeParams":[],"fields":[{"annotations":[],"serializedName":"field","default":{"kind":"nothing"},"name":"field","typeExpr":{"typeRef":{"kind":"primitive","value":"String"},"parameters":[]}}]}},"name":"S1","version":{"kind":"nothing"}}}; | ||
|
||
export function texprS1(): ADL.ATypeExpr<S1> { | ||
return {value : {typeRef : {kind: "reference", value : {moduleName : "test23",name : "S1"}}, parameters : []}}; | ||
} | ||
|
||
export const _AST_MAP: { [key: string]: ADL.ScopedDecl } = { | ||
"test23.S1" : S1_AST | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters