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

Test Xlint:deprecation #352

Closed
wants to merge 233 commits into from
Closed

Test Xlint:deprecation #352

wants to merge 233 commits into from

Conversation

psbang
Copy link

@psbang psbang commented Aug 12, 2019

TEST: testing output of "javac -Xlint:deprecation" to see what output code is deprecated.

Prathamesh Bang and others added 30 commits June 5, 2019 17:04
createMethod will output, for example, public int add(int i, int j) {}, no method body yet

cr https://code.amazon.com/reviews/CR-9355779
package main;

import java.*;
import dafny.*

Modules are also added to imports list so subsequent modules can import those packages

cr https://code.amazon.com/reviews/CR-9390107
CreateFunction method output example : public static int Add(int x, int y) {}
DeclareField output example: public int divisor;
Implemented CreateClass function which creates new file and declares class in that file, part of the same package as ModuleName
Example output of CreateClass:
package main;
import dafny;
import java.*;

public class ClassName implements SuperClass1, SuperClass2 {}

cr https://code.amazon.com/reviews/CR-9470851
Emit Static Receiver Expressions, null types, chars, strings, the Dafny native types, BigIntegers, and BigDecimals

This is the first part of implementing all the methods called in TrExpr in Compiler.cs

cr https://code.amazon.com/reviews/CR-9518146
implements EmitCollectionDisplay, which prints out the Dafny sets, multisets, and sequences

implements EmitMapDisplay, which prints Java code for Dafny maps

implements multiple methods which display Java code for member-select expressions and their special fields, such as Array.length

cr https://code.amazon.com/reviews/CR-9558585
Array example: arr[(int) 5]

DafnySequence example: seq.subsequence(3, 2)

MultiSet formation from sequence example: seq.asDafnyMultiset()

Updating DafnySequence: seq.update(3, 'newVal')

cr https://code.amazon.com/reviews/CR-9593669
DeclareDatatype and related functions taken from C# and simplified as recommended, only add to make sure program compiles end-to-end

cr https://code.amazon.com/reviews/CR-9639411
Jack Sturtevant and others added 29 commits July 30, 2019 13:27
NO LOGICAL CHANGES: Add comment

Factor out classpath creation to new method
cr https://code.amazon.com/reviews/CR-11689053

Factor out TypeName checking

Make unsigned type strings static
@psbang psbang closed this Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant