Skip to content
This repository has been archived by the owner on Mar 12, 2018. It is now read-only.

Resolvendo Problema com Gerador de Código JAVA #107

Merged
merged 4 commits into from
Jun 6, 2017

Conversation

AlissonSteffens
Copy link
Member

No description provided.

@AlissonSteffens AlissonSteffens changed the title resolvendo problema com \\ dos escapes Resolvendo Problema com Gerador de Código JAVa Jun 6, 2017
@AlissonSteffens AlissonSteffens changed the title Resolvendo Problema com Gerador de Código JAVa Resolvendo Problema com Gerador de Código JAVA Jun 6, 2017
@AlissonSteffens
Copy link
Member Author

#102 resolvida neste commit d422d18

@@ -138,7 +140,11 @@ private Programa geraPrograma(ASAPrograma asa, ResultadoAnalise resultadoAnalise
GeradorCodigoJava.Opcoes opcoes = new GeradorCodigoJava.Opcoes(true, true, true);
gerador.gera(asa, writerArquivoJava, nomeClasse, opcoes);
writerArquivoJava.flush();


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlissonSteffens , essa alteração aqui não tem relação com o PR ou a issue que o PR está resolvendo. Para resolver essa issue bastaria alterar a classe Utils. Porque você fez estas outras alterações?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isso é um codigo para testar o codigo java gerado, e faz sentido para as próximas alterações no gerador

if (!valores.isEmpty() && !valores.get(0).isEmpty())
{
Object valor = valores.get(0).get(0);
if (valor instanceof NoExpressaoLiteral)
{
return ((NoExpressaoLiteral)valor).getTipoResultante();
}
else if(valor instanceof NoReferencia){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isso faz sentido nesse PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elieserdejesus, faz sentido sim. Esta linha conserta um bug que estava ocorrendo ao gerar o código Java de um exemplo que o @AdsonEsteves criou.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok @noschang.

@AlissonSteffens
Copy link
Member Author

#105 resolvido no commit 22f19bd

@AlissonSteffens
Copy link
Member Author

Testes unitários: done

@AlissonSteffens AlissonSteffens merged commit d2e1e1d into master Jun 6, 2017
@AlissonSteffens AlissonSteffens deleted the resolvendoproblemascomgeradordecodigoJAVA branch June 6, 2017 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants