Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build break nightly #380

Merged
merged 1 commit into from
Oct 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AutoRest/Generators/NodeJS/NodeJS/NodeJSCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Microsoft.Rest.Generator.NodeJS
public class NodeJSCodeGenerator : CodeGenerator
{
private const string ClientRuntimePackage = "ms-rest version 1.1.0";
private static readonly bool DisableTypeScriptGeneration = false; // Change to true if you want to no longer generate the 3 d.ts files, for some reason
private const bool DisableTypeScriptGeneration = false; // Change to true if you want to no longer generate the 3 d.ts files, for some reason

public NodeJsCodeNamer Namer { get; private set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public bool ContainsPropertiesInCompositeType()
/// <param name="property">Model property to query</param>
/// <param name="inModelsModule">Pass true if generating the code for the models module, thus model types don't need a "models." prefix</param>
/// <returns>TypeScript property definition</returns>
public string PropertyTS(Property property, bool inModelsModule) {
public static string PropertyTS(Property property, bool inModelsModule) {
if (property == null) {
throw new ArgumentNullException("property");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface @(Model.Name) {
var propertyList = new List<Property>(Model.ComposedProperties);
for (int i = 0; i < propertyList.Count; i++)
{
@:@(Model.PropertyTS(propertyList[i], true));
@:@(ModelTemplateModel.PropertyTS(propertyList[i], true));
}
}
}